-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
16 changed files
with
120 additions
and
13 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -22,4 +22,8 @@ dist-ssr | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
.env | ||
.env | ||
|
||
.yarn/ | ||
|
||
install-state.gz |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,9 +1,58 @@ | ||
import { PredictFutureBtn } from '@/components/common/PredictFutureBtn'; | ||
import { useBreakpoint } from '@/hooks/use-breakpoint'; | ||
import { cn } from '@/lib/utils'; | ||
import { BaseComponentProps } from '@/types'; | ||
|
||
export const CtaBlock = () => { | ||
const isMd = useBreakpoint('md'); | ||
|
||
return ( | ||
<div className="col flex min-h-[600px] items-center justify-center bg-[url('/images/textures/light-yellow.png')] bg-repeat"> | ||
<p className="max-w-[327px] gap-[50px] text-center text-[30px] md:max-w-[1113px] md:text-[50px]"> | ||
<div className="relative flex min-h-[600px] flex-col items-center gap-10 bg-[url('/images/textures/light-yellow.png')] bg-repeat px-6 pb-10 pt-[100px] md:px-10 md:pb-[120px] md:pt-[170px]"> | ||
<div className="flex items-center gap-7 md:hidden"> | ||
<Dot className="w-[16px]" /> | ||
<Star className="-translate-y-10" /> | ||
<Dot className="w-[16px]" /> | ||
</div> | ||
<p className="max-w-none gap-5 text-center text-[30px] md:max-w-[1113px] md:gap-[50px] md:text-[50px]"> | ||
Lorem ipsum dolor sit amet consectetur. Tellus auctor dignissim nulla gravida volutpat. | ||
</p> | ||
<div className="flex items-center gap-8 md:hidden"> | ||
<Hand className="max-w-[100px]" /> | ||
<Dot className="translate-y-4" /> | ||
<Hand className="max-w-[100px] scale-x-[-1]" /> | ||
</div> | ||
<div className="w-full md:max-w-max lg:max-w-[400px]"> | ||
<PredictFutureBtn /> | ||
</div> | ||
<Sunburst className="block md:hidden" /> | ||
{isMd && ( | ||
<> | ||
<Hand className="absolute left-[5%] top-[36%] hidden xl:block 2xl:left-[12%]" /> | ||
<Hand className="absolute right-[15%] top-1/2 hidden scale-x-[-1] xl:block" /> | ||
<Dot className="absolute left-[2%] top-1/2 2xl:left-[6%]" /> | ||
<Dot className="absolute right-[22%] top-[15%]" /> | ||
<Star className="absolute left-[15%] top-[15%]" /> | ||
<Star className="absolute bottom-[15%] right-[8%]" /> | ||
<Sunburst className="absolute bottom-[20%] left-[25%]" /> | ||
<Sunburst className="absolute right-[8%] top-[60px] max-w-[51px] lg:top-[25%]" /> | ||
</> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
const Star = ({ className }: BaseComponentProps) => ( | ||
<img src="/icons/star.svg" alt="star" className={cn('pointer-events-none', className)} /> | ||
); | ||
|
||
const Dot = ({ className }: BaseComponentProps) => ( | ||
<img src="/icons/dot.svg" alt="dot" className={cn('pointer-events-none', className)} /> | ||
); | ||
|
||
const Hand = ({ className }: BaseComponentProps) => ( | ||
<img src="/images/hand.png" alt="hand" className={cn('pointer-events-none', className)} /> | ||
); | ||
|
||
const Sunburst = ({ className }: BaseComponentProps) => ( | ||
<img src="/icons/sunburst.svg" alt="sunburst" className={cn('pointer-events-none', className)} /> | ||
); |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { GoToTwitterBtn } from '@/components/common/GoToTwitterBtn'; | ||
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; | ||
|
||
const FAQ_MOCK = [ | ||
{ title: 'What is Tarot?', description: 'Lorem ipsum' }, | ||
{ title: 'How does this site work?', description: 'Lorem ipsum' }, | ||
{ title: 'How many questions can I ask?', description: 'Lorem ipsum' }, | ||
{ title: 'How much does this cost?', description: 'Lorem ipsum' }, | ||
{ title: 'Can I share my reading with others?', description: 'Lorem ipsum' }, | ||
]; | ||
|
||
export const Faq = () => { | ||
return ( | ||
<div className="grid w-full grid-rows-[auto_auto] bg-[url('/images/textures/green.png')] bg-repeat pt-[80px] font-inknut *:pb-[80px] *:lg:pb-[140px] xl:grid-cols-2"> | ||
<div className="w-full space-y-8 px-[24px] lg:pl-[100px] lg:pr-[140px] xl:border-r"> | ||
<p className="text-[40px] font-light leading-[48px] md:text-[60px] md:leading-[72px]"> | ||
Frequently Asked Questions | ||
</p> | ||
|
||
<Accordion type="single" defaultValue="item-0"> | ||
{FAQ_MOCK.map((el, i) => ( | ||
<AccordionItem value={`item-${i}`} key={i}> | ||
<AccordionTrigger>{el.title}</AccordionTrigger> | ||
<AccordionContent>{el.description}</AccordionContent> | ||
</AccordionItem> | ||
))} | ||
</Accordion> | ||
</div> | ||
<div className="flex h-full min-h-full w-full flex-col justify-between border-b border-black px-[24px] lg:pl-[140px] lg:pr-[80px]"> | ||
<div className="space-y-8"> | ||
<p className="text-[40px] font-light leading-[48px] max-sm:max-w-[327px] md:text-[60px] md:leading-[72px]"> | ||
Horoscope on Twitter for every day | ||
</p> | ||
<div className="w-full md:max-w-[210px]"> | ||
<GoToTwitterBtn /> | ||
</div> | ||
<img | ||
src="/images/horoscope.png" | ||
alt="horoscope" | ||
className="mx-auto h-[327px] w-[327px] md:mx-0 md:h-auto md:w-auto" | ||
/> | ||
</div> | ||
</div> | ||
</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 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,15 +1,17 @@ | ||
import { AboutSection } from '@/components/common/About'; | ||
import { TarotLine } from '@/components/common/TarotLine'; | ||
import { CtaBlock } from '@/components/pages/home/cta'; | ||
import { Faq } from '@/components/pages/home/faq'; | ||
import { Hero } from '@/components/pages/home/hero'; | ||
|
||
export default function HomePage() { | ||
return ( | ||
<> | ||
<Hero /> | ||
<TarotLine words={new Array(5).fill(['Love', 'Money', 'Life', 'Deals', 'Work']).flat(Infinity)} /> | ||
<TarotLine words={new Array(10).fill(['Love', 'Money', 'Life', 'Deals', 'Work']).flat(Infinity)} /> | ||
<AboutSection /> | ||
<CtaBlock /> | ||
<Faq /> | ||
</> | ||
); | ||
} |