Spaces:
Running
Running
File size: 1,714 Bytes
21a686e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
import { cn } from "@/lib/utils";
import React from "react";
export function BackgroundDotsMasked() {
return (
<div className="flex h-screen flex-col items-center justify-center">
<Background />
<Content />
</div>
);
}
const Content = () => {
return (
<div className="relative z-10">
<h1 className="text-balance mx-auto max-w-2xl text-center text-3xl font-bold text-black dark:text-white md:text-5xl">
Web apps that make you feel like you're in the future
</h1>
<p className="text-balance mx-auto mt-4 max-w-2xl text-center text-base text-neutral-800 dark:text-neutral-200">
We are a team of developers who are passionate about creating web apps
that make you feel like you're in the future.
</p>
<div className="mt-8 flex flex-col items-center justify-center gap-4 sm:flex-row">
<button className="w-40 rounded-lg bg-gradient-to-b from-neutral-950 to-neutral-800 px-4 py-2 text-sm text-white">
Sign up
</button>
<button className="w-40 rounded-lg bg-gradient-to-b from-neutral-100 to-neutral-50 px-4 py-2 text-sm text-black">
Register now
</button>
</div>
</div>
);
};
const Background = () => {
return (
<div
className={cn(
"pointer-events-none absolute inset-0 z-0 h-full w-full",
"bg-[radial-gradient(circle_at_0.5px_0.5px,rgba(0,0,0,0.3)_0.5px,transparent_0)]",
"dark:bg-[radial-gradient(circle_at_0.5px_0.5px,rgba(255,255,255,0.3)_0.5px,transparent_0)]",
"[mask-image:radial-gradient(circle_at_center,white,transparent)]",
"bg-repeat",
"[background-size:8px_8px]"
)}
/>
);
};
|