Skip to content

Commit 2b35bd1

Browse files
committed
👌 IMPROVE: faster webgl
1 parent b115d0f commit 2b35bd1

File tree

4 files changed

+1342
-350
lines changed

4 files changed

+1342
-350
lines changed

‎apps/baseai.dev/src/components/home/hero.tsx

Lines changed: 46 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function Content() {
2424
return (
2525
<div
2626
className={cn(
27-
'hero-content z-10 mt-10 flex min-h-[65vh] w-[90vw] flex-col justify-between p-6 text-white sm:mt-28 sm:min-h-[77.5vh] sm:w-[76vw]'
27+
'hero-content z-10 mt-10 flex min-h-[65vh] w-[90vw] flex-col justify-between p-6 text-white sm:mt-24 sm:min-h-[77.5vh] sm:w-[76vw]'
2828
)}
2929
>
3030
<div className={cn(' flex justify-between', inter.className)}>
@@ -44,7 +44,7 @@ function Content() {
4444

4545
<div
4646
className={cn(
47-
'mt-[16rem] flex flex-col items-center sm:mt-[22rem] lg:mt-[28rem] lg:mt-[28rem] 2xl:mt-[42rem]'
47+
'mt-[16rem] flex flex-col items-center sm:mt-[22rem] lg:mt-[28rem] lg:mt-[28rem] 2xl:mt-[40rem]'
4848
)}
4949
>
5050
<div
@@ -55,11 +55,17 @@ function Content() {
5555
>
5656
<div className="text-left lg:max-w-[60%]">
5757
<div className="text-center text-sm lg:text-left 2xl:text-[1vw] 2xl:leading-[1.5vw]">
58-
<span className="mr-4 hidden size-4 rounded-full bg-muted-foreground/70 lg:inline-block" />
59-
<strong> Base AI </strong>{' '}
60-
<span className="text-muted-foreground/90">
61-
The first Web AI Framework.
62-
</span>
58+
<div className="flex items-center">
59+
<div className="mr-4 hidden size-4 rounded-full bg-muted-foreground/70 sm:block"></div>
60+
<span className="text-sm text-muted-foreground/70 2xl:text-[1vw] 2xl:leading-[1vw]">
61+
<strong className="mr-2 text-white">
62+
Base AI
63+
</strong>{' '}
64+
<span className="text-muted-foreground/90">
65+
The first Web AI Framework.
66+
</span>
67+
</span>
68+
</div>
6369
<p className="mr-4 mt-4 text-muted-foreground/90 md:max-w-[500px] lg:max-w-full">
6470
The easiest way to build serverless autonomous
6571
AI agents with memory. Start building
@@ -129,7 +135,8 @@ function CopyableCommand({ command }: CopyableCommandProps) {
129135

130136
return (
131137
<div
132-
className="group mx-auto mb-4 mt-4 flex w-max cursor-pointer items-center justify-center font-mono text-sm transition-colors lg:mx-0"
138+
className="group my-4 flex w-full cursor-pointer items-center justify-center font-mono text-sm transition-colors lg:items-start lg:justify-start "
139+
// "mx-auto mt-8 flex w-full items-center justify-center space-x-2 lg:items-start lg:justify-start"
133140
onClick={copyToClipboard}
134141
role="button"
135142
tabIndex={0}
@@ -147,37 +154,37 @@ function CopyableCommand({ command }: CopyableCommandProps) {
147154
<span className="font-mono text-muted-foreground/50 transition-colors group-hover:text-indigo-400 sm:text-sm 2xl:leading-[1.5vw] ">
148155
{command}
149156
</span>
150-
</div>
151-
<div className="ml-2 text-muted-foreground/50 transition-colors group-hover:text-indigo-400 sm:text-sm 2xl:leading-[1.5vw]">
152-
{copied ? (
153-
<svg
154-
xmlns="http://www.w3.org/2000/svg"
155-
className="h-[1em] w-[1em]"
156-
viewBox="0 0 20 20"
157-
fill="currentColor"
158-
>
159-
<path
160-
fillRule="evenodd"
161-
d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
162-
clipRule="evenodd"
163-
/>
164-
</svg>
165-
) : (
166-
<svg
167-
xmlns="http://www.w3.org/2000/svg"
168-
className="h-[1em] w-[1em]"
169-
fill="none"
170-
viewBox="0 0 24 24"
171-
stroke="currentColor"
172-
>
173-
<path
174-
strokeLinecap="round"
175-
strokeLinejoin="round"
176-
strokeWidth={2}
177-
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
178-
/>
179-
</svg>
180-
)}
157+
<div className="ml-2 text-muted-foreground/50 transition-colors group-hover:text-indigo-400 sm:text-sm 2xl:leading-[1.5vw]">
158+
{copied ? (
159+
<svg
160+
xmlns="http://www.w3.org/2000/svg"
161+
className="h-[1em] w-[1em]"
162+
viewBox="0 0 20 20"
163+
fill="currentColor"
164+
>
165+
<path
166+
fillRule="evenodd"
167+
d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
168+
clipRule="evenodd"
169+
/>
170+
</svg>
171+
) : (
172+
<svg
173+
xmlns="http://www.w3.org/2000/svg"
174+
className="h-[1em] w-[1em]"
175+
fill="none"
176+
viewBox="0 0 24 24"
177+
stroke="currentColor"
178+
>
179+
<path
180+
strokeLinecap="round"
181+
strokeLinejoin="round"
182+
strokeWidth={2}
183+
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
184+
/>
185+
</svg>
186+
)}
187+
</div>
181188
</div>
182189
</div>
183190
);

0 commit comments

Comments
 (0)