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

refactor: Update Articles component in Articles.jsx #12

Merged
merged 1 commit into from
May 6, 2024
Merged
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
48 changes: 25 additions & 23 deletions src/pages/home/container/Articles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,31 @@ import { images } from "@/constants";
const Articles = () => {
return (
<section className="flex bg-gradient-to-t from-red-900 w-screen bg-blend-screen flex-col mx-auto px-5 py-10 mt-12 z-40">
<div className="flex flex-wrap md:gap-x-5 gap-y-5 pb-10 items-start justify-center">
<ArticleCard
image={images.CharacterHead}
text={
"A small river named Duden flows by their place and supplies it with the necessary regelialia. A small river named Duden flows by their place and supplies it with the necessary regelialia. A small river named Duden flows by their place and supplies it with the necessary regelialia."
}
textStyle="flex items-center justify-center"
className="w-full flex-nowrap md:w-[calc(50%-20px)] lg:w-[calc(80%-50px)] bg-black md:bg-white lg:bg-white"
/>
<ArticleCard
image={images.RacePhoto}
text={
"It is a paradisematic country, in which roasted parts of sentences fly into your mouth. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. It is a paradisematic country, in which roasted parts of sentences fly into your mouth."
}
className="w-full flex-wrap p-4 md:w-[calc(50%-20px)] lg:w-[calc(30%-10px)] bg-black md:bg-white lg:bg-white"
/>
<ArticleCard
image={images.PistonCup}
text={
"A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth."
}
className="w-full p-4 flex-nowrap md:w-[calc(50%-20px)] lg:w-[calc(49%-40px)] bg-black md:bg-white lg:bg-white"
/>
<div className="flex items-center">
<div className="flex flex-wrap md:gap-x-5 gap-y-5 pb-10 items-start justify-center">
<ArticleCard
image={images.CharacterHead}
text={
"A small river named Duden flows by their place and supplies it with the necessary regelialia. A small river named Duden flows by their place and supplies it with the necessary regelialia. A small river named Duden flows by their place and supplies it with the necessary regelialia."
}
textStyle="flex items-center justify-center"
className=" w-full flex-nowrap md:w-[calc(50%-20px)] lg:w-[calc(85%-30px)] bg-black md:bg-white lg:bg-white"
/>
<ArticleCard
image={images.RacePhoto}
text={
"It is a paradisematic country, in which roasted parts of sentences fly into your mouth. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. It is a paradisematic country, in which roasted parts of sentences fly into your mouth."
}
className="w-full flex-wrap p-4 md:w-[calc(50%-20px)] lg:w-[calc(36%-10px)] bg-black md:bg-white lg:bg-white"
/>
<ArticleCard
image={images.PistonCup}
text={
"A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth."
}
className="w-full p-4 flex-nowrap md:w-[calc(50%-20px)] lg:w-[calc(49%-40px)] bg-black md:bg-white lg:bg-white"
/>
</div>
</div>
</section>
);
Expand Down
4 changes: 2 additions & 2 deletions src/pages/home/container/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Hero = () => {
const [coupon, setCoupon] = useState(false);

return (
<section className="container mx-auto flex flex-col px-5 py-5 mt-60 lg:flex-row overflow-x-hidden">
<section className="container mx-auto flex flex-nowrap justify-between px-5 py-5 mt-60 lg:flex-row overflow-x-hidden">
<div className="fixed inset-0 z-[-1]">
<img
src={images.HeroImage}
Expand All @@ -34,7 +34,7 @@ const Hero = () => {
roasted parts of sentences fly into your mouth.
</p>
</div>
<div className="w-full lg:ml-2 lg:1/2 flex items-center justify-center flex-wrap flex-col lg:mt-0 z-40">
<div className="w-fit lg:ml-2 lg:1/2 flex items-center justify-end flex-wrap flex-col lg:mt-0 z-40">
<div className="px-2 py-3 pr-8 bg-dark-light">
<div className="text-nowrap text-white px-4">
<h1>Make Your Trip</h1>
Expand Down