UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
🐛 fix: style fixes
Dillion Verma3df1e2c3bf1b
diff --git a/app/(docs)/components/page.tsx b/app/(docs)/components/page.tsxindex 290eb9f8..8b173399 100644--- a/app/(docs)/components/page.tsx+++ b/app/(docs)/components/page.tsx@@ -4,6 +4,12 @@ import { allComponents } from "contentlayer/generated";import { compareDesc } from "date-fns";import Link from "next/link";+export async function generateStaticParams() {+ return allComponents.map((component) => ({+ slug: component.slugAsParams,+ }));+}+export const metadata = constructMetadata({title: "Components | Magic UI",description:diff --git a/registry/components/example/animated-beam-bidirectional.tsx b/registry/components/example/animated-beam-bidirectional.tsxindex d9224d22..49fb2ddd 100644--- a/registry/components/example/animated-beam-bidirectional.tsx+++ b/registry/components/example/animated-beam-bidirectional.tsx@@ -13,7 +13,7 @@ const Circle = forwardRef<<divref={ref}className={cn(- "z-10 flex h-12 w-12 items-center justify-center rounded-full bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",+ "z-10 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",className,)}>diff --git a/registry/components/example/animated-beam-demo.tsx b/registry/components/example/animated-beam-demo.tsxindex 6b16546e..93341b8e 100644--- a/registry/components/example/animated-beam-demo.tsx+++ b/registry/components/example/animated-beam-demo.tsx@@ -13,7 +13,7 @@ const Circle = forwardRef<<divref={ref}className={cn(- "z-10 flex h-12 w-12 items-center justify-center rounded-full bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",+ "z-10 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",className,)}>@@ -38,7 +38,7 @@ export default function AnimatedBeamDemo() {ref={containerRef}><div className="flex h-full w-full flex-col items-stretch justify-between gap-10">- <div className="flex flex-row justify-between">+ <div className="flex flex-row items-center justify-between"><Circle ref={div1Ref}><Icons.googleDrive /></Circle>@@ -46,18 +46,18 @@ export default function AnimatedBeamDemo() {<Icons.googleDocs /></Circle></div>- <div className="flex flex-row justify-between">+ <div className="flex flex-row items-center justify-between"><Circle ref={div2Ref}><Icons.notion /></Circle>- <Circle ref={div4Ref}>+ <Circle ref={div4Ref} className="h-16 w-16"><Icons.openai /></Circle><Circle ref={div6Ref}><Icons.zapier /></Circle></div>- <div className="flex flex-row justify-between">+ <div className="flex flex-row items-center justify-between"><Circle ref={div3Ref}><Icons.whatsapp /></Circle>diff --git a/registry/components/example/animated-beam-multiple-inputs.tsx b/registry/components/example/animated-beam-multiple-inputs.tsxindex 9365d024..5d7eacd2 100644--- a/registry/components/example/animated-beam-multiple-inputs.tsx+++ b/registry/components/example/animated-beam-multiple-inputs.tsx@@ -13,7 +13,7 @@ const Circle = forwardRef<<divref={ref}className={cn(- "z-10 flex h-12 w-12 items-center justify-center rounded-full bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",+ "z-10 flex h-12 w-12 items-center justify-center rounded-full border-2 border-border bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",className,)}>@@ -56,7 +56,7 @@ export default function AnimatedBeamDemo() {</Circle></div><div className="flex flex-col justify-center">- <Circle ref={div6Ref}>+ <Circle ref={div6Ref} className="h-16 w-16"><Icons.openai /></Circle></div>diff --git a/registry/components/example/animated-beam-multiple-outputs.tsx b/registry/components/example/animated-beam-multiple-outputs.tsxindex 01201503..3b15e92c 100644--- a/registry/components/example/animated-beam-multiple-outputs.tsx+++ b/registry/components/example/animated-beam-multiple-outputs.tsx@@ -13,7 +13,7 @@ const Circle = forwardRef<<divref={ref}className={cn(- "z-10 flex h-12 w-12 items-center justify-center rounded-full bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",+ "z-10 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",className,)}>@@ -44,7 +44,7 @@ export default function AnimatedBeamDemo() {</Circle></div><div className="flex flex-col justify-center">- <Circle ref={div6Ref}>+ <Circle ref={div6Ref} className="h-16 w-16"><Icons.openai /></Circle></div>diff --git a/registry/components/example/animated-beam-unidirectional.tsx b/registry/components/example/animated-beam-unidirectional.tsxindex 2fce7fae..5d49500a 100644--- a/registry/components/example/animated-beam-unidirectional.tsx+++ b/registry/components/example/animated-beam-unidirectional.tsx@@ -13,7 +13,7 @@ const Circle = forwardRef<<divref={ref}className={cn(- "z-10 flex h-12 w-12 items-center justify-center rounded-full bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",+ "z-10 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",className,)}>diff --git a/scripts/load-test.sh b/scripts/load-test.shnew file mode 100755index 00000000..ee9f6c02--- /dev/null+++ b/scripts/load-test.sh@@ -0,0 +1,20 @@+max="$1"+date+echo "url: $2+rate: $max calls / second"+START=$(date +%s);++get () {+ curl -s -v "$1" 2>&1 | tr '\r\n' '\\n' | awk -v date="$(date +'%r')" '{print $0"\n-----", date}' >> /tmp/perf-test.log+}++while true+do+ echo $(($(date +%s) - START)) | awk '{print int($1/60)":"int($1%60)}'+ sleep 1++ for i in `seq 1 $max`+ do+ get $2 &+ done+done\ No newline at end of file