Skip to content

Commit 6500204

Browse files
added responsiveness to hero page
1 parent 516e6d1 commit 6500204

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/components/home/HeroSection.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import { HeroIcon } from "../icons/animated/HeroIcon";
55

66
function HeroSection() {
77
return (
8-
<div className="flex flex-col items-center md:justify-between gap-12 md:flex-row h-[calc(100vh-76px)] mt-8 md:mt-0">
8+
<div className="flex flex-col-reverse items-center justify-end md:justify-between gap-12 md:flex-row min-h-[calc(100vh-76px)]">
99
<div className=" md:w-1/2 w-full">
10-
<h1 className="text-6xl font-bold md:text-7xl">
10+
<h1 className="text-4xl sm:text-5xl md:text-6xl font-bold lg:text-7xl">
1111
Your go-to <UnderlineText>toolkit</UnderlineText> for everyday tasks.
1212
</h1>
1313

14-
<p className=" text-xl text-gray-500 font-medium">
14+
<p className="text-lg sm:text-xl text-gray-500 font-medium">
1515
From secure passwords to quick conversions, AtoZTools has everything
1616
you need to get things done faster.
1717
</p>
@@ -21,7 +21,7 @@ function HeroSection() {
2121
</div>
2222
</div>
2323

24-
<div className="md:w-1/2 w-full min-w-64 max-w-96 md:max-w-full">
24+
<div className="md:w-1/2 w-full max-w-64 min-w-64 sm:max-w-96">
2525
<HeroIcon />
2626
</div>
2727
</div>

src/components/icons/animated/HeroIcon.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const icon = {
1414

1515
export const HeroIcon = () => (
1616
<motion.div
17-
className="container"
1817
variants={icon}
1918
initial="hidden"
2019
animate="visible"

0 commit comments

Comments
 (0)