diff --git a/public/hero-placeholder.jpg b/public/hero-placeholder.jpg new file mode 100644 index 0000000..24eed38 Binary files /dev/null and b/public/hero-placeholder.jpg differ diff --git a/src/app/(frontend)/about-us/page.tsx b/src/app/(frontend)/about-us/page.tsx index ef2deed..341a084 100644 --- a/src/app/(frontend)/about-us/page.tsx +++ b/src/app/(frontend)/about-us/page.tsx @@ -1,13 +1,17 @@ import AboutIntro from '../components/AboutIntro' import Grid from '../components/Grid' +import Hero from '../components/Hero' export default function AboutUsPage() { return ( -
- - - - -
+
+ +
+ + + + +
+
) } diff --git a/src/app/(frontend)/components/Hero.tsx b/src/app/(frontend)/components/Hero.tsx new file mode 100644 index 0000000..eee02a6 --- /dev/null +++ b/src/app/(frontend)/components/Hero.tsx @@ -0,0 +1,77 @@ +import Image from 'next/image' +import Link from 'next/link' +import React from 'react' + +const NAV_LINKS = [ + { label: 'HOME', href: '/' }, + { label: 'ABOUT US', href: '/about-us' }, + { label: 'CONCERT & EVENTS', href: '/concerts-events' }, + { label: 'JOIN AYO', href: '/join-ayo' }, + { label: 'SUPPORT US', href: '/support-us' }, +] + +type HeroProps = { + title: string + /** Absolute path from /public, e.g. "/hero-orchestra.jpg" */ + backgroundImage?: string +} + +const Hero = ({ title, backgroundImage }: HeroProps) => { + return ( +
+ {/* Background */} + {backgroundImage ? ( + {title} + ) : ( +
+ )} + + {/* Dark scrim */} +
+ + {/* Layered content */} +
+ {/* Nav */} + + + {/* Title pinned to bottom-left */} +
+

+ {title} +

+
+
+
+ ) +} + +export default Hero diff --git a/src/app/(frontend)/concerts-events/page.tsx b/src/app/(frontend)/concerts-events/page.tsx index 7d4a95d..ba135e9 100644 --- a/src/app/(frontend)/concerts-events/page.tsx +++ b/src/app/(frontend)/concerts-events/page.tsx @@ -1,3 +1,11 @@ +import Hero from '../components/Hero' export default function ConcertsEventsPage() { - return
This is the concerts & events page
+ return ( +
+
+ +
+
This is the concerts & events page
+
+ ) } diff --git a/src/app/(frontend)/join-ayo/page.tsx b/src/app/(frontend)/join-ayo/page.tsx index 2a79da4..7c41b01 100644 --- a/src/app/(frontend)/join-ayo/page.tsx +++ b/src/app/(frontend)/join-ayo/page.tsx @@ -1,10 +1,12 @@ import FAQSection from '../components/FAQSection' import OpportunitySection from '../components/OpportunitySection' import OpportunityModal from '../components/OpportunityModal' +import Hero from '../components/Hero' export default function JoinAyoPage() { return (
+
diff --git a/src/app/(frontend)/layout.tsx b/src/app/(frontend)/layout.tsx index 10f54cc..7eb4951 100644 --- a/src/app/(frontend)/layout.tsx +++ b/src/app/(frontend)/layout.tsx @@ -14,7 +14,6 @@ export default async function RootLayout(props: { children: React.ReactNode }) { return ( -
{children}