Skip to content

Commit

Permalink
feat(about): use about footer
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonsaldan committed Jan 12, 2025
1 parent 9d4fd9a commit 92ab8b0
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/about-page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use client'
import { AboutFooter } from '@/components/about/about-footer'
import { Navbar } from '@/components/about/about-navbar'
import AnimatedImageGallery from '@/components/about/animated-image-gallery'
import AnimatedTeamMember from '@/components/about/animated-team-members'
import AnimatedTestimonial from '@/components/about/animated-testimonials'
import { Container } from '@/components/container'
import { Footer } from '@/components/footer'
import { Link } from '@/components/link'
import { ChevronRightIcon } from '@heroicons/react/16/solid'

Expand Down Expand Up @@ -275,7 +275,7 @@ function About() {
</div>
</div>

<div className="mx-auto mb-32 hidden max-w-7xl gap-20 px-8 sm:grid sm:grid-cols-3 sm:px-0">
<div className="mx-auto hidden max-w-7xl gap-20 px-8 pb-32 sm:grid sm:grid-cols-3 sm:px-0">
<div className="mx-auto max-w-2xl sm:col-span-2 sm:px-0 lg:mx-0 lg:max-w-none">
<div className="-mt-8 sm:-mx-4 sm:columns-2 sm:text-[0] lg:columns-3">
{testimonials.map((testimonial, index) => (
Expand Down Expand Up @@ -340,11 +340,11 @@ export default function Home() {
<div className="overflow-hidden">
<Hero />
<main>
<div className="bg-gradient-to-b from-white from-50% to-gray-100 pb-20 sm:mb-0 sm:pb-2 dark:from-zinc-950 dark:from-50% dark:to-zinc-950">
<div className="bg-gradient-to-b from-white from-50% to-gray-100 pb-20 sm:mb-0 sm:pb-0 dark:from-zinc-950 dark:from-50% dark:to-zinc-950">
<About />
</div>
</main>
<Footer />
<AboutFooter />
</div>
)
}
129 changes: 129 additions & 0 deletions src/components/about/about-footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
import { ChevronRightIcon } from '@heroicons/react/16/solid'
import { Button } from '../button'
import { Container } from '../container'
import { Gradient } from '../gradient'
import { Link } from '../link'
import { Logo, LogoDark } from '../logo'
import { Subheading } from '../text'

function CallToAction() {
return (
<div className="relative pb-16 pt-20 text-center sm:py-24">
<hgroup>
<Subheading>Get started</Subheading>
<p className="mt-6 text-3xl font-medium tracking-tight text-gray-950 sm:text-5xl dark:text-white">
Ready to take back your Car Thing?
</p>
</hgroup>
<div className="mt-6">
<Button
className="w-full sm:w-auto dark:bg-zinc-900 dark:hover:bg-zinc-800"
href="/installation"
>
Get Started
<ChevronRightIcon className="mt-0.5 size-4" />
</Button>
</div>
</div>
)
}

function SitemapHeading({ children }: { children: React.ReactNode }) {
return (
<h3 className="text-sm/6 font-medium text-gray-950/50 dark:text-gray-400">
{children}
</h3>
)
}

function SitemapLinks({ children }: { children: React.ReactNode }) {
return <ul className="mt-6 space-y-4 text-sm/6">{children}</ul>
}

function SitemapLink(props: React.ComponentPropsWithoutRef<typeof Link>) {
return (
<li>
<Link
{...props}
className="font-medium text-gray-950 transition duration-300 ease-in-out data-[hover]:text-gray-950/75 dark:text-gray-200 dark:hover:text-gray-300"
/>
</li>
)
}

function Sitemap() {
return (
<>
<div>
<SitemapHeading>Product</SitemapHeading>
<SitemapLinks>
<SitemapLink href="/installation">Installation</SitemapLink>
<SitemapLink href="/support">Support Nocturne</SitemapLink>
<SitemapLink href="https://github.com/usenocturne">
Source Code
</SitemapLink>
<SitemapLink href="/about">About</SitemapLink>
</SitemapLinks>
</div>
</>
)
}

function Copyright() {
return (
<div className="text-sm/6 text-gray-950 dark:text-gray-200">
&copy; {new Date().getFullYear()} Nocturne.
</div>
)
}

function Disclaimer() {
return (
<div className="text-sm/6 text-gray-950 dark:text-gray-200">
"Spotify" and "Car Thing" are trademarks of Spotify AB. This software is
not affiliated with or endorsed by Spotify AB.
</div>
)
}

export function AboutFooter() {
return (
<footer className="bg-white dark:bg-zinc-950">
<Gradient className="relative rounded-4xl">
<div className="absolute inset-2 rounded-[24px] bg-white/95 dark:bg-zinc-950" />{' '}
<Container className="relative px-8 sm:px-0">
{' '}
<CallToAction />
<div className="pb-16">
<div>
<div className="grid grid-cols-2 gap-y-10 pb-6 lg:grid-cols-6 lg:gap-8">
<div className="col-span-2 flex">
<div className="relative pt-6 lg:pb-6">
{' '}
<Logo className="hidden h-9 dark:block" />
<LogoDark className="h-9 dark:hidden" />
</div>
</div>
<div className="relative col-span-2 grid grid-cols-2 gap-x-8 gap-y-12 lg:col-span-4 lg:grid-cols-subgrid lg:pt-6">
{' '}
<Sitemap />
</div>
</div>
</div>
<div className="flex justify-between border-t border-black/5 pt-6 dark:border-white/5">
<div className="relative">
{' '}
<div className="py-3">
<Copyright />
</div>
<div className="py-3">
<Disclaimer />
</div>
</div>
</div>
</div>
</Container>
</Gradient>
</footer>
)
}

0 comments on commit 92ab8b0

Please sign in to comment.