Skip to content

Commit 3274990

Browse files
committed
feat: mobile hero content section
1 parent 396742d commit 3274990

File tree

1 file changed

+17
-2
lines changed
  • src/app/(frontend)/components/home

1 file changed

+17
-2
lines changed

src/app/(frontend)/components/home/Hero.tsx

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ const Hero = ({ content }: HeroProps) => {
3030
const y = useSpring(rawY, spring);
3131

3232
return (
33-
<section className="relative min-h-[45vh] md:min-h-screen overflow-hidden">
33+
<>
34+
<section className="relative min-h-[45vh] md:min-h-screen overflow-hidden">
3435
{/* Background Image */}
3536
<motion.div className="absolute inset-0 z-0 will-change-transform md:h-full h-[45vh]" style={{ y }}>
3637
{typeof content.background === "object" && content.background?.url && (
@@ -47,7 +48,7 @@ const Hero = ({ content }: HeroProps) => {
4748
</motion.div>
4849

4950
{/* Foreground Content - only the content is pushed down by the height of the header component (h-28)*/}
50-
<div className="relative z-10 flex flex-col items-center text-center text-(--cream) h-full pt-40 pb-12 px-6 gap-10">
51+
<div className="relative z-10 flex flex-col items-center text-center text-(--cream) h-full pt-30 md:pt-40 pb-12 px-6 gap-10">
5152
{/* Logo */}
5253
{typeof content.secondaryLogo === "object" && content.secondaryLogo?.url && (
5354
<Image
@@ -76,6 +77,20 @@ const Hero = ({ content }: HeroProps) => {
7677
</Button>
7778
</div>
7879
</section>
80+
81+
{/*mobile-only section, separate content text + join us button*/}
82+
<section className="md:hidden bg-[var(--cream)] px-6 py-12">
83+
<div className="flex flex-col items-start text-left gap-6 max-w-2xl">
84+
<h3 className="text-base text-[var(--brown)] w-full">
85+
{content.content}
86+
</h3>
87+
<Button variant="brown" size="lg" className="mt-2.5">
88+
Join Us
89+
<ArrowUpRight size={18} />
90+
</Button>
91+
</div>
92+
</section>
93+
</>
7994
);
8095
};
8196

0 commit comments

Comments
 (0)