Skip to content
Open
Changes from all commits
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
19 changes: 8 additions & 11 deletions docs/src/components/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export const HomePage = ({
}) => {
return (
<div className="flex md:h-[calc(100vh-162px)] pt-12">
<div className="flex flex-col md:h-full md:mr-8">
<div className="flex flex-col flex-1 md:mb-0 mb-12">
<div className="flex flex-col md:h-full md:mr-8 flex-1">
<div className="flex flex-col xl:flex-1 md:mb-0 mb-3">
<Image src="/logo.png" alt="@use-funnel logo" width={140} height={140} />
<h1 className="flex flex-col gap-4 mb-12">
<strong className="relative text-6xl font-bold">{title}</strong>
<p className="text-2xl leading-normal break-words">{description}</p>
<h1 className="flex flex-col gap-4 mb-6">
<strong className="relative text-6xl max-md:text-4xl font-bold">{title}</strong>
<p className="text-2xl max-lg:text-xl leading-normal break-words">{description}</p>
</h1>
<div>
<Link href="/docs/overview">
Expand All @@ -30,12 +30,9 @@ export const HomePage = ({
</div>
</div>

<div className="flex md:flex-row flex-col justify-between gap-8 items-stretch">
<div className="flex mt-6 flex-col xl:flex-row justify-between gap-8 items-stretch">
{items.map(({ title, desc }) => (
<div
className="flex flex-1 flex-col items-start gap-3 bg-opacity-10 bg-slate-500 rounded-lg py-4 px-6"
key={title}
>
<div className="flex flex-1 flex-col items-start gap-3 bg-slate-500/10 rounded-lg py-4 px-6" key={title}>
<div className="text-xl font-bold opacity-80">{title}</div>
<p className="text-base whitespace-break-spaces opacity-60">{desc}</p>
</div>
Expand All @@ -44,7 +41,7 @@ export const HomePage = ({
</div>

<video
className="float-right max-w-[40%] invert-video hidden md:block rounded-lg "
className="max-w-[40%] flex-shrink-0 invert-video hidden md:block rounded-lg"
src="/example.mp4"
poster="/overlay.png"
height="100%"
Expand Down