Skip to content

Commit 49b5830

Browse files
authored
Merge pull request #12 from roboflow/feature-pcs-leaderboard
Refactor HeroSection layout for improved responsiveness
2 parents b6b31cd + b6078dc commit 49b5830

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/components/HeroSection.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export function HeroSection({
4444
// </section>
4545
<section className="pt-6">
4646
<div className="container-base">
47-
<div className="flex lg:flex-row flex-col justify-between lg:gap-16 gap-6">
48-
<div className="space-y-2 max-w-lg lg:w-full">
47+
<div className="flex md:flex-row flex-col justify-between md:gap-16 gap-6">
48+
<div className="space-y-2 max-w-lg md:w-full">
4949
<Badge variant="primary">
5050
<Link href={badgeHref} target="_blank" className="flex items-center gap-1">
5151
{badgeText} <ArrowSquareOutIcon size={14} weight="thin" />
@@ -56,7 +56,7 @@ export function HeroSection({
5656
</h1>
5757
<p className="prose prose-sm">{description}</p>
5858
</div>
59-
<div className="w-full h-full aspect-video bg-foreground/5 rounded-md overflow-hidden">
59+
<div className="hidden sm:block md:w-1/2 lg:w-1/3 h-full aspect-video bg-foreground/5 rounded-md overflow-hidden">
6060
<video autoPlay muted className="w-full h-full object-cover" poster={videoPosterUrl}>
6161
<source src={videoUrl} type="video/mp4" />
6262
</video>

0 commit comments

Comments
 (0)