-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27f339e
commit db3a897
Showing
17 changed files
with
91 additions
and
156 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
import { GeistSans } from 'geist/font/sans' | ||
|
||
import { cn } from '@/lib/utils' | ||
|
||
type HeadingHeroProps = { | ||
title?: string | ||
textColorTitle?: string | ||
} | ||
|
||
const DEFAULT_HEADING = 'Craft Stunning READMEs' | ||
|
||
export function HeadingHero({ title, textColorTitle }: HeadingHeroProps) { | ||
return ( | ||
<h1 | ||
key={title} | ||
className={cn( | ||
'text-4xl sm:text-[4rem] lg:text-[5rem] 2xl:text-[7rem] leading-tight font-medium text-balance capitalize text-transparent bg-clip-text bg-gradient-to-r animate-blurred-fade-in', | ||
`${GeistSans.className} text-4xl sm:text-6xl lg:text-7xl 2xl:text-8xl leading-tight font-semibold text-balance text-transparent bg-clip-text bg-gradient-to-r animate-blurred-fade-in`, | ||
textColorTitle | ||
? textColorTitle | ||
: 'from-blue-600 to-violet-700 dark:from-orange-200 dark:to-violet-800' | ||
)} | ||
style={{ | ||
animationDelay: '100ms' | ||
}} | ||
> | ||
{title ? title : DEFAULT_HEADING} | ||
{title} | ||
</h1> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,15 @@ | ||
'use client' | ||
|
||
import Link from 'next/link' | ||
|
||
import { useBuilder } from '@/store' | ||
import { HeadingHero } from '@/components/heading-hero' | ||
|
||
export function Hero() { | ||
const featureSelected = useBuilder((store) => store.featureSelected) | ||
const { title, description, textColorTitle } = featureSelected ?? {} | ||
const { description, textColorTitle } = featureSelected ?? {} | ||
|
||
return ( | ||
<div className='w-full lg:w-2/3 flex flex-col justify-start'> | ||
<HeadingHero title={title} textColorTitle={textColorTitle} /> | ||
<p | ||
className='text-gray-500 dark:text-gray-300/90 text-base md:text-lg xl:text-2xl text-pretty mt-2 sm:mt-4 animate-fade-in max-w-4xl' | ||
style={{ animationDelay: '300ms' }} | ||
> | ||
{featureSelected | ||
? description | ||
: 'Generate visually stunning READMEs with AI and elegant pre-designed templates.'} | ||
</p> | ||
<div className='pt-8 lg:pt-10'> | ||
<Link | ||
className='py-4 px-6 bg-[#27263b] dark:hover:bg-[#1a172a] text-zinc-300 hover:bg-primary/90 rounded-xl text-sm sm:text-lg 2xl:text-2xl font-medium transition-colors animate-fade-in' | ||
style={{ animationDelay: '400ms' }} | ||
href='/builder' | ||
> | ||
Get Started | ||
</Link> | ||
</div> | ||
<div className='w-full'> | ||
<HeadingHero title={description} textColorTitle={textColorTitle} /> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.