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

Add the header for naviage to map #1189

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
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
30 changes: 20 additions & 10 deletions src/app/(default)/components/LandingHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,30 @@ import { ArrowRight } from '@phosphor-icons/react/dist/ssr'

export const LandingHero: React.FC = () => {
return (
<section className='mt-6'>
<h1 className='text-2xl tracking-tighter font-bold'>Share your climbing route knowledge!</h1>
<div className='font-medium text-neutral/80'>
<section className="mt-6">
<h1 className="text-2xl tracking-tighter font-bold">Share your climbing route knowledge!</h1>
<div className="font-medium text-neutral/80">
Join us to help improve this comprehensive climbing resource for the community.
</div>
<div className='mt-2'>
<HeroAlert />
<div className="mt-2 flex gap-6">
<HeroAlert link="/maps" text="Climbing Areas By State" badge="Find" />
<HeroAlert link="/maps" text="Crag maps" badge="New" />
</div>
</section>
)
}

export const HeroAlert: React.FC = () => (
<div className='alert alert-warning'>
<span className='badge badge-sm badge-primary'>NEW</span>
<Link href='/maps' className='underline flex items-center gap-1 text-sm'>Crag maps<ArrowRight size={20} /></Link>
</div>)
interface HeroAlertProps {
link: string
text: string
badge: string
}

export const HeroAlert: React.FC<HeroAlertProps> = ({ link, text, badge }) => (
<div className="alert alert-warning w-[50%]">
<span className="badge badge-sm badge-primary">{badge}</span>
<Link href={link} className="underline flex items-center gap-1 text-sm">
{text} <ArrowRight size={20} />
</Link>
</div>
)
Loading