Skip to content

Commit a29e193

Browse files
committed
feat(landing): make hero com responsive
1 parent 351441e commit a29e193

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

apps/docs/components/hero.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function Hero() {
2525
: "radial-gradient(ellipse 120% 100% at 50% 0%, transparent 0%, rgba(255,255,255,0.3) 60%, rgba(255,255,255,0.7) 100%)";
2626

2727
return (
28-
<div className="relative flex flex-col items-center justify-center min-h-[calc(100vh-64px)] w-full overflow-hidden p-4 md:p-8">
28+
<div className="relative flex flex-col items-center justify-center min-h-screen w-full overflow-hidden pt-24 p-4 md:pt-32 lg:p-8 ">
2929
{/* Background Grid with Gradient Overlay */}
3030
<div className="absolute inset-0 pointer-events-none">
3131
{/* Grid Pattern */}
@@ -49,25 +49,25 @@ export function Hero() {
4949
/>
5050
</div>
5151

52-
<div className="relative z-10 grid grid-cols-1 lg:grid-cols-2 gap-12 max-w-7xl w-full items-center">
52+
<div className="relative z-10 grid grid-cols-1 lg:grid-cols-2 gap-6 md:gap-12 max-w-7xl w-full items-center mt-8">
5353
{/* Left Column */}
54-
<div className="flex flex-col items-start text-left space-y-6">
55-
<div className="flex items-center gap-2 mb-2 text-xs text-gray-600 dark:text-gray-400">
54+
<div className="flex flex-col items-start text-left space-y-4 sm:space-y-6">
55+
<div className="flex items-center gap-2 mb-1 sm:mb-2 text-xs sm:text-sm text-gray-600 dark:text-gray-400">
5656
<div className="w-2 h-2 rounded-full bg-black/50 dark:bg-white/50" />
5757
<span>Blazingly Fast :)</span>
5858
</div>
5959

60-
<h1 className="text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight text-black dark:text-white leading-tight">
60+
<h1 className="text-2xl sm:text-3xl md:text-4xl lg:text-5xl xl:text-6xl font-bold tracking-tight text-black dark:text-white leading-tight">
6161
The AI Toolkit for <span className="text-orange-500">Rust</span>
6262
</h1>
6363

64-
<p className="text-base text-gray-600 dark:text-gray-400 max-w-xl">
64+
<p className="text-sm sm:text-base text-gray-600 dark:text-gray-400 max-w-full sm:max-w-xl">
6565
An open-source Rust library for building AI-powered applications,
6666
inspired by the Vercel AI SDK.
6767
</p>
6868

6969
{/* Command Snippet */}
70-
<div className="w-full rounded-xs max-w-md bg-white border border-black/10 dark:bg-black dark:border-white/10 p-2.5 flex items-center gap-2.5 font-mono text-xs">
70+
<div className="w-full rounded-xs max-w-full sm:max-w-md bg-white border border-black/10 dark:bg-black dark:border-white/10 p-2.5 flex items-center gap-2.5 font-mono text-xs">
7171
<span className="text-black dark:text-white font-semibold">
7272
<span className="text-red-500 dark:text-red-400"> cargo </span>add{" "}
7373
<span className="text-orange-500">aisdk</span>
@@ -81,16 +81,16 @@ export function Hero() {
8181
<div className="flex flex-wrap gap-3">
8282
<Button
8383
asChild
84-
size="default"
85-
className="bg-black dark:bg-white rounded-xs font-semibold text-white dark:text-black hover:bg-gray-800 dark:hover:bg-gray-200 px-6"
84+
size="sm"
85+
className="bg-black dark:bg-white rounded-xs font-semibold text-white dark:text-black hover:bg-gray-800 dark:hover:bg-gray-200 px-4 sm:px-6"
8686
>
8787
<Link href="/docs">GET STARTED</Link>
8888
</Button>
8989
<Button
9090
variant="outline"
91-
size="default"
91+
size="sm"
9292
asChild
93-
className="px-5 rounded-xs border-black/10 dark:border-white/10 bg-transparent text-black dark:text-white hover:bg-black/5 dark:hover:bg-white/5 hover:text-black dark:hover:text-white"
93+
className="px-3 sm:px-5 rounded-xs border-black/10 dark:border-white/10 bg-transparent text-black dark:text-white hover:bg-black/5 dark:hover:bg-white/5 hover:text-black dark:hover:text-white"
9494
>
9595
<Link href="https://github.com/lazy-hq/aisdk" target="_blank">
9696
<SquareArrowOutUpRight className="mr-1 h-4 w-4" />

0 commit comments

Comments
 (0)