Skip to content

Commit ffd2cf5

Browse files
committed
Merge branch 'main' into production
2 parents a34ae40 + 70d696a commit ffd2cf5

176 files changed

Lines changed: 2085 additions & 713 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NEXT_PUBLIC_APP_URL=https://animata.design

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,9 @@ next-env.d.ts
3939

4040
*storybook.log
4141
public/preview
42+
public/r
43+
public/docs
44+
public/llms.txt
45+
public/llms-full.txt
4246
_internal/
4347
.superset/

app/(main)/_landing/stats-bento.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function OrbitItem({
126126
function FrameworkOrbit() {
127127
return (
128128
<div className="relative flex h-40 w-full items-center justify-center overflow-hidden rounded-xl border border-border bg-[hsl(var(--surface-alt))] sm:h-48">
129-
<Icons.logo className="z-10 h-8 w-8 rounded-full bg-gradient-to-br from-violet-500 to-indigo-600 p-1.5 shadow-lg sm:h-10 sm:w-10 sm:p-2" />
129+
<Icons.logo className="z-10 h-8 w-8 rounded-full bg-linear-to-br from-violet-500 to-indigo-600 p-1.5 shadow-lg sm:h-10 sm:w-10 sm:p-2" />
130130
{frameworkItems.map((item, i) => (
131131
<OrbitItem key={item.key} index={i} total={frameworkItems.length} duration={35}>
132132
{item.icon}
@@ -161,11 +161,11 @@ export default function StatsBento() {
161161
Loved by developers worldwide
162162
</span>
163163
<div className="mt-3">
164-
<strong className="font-[family-name:var(--font-mono)] text-2xl font-bold tabular-nums text-foreground sm:text-3xl lg:text-4xl">
164+
<strong className="font-(family-name:--font-mono) text-2xl font-bold tabular-nums text-foreground sm:text-3xl lg:text-4xl">
165165
<RemountOnMouseIn>
166166
<Ticker
167167
value="2,392+"
168-
className="font-[family-name:var(--font-mono)] font-bold tabular-nums"
168+
className="font-(family-name:--font-mono) font-bold tabular-nums"
169169
/>
170170
</RemountOnMouseIn>
171171
</strong>
@@ -228,10 +228,10 @@ export default function StatsBento() {
228228
direction="up"
229229
delay={0}
230230
format={Formatter.number}
231-
className="font-[family-name:var(--font-mono)] text-5xl font-bold leading-[1] tabular-nums tracking-[-0.03em] text-foreground sm:text-6xl lg:text-7xl"
231+
className="font-(family-name:--font-mono) text-5xl font-bold leading-none tabular-nums tracking-[-0.03em] text-foreground sm:text-6xl lg:text-7xl"
232232
/>
233233
</RemountOnMouseIn>
234-
<span className="font-[family-name:var(--font-mono)] text-2xl font-bold text-muted-foreground sm:text-3xl">
234+
<span className="font-(family-name:--font-mono) text-2xl font-bold text-muted-foreground sm:text-3xl">
235235
+
236236
</span>
237237
</div>
@@ -270,11 +270,11 @@ export default function StatsBento() {
270270
</Marquee>
271271
</div>
272272
</div>
273-
<div className="-mx-4 -mb-4 mt-auto flex items-center justify-between border-t border-border bg-foreground/[0.03] px-4 py-3 sm:-mx-5 sm:-mb-5 sm:px-5 sm:py-4 lg:-mx-6 lg:-mb-6 lg:px-6">
273+
<div className="-mx-4 -mb-4 mt-auto flex items-center justify-between border-t border-border bg-foreground/3 px-4 py-3 sm:-mx-5 sm:-mb-5 sm:px-5 sm:py-4 lg:-mx-6 lg:-mb-6 lg:px-6">
274274
<p className="text-[10px] font-semibold uppercase tracking-wide text-muted-foreground sm:text-[11px]">
275275
Categories
276276
</p>
277-
<span className="font-[family-name:var(--font-mono)] text-2xl font-bold tabular-nums text-foreground sm:text-3xl">
277+
<span className="font-(family-name:--font-mono) text-2xl font-bold tabular-nums text-foreground sm:text-3xl">
278278
{categories.length}
279279
</span>
280280
</div>
@@ -313,18 +313,18 @@ export default function StatsBento() {
313313
<div className="flex flex-col gap-6 sm:flex-row sm:items-end sm:justify-between">
314314
{/* Left — statement */}
315315
<div>
316-
<h3 className="font-[family-name:var(--font-display)] text-[clamp(1.5rem,4vw,2.25rem)] leading-[1.1] text-foreground">
316+
<h2 className="font-(family-name:--font-display) text-[clamp(1.5rem,4vw,2.25rem)] leading-[1.1] text-foreground">
317317
We did the hard part.
318-
</h3>
319-
<p className="mt-1 text-[clamp(1.5rem,4vw,2.25rem)] leading-[1.1] text-muted-foreground font-[family-name:var(--font-display)]">
318+
</h2>
319+
<p className="mt-1 text-[clamp(1.5rem,4vw,2.25rem)] leading-[1.1] text-muted-foreground font-(family-name:--font-display)">
320320
So you don&apos;t have to.
321321
</p>
322322
</div>
323323
{/* Right — numbers */}
324324
<div className="flex gap-8 sm:gap-10">
325325
<div>
326326
<div className="flex items-baseline gap-0.5">
327-
<span className="font-[family-name:var(--font-mono)] text-3xl font-bold leading-[1] tabular-nums text-foreground sm:text-4xl">
327+
<span className="font-(family-name:--font-mono) text-3xl font-bold leading-none tabular-nums text-foreground sm:text-4xl">
328328
1,100
329329
</span>
330330
<span className="text-lg text-muted-foreground">+</span>
@@ -335,7 +335,7 @@ export default function StatsBento() {
335335
</div>
336336
<div>
337337
<div className="flex items-baseline gap-0.5">
338-
<span className="font-[family-name:var(--font-mono)] text-3xl font-bold leading-[1] tabular-nums text-foreground sm:text-4xl">
338+
<span className="font-(family-name:--font-mono) text-3xl font-bold leading-none tabular-nums text-foreground sm:text-4xl">
339339
300
340340
</span>
341341
<span className="text-lg text-muted-foreground">+</span>

components/mdx-components.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { CopyProxy } from "@/components/copy-proxy";
2626
import { AnimataRenderer } from "@/components/dynamic-animata";
2727
import { FrameworkDocs } from "@/components/framework-docs";
2828
import PreviewContainer from "@/components/preview-container";
29+
import { RegistryInstall } from "@/components/registry-install";
2930
import {
3031
Accordion,
3132
AccordionContent,
@@ -199,6 +200,7 @@ const components = {
199200
ComponentPreview,
200201
ComponentExample,
201202
ComponentSource,
203+
RegistryInstall,
202204
AspectRatio,
203205
CodeBlockWrapper: ({ ...props }) => <CodeBlockWrapper className="rounded-md border" {...props} />,
204206
Step: ({ className, ...props }: ComponentProps<"h3">) => (

components/registry-install.tsx

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
"use client";
2+
3+
import { CopyNpmCommandButton } from "@/components/copy-button";
4+
import { siteConfig } from "@/config/site";
5+
import { cn } from "@/lib/utils";
6+
7+
type PackageManager = "pnpm" | "npm" | "yarn" | "bun";
8+
9+
const REGISTRY_BASE_URL = (process.env.NEXT_PUBLIC_APP_URL || siteConfig.url).replace(/\/$/, "");
10+
11+
interface RegistryInstallProps {
12+
category: string;
13+
name: string;
14+
className?: string;
15+
}
16+
17+
export function RegistryInstall({ category, name, className }: RegistryInstallProps) {
18+
const url = `${REGISTRY_BASE_URL}/r/${category}/${name}.json`;
19+
const commands: Record<PackageManager, string> = {
20+
pnpm: `pnpm dlx shadcn@latest add ${url}`,
21+
npm: `npx shadcn@latest add ${url}`,
22+
yarn: `yarn dlx shadcn@latest add ${url}`,
23+
bun: `bunx shadcn@latest add ${url}`,
24+
};
25+
26+
return (
27+
<pre
28+
className={cn(
29+
"w-full grid grid-cols-[1fr_auto] mt-4 rounded-lg bg-zinc-800 p-4 [&_code]:bg-transparent",
30+
className,
31+
)}
32+
>
33+
<code
34+
className={cn(
35+
"relative rounded max-w-full overflow-x-auto bg-zinc-800 px-2 py-[0.2rem] font-mono text-sm text-white",
36+
className,
37+
)}
38+
>
39+
{commands.pnpm}
40+
</code>
41+
42+
<CopyNpmCommandButton
43+
commands={{
44+
__npmCommand__: commands.npm,
45+
__yarnCommand__: commands.yarn,
46+
__pnpmCommand__: commands.pnpm,
47+
__bunCommand__: commands.bun,
48+
}}
49+
/>
50+
</pre>
51+
);
52+
}

content/docs/accordion/faq.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ published: false
99

1010
## Installation
1111

12+
### CLI
13+
14+
<RegistryInstall category="accordion" name="faq" />
15+
16+
### Manual
17+
1218
<Steps>
1319
<Step>Install dependencies</Step>
1420

1521
```bash
16-
npm install framer-motion lucide-react
22+
npm install motion lucide-react
1723
```
1824

1925
<Step>Run the following command</Step>

content/docs/background/animated-beam.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ author: harimanok_
88

99
## Installation
1010

11+
### CLI
12+
13+
<RegistryInstall category="background" name="animated-beam" />
14+
15+
### Manual
16+
1117
<Steps>
1218

1319
<Step>Add to your CSS</Step>

content/docs/background/blurry-blob.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ author: ll4xmii
88

99
## Installation
1010

11+
### CLI
12+
13+
<RegistryInstall category="background" name="blurry-blob" />
14+
15+
### Manual
16+
1117
<Steps>
1218
<Step>Add to your CSS</Step>
1319
```css

content/docs/background/diagonal-lines.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ author: harimanok_
88

99
## Installation
1010

11+
### CLI
12+
13+
<RegistryInstall category="background" name="diagonal-lines" />
14+
15+
### Manual
16+
1117
<Steps>
1218
<Step>Run the following command</Step>
1319

content/docs/background/dot.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ author: harimanok_
88

99
## Installation
1010

11+
### CLI
12+
13+
<RegistryInstall category="background" name="dot" />
14+
15+
### Manual
16+
1117
<Steps>
1218
<Step>Run the following command</Step>
1319

0 commit comments

Comments
 (0)