Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refined UI #543

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
align-content: center;
justify-content: center;
}
.triGradient {
background: rgb(249,104,0);
background: linear-gradient(180deg, rgb(255, 115, 16) 50%, rgba(255,255,255,1) 55%, rgb(22, 127, 3) 60%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

#fact{
width:20vw;
Expand Down
31 changes: 15 additions & 16 deletions src/components/DetailView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,34 @@ const DetailView = () => {
<p className="text-lg sm:text-lg md:text-xl mt-5 text-justify">{data.description}</p>

<div className="grid grid-cols-2 sm:grid-cols-2 md:grid-cols-4 gap-5 gap-y-4 mt-5 w-full"
style={{alignItems:'flex-start'}}
style={{ alignItems: 'flex-start' }}
>
<div className="flex flex-col p-4">
<div className="flex flex-col p-4 bg-[#70dddd] border border-gray-300 rounded-lg shadow-lg hover:scale-105 transition duration-300">
<h2 className="text-lg sm:text-lg md:text-xl font-bold">Category</h2>
<p className="text-lg sm:text-lg md:text-xl mt-2">{data.category}</p>
</div>
<div className="flex flex-col p-4">
<div className="flex flex-col p-4 bg-[#a9f092] border border-gray-300 rounded-lg shadow-lg hover:scale-105 transition duration-300">
<h2 className="text-xl font-bold">Best time to visit</h2>
<p className="text-lg sm:text-lg md:text-xl mt-2">{data.bestTimeToVisit}</p>
</div>
<div className="flex flex-col p-4">
<div className="flex flex-col p-7 bg-[#a2d4e8] border border-gray-300 rounded-lg shadow-lg hover:scale-105 transition duration-300">
<h2 className="text-xl font-bold">Popular activities</h2>
<ul className="list-disc text-justify">
{data.popularActivities.map((activity, index) => (
<li key={index} className="text-lg sm:text-lg md:text-xl mt-2">
{activity}
</li>
))}
{data.popularActivities.map((activity, index) => (
<li key={index} className="text-lg sm:text-lg md:text-xl mt-2">
{activity}
</li>
))}
</ul>
</div>
<div className="flex flex-col p-4">
<div className="flex flex-col p-7 bg-[#f4e787] border border-gray-300 rounded-lg shadow-lg hover:scale-105 transition duration-300">
<h2 className="text-xl font-bold">Nearby attractions</h2>
<ul className="list-disc text-justify">

{data.nearbyAttractions.map((attraction, index) => (
<li key={index} className="text-lg sm:text-lg md:text-xl mt-2">
{attraction}
</li>
))}
{data.nearbyAttractions.map((attraction, index) => (
<li key={index} className="text-lg sm:text-lg md:text-xl mt-2">
{attraction}
</li>
))}
</ul>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Homeque.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Homeque = () => {
<Link to={`/detail/?id=${pageSum + i}`} key={pageSum + i}>
<button
onClick={() => showdetail(pageSum + i)}
className="w-[80px] h-[30px] border-2 rounded-xl text-white backdrop-blur cursor-pointer duration-[0.4s] mt-[5rem] hover:bg-[#f9a826] hover:text-[#1f2937] hover:shadow-lg hover:scale-105 transition duration-500 ease-in-out transform"
className="w-[80px] h-[30px] border-2 rounded-xl text-white backdrop-blur cursor-pointer duration-[0.4s] mt-[5rem] hover:bg-[#f9a826] hover:text-[#1f2937] hover:shadow-lg hover:scale-105 transition ease-in-out transform"
>
Explore
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Home = () => {
<div className="flex flex-col justify-center items-center sm:mb-[5rem] mb-[0rem]">
<span className="text-[3rem]">Welcome,</span>
<span className="text-[2rem]"> to</span>
<h1 className="text-[5rem] sm:ml-[25px] text-center font-[Agbalumo]">
<h1 className="text-[5rem] sm:ml-[25px] text-center font-[Agbalumo] triGradient">
Bharat <span id="samarkand">Yatra</span>
</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Loader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Loader = () => {
return ( <div id="loader">
<div id="load">
<img src="https://t4.ftcdn.net/jpg/00/69/53/63/360_F_69536324_PXoCItwXg8VaC1lTB0zqkE0JyFsIIO1Y.jpg" id="logo"/>
<h6 className="text-[2.5rem] font-[Agbalumo]" id="loadLogo">
<h6 className="text-[2.5rem] font-[Agbalumo] triGradient" id="loadLogo">
Bharat <span id="samarkand">Yatra</span></h6>
<h6 id="factHead">Did you know?</h6>
<h6 id="fact">{data[arrInd]}</h6>
Expand Down
1 change: 1 addition & 0 deletions src/styles/aboutus.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
border: 1px solid rgba(206, 212, 218, 1);
border-radius: 8px;
margin-bottom: 21px;
transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.about-us-community {
Expand Down