Skip to content

Commit c1b04d1

Browse files
authored
Merge pull request #28 from SiegfriedBz/feature/hero-image-only-layout
Feature(fe): improve hero
2 parents e366ced + 2f68471 commit c1b04d1

7 files changed

Lines changed: 6 additions & 44 deletions

File tree

apps/fe/app/(routes)/(home)/page.tsx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { HeroImage } from "@/app/_components/hero-image"
2-
import { HeroVideo } from "@/app/_components/hero-video"
32
import {
43
TypographyH1,
54
TypographyH2,
@@ -8,7 +7,6 @@ import {
87
TypographyP,
98
TypographySmall,
109
} from "@/app/_components/typography"
11-
import { VideoSkeleton } from "@/app/_components/video-skeleton"
1210
import { Button } from "@/components/ui/button"
1311
import {
1412
ArrowRight,
@@ -18,7 +16,7 @@ import {
1816
UsersRoundIcon,
1917
} from "lucide-react"
2018
import Link from "next/link"
21-
import { Fragment, Suspense } from "react"
19+
import { Fragment } from "react"
2220
import { Footer } from "./_components/footer"
2321

2422
const STATUS_DOT = {
@@ -115,15 +113,8 @@ export default function Page() {
115113
</div>
116114
</div>
117115

118-
<div className="w-full min-w-0 max-md:flex max-md:flex-1 max-md:items-center md:mt-0 md:flex-1 md:min-w-0">
119-
<div className="block w-full pt-4 md:hidden">
120-
<HeroImage />
121-
</div>
122-
<div className="hidden w-full md:block">
123-
<Suspense fallback={<VideoSkeleton />}>
124-
<HeroVideo />
125-
</Suspense>
126-
</div>
116+
<div className="w-full min-w-0 pt-8 md:flex-[1.3] md:pt-0">
117+
<HeroImage />
127118
</div>
128119
</main>
129120

apps/fe/app/_components/hero-image.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import type { FC } from "react"
33

44
export const HeroImage: FC = () => {
55
return (
6-
<div className="relative aspect-video max-h-138 w-full overflow-hidden rounded-lg bg-muted/40 shadow-[0_20px_40px_rgba(14,20,27,0.4)]">
6+
<div className="relative aspect-video w-full overflow-hidden rounded-lg bg-muted/40 shadow-[0_20px_40px_rgba(14,20,27,0.4)]">
77
<Image
8-
src="/images/hero-agentic-protocol.png"
8+
src="/images/hero-agentic-protocol.jpg"
99
alt="BioVerify Agentic Protocol Workflow"
1010
fill
1111
className="object-cover"
1212
priority
13-
sizes="(max-width: 1023px) 100vw, min(50vw, 36rem)"
13+
sizes="(max-width: 767px) 100vw, 55vw"
1414
/>
1515
<div className="pointer-events-none absolute inset-0 bg-linear-to-t from-background/80 via-transparent to-transparent" />
1616
</div>

apps/fe/app/_components/hero-video.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

apps/fe/app/_components/video-skeleton.tsx

Lines changed: 0 additions & 11 deletions
This file was deleted.
530 KB
Loading
-7.73 MB
Binary file not shown.
-1.67 MB
Binary file not shown.

0 commit comments

Comments
 (0)