Skip to content

Commit 16b089a

Browse files
committed
style(home): improve responsive layout for hero and stats components
1 parent febb51c commit 16b089a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/business/home-hero.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function HomeHero({ dockerPulls }: { dockerPulls: number }) {
4545
return (
4646
<section className="relative mx-auto max-w-7xl overflow-hidden px-4 sm:px-6 lg:px-8 pt-20 pb-16 lg:pt-28">
4747
<div className="relative flex items-center gap-12">
48-
<div className="space-y-6 text-center lg:text-left relative z-20 w-3/5">
48+
<div className="space-y-6 text-center lg:text-left relative z-20 lg:w-3/5">
4949
<h1 className="font-display text-3xl font-extrabold tracking-tight text-primary sm:text-4xl md:text-5xl xl:text-6xl leading-tight">
5050
The World’s Fastest-Growing Open-Source Distributed Object Storage
5151
</h1>
@@ -65,13 +65,13 @@ export default function HomeHero({ dockerPulls }: { dockerPulls: number }) {
6565
className="inline-flex"
6666
/>
6767
</div>
68-
<div className="flex flex-col items-center justify-center gap-4 sm:flex-row sm:justify-start lg:justify-start">
68+
<div className="flex flex-col items-center justify-center gap-4 sm:flex-row lg:justify-start">
6969
<DownloadLink />
7070
<DemoLink className="hidden md:inline-flex" />
7171
</div>
7272
</div>
7373

74-
<div className="flex items-center justify-center w-2/5">
74+
<div className="flex items-center justify-center lg:w-2/5 absolute bottom-[-50vh] left-0 right-0 md:static w-full md:w-auto opacity-40 lg:opacity-100">
7575
<div className="relative w-full max-w-[560px] md:max-w-[620px] lg:max-w-[680px] aspect-square">
7676
<Globe className="h-full w-full opacity-95 drop-shadow-2xl" config={globeConfig} />
7777
</div>

components/business/stats-strip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default function StatsStrip({
128128
<div className="container px-5 py-12 lg:py-16 xl:py-20 mx-auto">
129129
<div className="flex flex-wrap -m-4 text-left">
130130
{items.map(({ label, value }) => (
131-
<div key={label} className="px-4 sm:w-1/4 w-1/2 pl-6 border-l">
131+
<div key={label} className="px-4 sm:w-1/4 w-1/2 pl-6 border-l mt-4 xl:mt-0">
132132
<h2 className="title-font font-extrabold sm:text-4xl text-3xl text-gray-900 dark:text-gray-50">
133133
{loading ? (
134134
'—'

0 commit comments

Comments
 (0)