Skip to content

Create professional demos and 3D mockups in seconds, directly in your browser

Implement authentication and home page layouts with header and footer components; add login, not found, and editor preview pages; create reusable button and input components; enhance styling and structure.

CristianOlivera11ed9b3c05d5e
diff --git a/app/(auth)/layout.tsx b/app/(auth)/layout.tsx
index e69de29..2a54fb4 100644
--- a/app/(auth)/layout.tsx
+++ b/app/(auth)/layout.tsx
@@ -0,0 +1,9 @@
+import "../globals.css";
+
+export default function AuthLayout({ children }: { children: React.ReactNode }) {
+ return (
+ <div className="min-h-screen bg-neutral-950">
+ {children}
+ </div>
+ );
+}
diff --git a/app/(auth)/login/page.tsx b/app/(auth)/login/page.tsx
new file mode 100644
index 0000000..c7702b6
--- /dev/null
+++ b/app/(auth)/login/page.tsx
@@ -0,0 +1,91 @@
+"use client";
+
+import { Button } from "@/components/ui/button";
+import { Icon } from "@iconify/react";
+import Image from "next/image";
+import Link from "next/link";
+
+export default function Login() {
+ return (
+ <div className="min-h-screen w-full bg-[#030303] grid lg:grid-cols-2 text-white selection:bg-white/30">
+ <div className="relative flex flex-col justify-center px-8 sm:px-16 lg:px-24 xl:px-32">
+
+ <div className="absolute top-8 left-8 sm:left-12 lg:left-16">
+ <Button
+ variant="ghost"
+ size="sm"
+ className="text-neutral-500 hover:text-white hover:bg-white/5 tracking-wide text-xs uppercase"
+ asChild
+ >
+ <Link href="/">
+ <Icon icon="solar:arrow-left-linear" className="mr-2" width="16" />
+ Volver
+ </Link>
+ </Button>
+ </div>
+
+ <div className="w-full max-w-sm mx-auto mt-16 lg:mt-0">
+ <div className="mb-10">
+ <Image src="/svg/logo-freeshot.svg" alt="Logo" width={60} height={60} className="mb-4" />
+ <h1 className="text-3xl sm:text-4xl font-light tracking-tighter text-white mb-3">
+ Bienvenido <br /> de nuevo
+ </h1>
+ <p className="text-neutral-300 text-md font-light tracking-wide">
+ Inicia sesión para empezar a crear tomas cinemáticas.
+ </p>
+ </div>
+
+ <div className="space-y-4">
+ <Button
+ variant="outline"
+ size="lg"
+ className="w-full h-12 gap-3 text-white border-white/10 bg-transparent hover:bg-white/5 transition-all font-light rounded-none"
+ >
+ <Icon icon="logos:google-icon" width="18" />
+ Continuar con Google
+ </Button>
+
+ <Button
+ variant="outline"
+ size="lg"
+ className="w-full h-12 gap-3 text-white border-white/10 bg-transparent hover:bg-white/5 transition-all font-light rounded-none"
+ >
+ <Icon icon="mdi:github" className="text-white size-5" />
+ Continuar con GitHub
+ </Button>
+ </div>
+
+ <p className="mt-12 text-md text-neutral-300 leading-relaxed font-light">
+ Al continuar, aceptas nuestros: <br />
+ <Link href="/terms" className="text-neutral-300 hover:text-white underline decoration-white/30 underline-offset-4 transition-colors">Términos de Servicio</Link> y{" "}
+ <Link href="/privacy" className="text-neutral-300 hover:text-white underline decoration-white/30 underline-offset-4 transition-colors">Política de Privacidad</Link>.
+ </p>
+ </div>
+ </div>
+ <div className="hidden lg:block relative w-full h-full border-l border-white/10 bg-black overflow-hidden group">
+ <Image
+ src="https://images.unsplash.com/photo-1526512340740-9217d0159da9?fm=jpg&q=60&w=3000&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8dmVydGljYWx8ZW58MHx8MHx8fDA%3D"
+ alt="Cinematic Shot"
+ fill
+ className="object-cover opacity-70 mix-blend-luminosity group-hover:mix-blend-normal transition-all duration-700 ease-in-out"
+ priority
+ />
+
+ <div className="absolute inset-0 bg-[radial-gradient(#ffffff22_1px,transparent_1px)] [background-size:24px_24px] opacity-20 pointer-events-none"></div>
+ <div className="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent pointer-events-none"></div>
+
+ <div className="absolute top-1/2 left-0 w-full h-[1px] bg-white/10 pointer-events-none"></div>
+ <div className="absolute top-0 left-1/2 w-[1px] h-full bg-white/10 pointer-events-none"></div>
+
+ <div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-64 h-64 border border-white/20 pointer-events-none flex items-center justify-center">
+ <div className="w-2 h-2 bg-white/50 rounded-full"></div>
+ </div>
+
+ <div className="absolute top-8 left-8 w-4 h-4 border-t border-l border-white/40 pointer-events-none"></div>
+ <div className="absolute bottom-8 left-8 w-4 h-4 border-b border-l border-white/40 pointer-events-none"></div>
+ <div className="absolute top-8 right-8 w-4 h-4 border-t border-r border-white/40 pointer-events-none"></div>
+
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/(home)/layout.tsx b/app/(home)/layout.tsx
new file mode 100644
index 0000000..c86704c
--- /dev/null
+++ b/app/(home)/layout.tsx
@@ -0,0 +1,15 @@
+import "../globals.css";
+import Header from "../components/common/header";
+import Footer from "../components/common/footer";
+
+export default function HomeLayout({ children }: { children: React.ReactNode }) {
+ return (
+ <div className="flex min-h-screen flex-col bg-gradient-radial-primary text-neutral-300">
+ <Header />
+ <main className="flex-1 w-full max-w-6xl mx-auto py-10 px-3 sm:px-6">
+ {children}
+ </main>
+ <Footer />
+ </div>
+ );
+}
diff --git a/app/(home)/page.tsx b/app/(home)/page.tsx
new file mode 100644
index 0000000..743a1be
--- /dev/null
+++ b/app/(home)/page.tsx
@@ -0,0 +1,18 @@
+import EditorPreview from "../components/ui/editor-preview";
+import Hero from "../components/ui/hero";
+
+export default function Home() {
+ return (
+ <div className="space-y-6">
+ <div className="relative pt-32 pb-20 overflow-hidden">
+ {/* Fondo decorativo */}
+ <div className="absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-gradient-to-b from-neutral-800/20 via-neutral-900/10 to-transparent rounded-[100%] blur-3xl pointer-events-none -z-10"></div>
+
+ <div className="max-w-7xl mx-auto px-6 text-center relative z-10">
+ <Hero/>
+ <EditorPreview/>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/app/_not-found/page.tsx b/app/_not-found/page.tsx
new file mode 100644
index 0000000..a7ee783
--- /dev/null
+++ b/app/_not-found/page.tsx
@@ -0,0 +1,10 @@
+export default function NotFound() {
+ return (
+ <div className="flex h-screen items-center justify-center bg-black">
+ <div className="text-center">
+ <h1 className="text-4xl font-bold text-white mb-4">404</h1>
+ <p className="text-xl text-gray-400">Página no encontrada</p>
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/common/footer.tsx b/app/components/common/footer.tsx
index 3004749..12fe900 100644
--- a/app/components/common/footer.tsx
+++ b/app/components/common/footer.tsx
@@ -1,5 +1,56 @@
-export default function Footer(){
+import { Icon } from "@iconify/react";
+
+export default function Footer() {
return (
- <div>Footer</div>
+ <footer className="border-t border-white/5 bg-[#050505] pt-16 pb-8">
+ <div className="max-w-7xl mx-auto px-6 flex flex-col md:flex-row justify-between gap-12 mb-16">
+ <div className="w-full md:w-1/3">
+ <div className="flex items-center gap-2 mb-4">
+ <div className="w-5 h-5 rounded bg-neutral-200 flex items-center justify-center text-black">
+ <Icon icon="solar:record-circle-linear" width="14"></Icon>
+ </div>
+ <span className="text-white font-medium tracking-tight">FreeShot</span>
+ </div>
+ <p className="text-neutral-500 text-sm leading-relaxed">
+ The modern standard for screen recording and video editing. Built for the web.
+ </p>
+ </div>
+
+ <div className="flex gap-12 md:gap-24">
+ <div>
+ <h4 className="text-white font-medium text-sm mb-4">Product</h4>
+ <ul className="space-y-3 text-sm text-neutral-500">
+ <li><a href="#" className="hover:text-white transition-colors">Features</a></li>
+ <li><a href="#" className="hover:text-white transition-colors">Changelog</a></li>
+ <li><a href="#" className="hover:text-white transition-colors">Pricing</a></li>
+ </ul>
+ </div>
+ <div>
+ <h4 className="text-white font-medium text-sm mb-4">Company</h4>
+ <ul className="space-y-3 text-sm text-neutral-500">
+ <li><a href="#" className="hover:text-white transition-colors">About</a></li>
+ <li><a href="#" className="hover:text-white transition-colors">Blog</a></li>
+ <li><a href="#" className="hover:text-white transition-colors">Careers</a></li>
+ </ul>
+ </div>
+ <div>
+ <h4 className="text-white font-medium text-sm mb-4">Legal</h4>
+ <ul className="space-y-3 text-sm text-neutral-500">
+ <li><a href="#" className="hover:text-white transition-colors">Privacy</a></li>
+ <li><a href="#" className="hover:text-white transition-colors">Terms</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+
+ <div className="max-w-7xl mx-auto px-6 pt-8 border-t border-white/5 flex flex-col md:flex-row justify-between items-center gap-4">
+ <span className="text-xs text-neutral-600">© 2023 FreeShot Inc. All rights reserved.</span>
+ <div className="flex gap-4 text-neutral-600">
+ <a href="#" className="hover:text-white transition-colors"><Icon icon="solar:brand-twitter-linear" width="18"></Icon></a>
+ <a href="#" className="hover:text-white transition-colors"><Icon icon="solar:brand-github-linear" width="18"></Icon></a>
+ <a href="#" className="hover:text-white transition-colors"><Icon icon="solar:brand-discord-linear" width="18"></Icon></a>
+ </div>
+ </div>
+ </footer>
);
}
\ No newline at end of file
diff --git a/app/components/common/header.tsx b/app/components/common/header.tsx
index 124cbd1..973206a 100644
--- a/app/components/common/header.tsx
+++ b/app/components/common/header.tsx
@@ -1,5 +1,63 @@
-export default function Header(){
+"use client";
+
+import { useState, useEffect } from "react";
+import { Button } from "@/components/ui/button";
+import { Icon } from "@iconify/react";
+import Image from "next/image";
+import { cn } from "@/lib/utils";
+import Link from "next/link";
+
+export default function Header() {
+ const [isScrolled, setIsScrolled] = useState(false);
+
+ useEffect(() => {
+ const handleScroll = () => {
+ setIsScrolled(window.scrollY > 20);
+ };
+
+ window.addEventListener("scroll", handleScroll);
+ return () => window.removeEventListener("scroll", handleScroll);
+ }, []);
+
return (
- <div>Header</div>
+ <header
+ className={cn(
+ "fixed top-0 w-full z-50 transition-all duration-300",
+ isScrolled
+ ? "border-b border-white/5 bg-[#050505]/80 backdrop-blur-xl py-0"
+ : "bg-transparent border-transparent py-2"
+ )}
+ >
+ <div className="max-w-6xl mx-auto px-3 sm:px-6 h-16 flex items-center justify-between">
+ <Link href="/" className="flex items-center gap-2 group">
+ <Image src="/svg/logo-freeshot.svg" alt="Logo" width={50} height={50} />
+ <span className="hidden sm:flex text-white font-semibold text-lg tracking-wider transition-colors group-hover:text-neutral-200">
+ Free
+ <span className="relative inline-block px-1 ml-0.5">
+ <span className="absolute inset-0 bg-blue-500/20 border border-dashed border-blue-400/50 rounded-sm -rotate-1" />
+
+ <span className="relative">Shot</span>
+
+ <div className="absolute -bottom-1 -right-1 size-2 bg-sky-500 border border-white rounded-full shadow-lg" />
+ </span>
+ </span>
+ </Link>
+ <div className="hidden md:flex items-center gap-8 text-sm font-medium text-neutral-400">
+ <a href="#features" className="hover:text-white transition-colors">Documentación</a>
+ <a href="#workflow" className="hover:text-white transition-colors">Workflow</a>
+ <a href="#pricing" className="hover:text-white transition-colors">Pricing</a>
+ </div>
+
+ <div className="flex items-center gap-2 sm:gap-4">
+ <Button variant="outline" asChild>
+ <Link href="/login">Iniciar sesión</Link>
+ </Button>
+ <Button variant="primary" className="px-4" size="sm">
+ Empezar a grabar
+ <Icon icon="solar:arrow-right-linear" width="16" className="hidden sm:flex" />
+ </Button>
+ </div>
+ </div>
+ </header>
);
-}
\ No newline at end of file
+}
diff --git a/app/components/ui/editor-preview.tsx b/app/components/ui/editor-preview.tsx
new file mode 100644
index 0000000..a83e6ff
--- /dev/null
+++ b/app/components/ui/editor-preview.tsx
@@ -0,0 +1,174 @@
+import {Icon} from "@iconify/react";
+
+export default function EditorPreview() {
+ return (
+ <div className="relative max-w-6xl mx-auto">
+ <div className="absolute -inset-1 bg-gradient-to-b from-neutral-700/20 to-transparent rounded-2xl blur-sm -z-10"></div>
+ <div className="bg-[#0A0A0A] border border-white/10 rounded-xl overflow-hidden shadow-2xl shadow-black/50 flex flex-col md:flex-row h-[600px] text-left">
+
+ <div className="w-full md:w-64 bg-[#0F0F0F] border-r border-white/5 flex flex-col shrink-0">
+ <div className="p-4 border-b border-white/5 flex items-center justify-between">
+ <span className="text-xs font-medium text-neutral-400 uppercase tracking-wider">Properties</span>
+ <Icon icon="solar:settings-linear" className="text-neutral-500" />
+ </div>
+
+ <div className="p-5 space-y-6 overflow-y-auto editor-scroll">
+ <div className="space-y-3">
+ <label className="text-sm text-neutral-300 font-medium flex items-center gap-2">
+ <Icon icon="solar:gallery-wide-linear" width="16" />
+ Background
+ </label>
+ <div className="grid grid-cols-4 gap-2">
+ <div className="aspect-square rounded border border-white/20 bg-gradient-to-br from-purple-900 to-indigo-900 cursor-pointer ring-2 ring-white/20"></div>
+ <div className="aspect-square rounded border border-white/5 bg-gradient-to-br from-neutral-800 to-neutral-900 cursor-pointer hover:border-white/20"></div>
+ <div className="aspect-square rounded border border-white/5 bg-[#1a1a1a] cursor-pointer hover:border-white/20"></div>
+ <div className="aspect-square rounded border border-white/5 relative overflow-hidden cursor-pointer hover:border-white/20 group">
+ <div className="absolute inset-0 flex items-center justify-center bg-neutral-800 text-white/50 group-hover:text-white transition-colors">
+ <Icon icon="solar:add-circle-linear" width="20" />
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div className="space-y-3">
+ <div className="flex justify-between">
+ <label className="text-sm text-neutral-300 font-medium">Padding</label>
+ <span className="text-xs text-neutral-500">64px</span>
+ </div>
+ <input type="range" min="0" max="100" defaultValue="64" className="w-full" />
+ </div>
+
+ <div className="space-y-3">
+ <div className="flex justify-between">
+ <label className="text-sm text-neutral-300 font-medium">Roundness</label>
+ <span className="text-xs text-neutral-500">12px</span>
+ </div>
+ <input type="range" min="0" max="24" defaultValue="12" className="w-full" />
+ </div>
+
+ <div className="h-px bg-white/5 my-2"></div>
+
+ <div className="space-y-4">
+ <label className="flex items-center justify-between cursor-pointer group">
+ <span className="text-sm text-neutral-300 group-hover:text-white transition-colors flex items-center gap-2">
+ <Icon icon="solar:cursor-square-linear" className="text-neutral-500" />
+ Show Cursor
+ </span>
+ <div className="relative inline-flex items-center cursor-pointer">
+ <input type="checkbox" defaultValue="" className="sr-only peer" />
+ <div className="w-9 h-5 bg-neutral-800 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-neutral-200"></div>
+ </div>
+ </label>
+ <label className="flex items-center justify-between cursor-pointer group">
+ <span className="text-sm text-neutral-300 group-hover:text-white transition-colors flex items-center gap-2">
+ <Icon icon="solar:box-minimalistic-linear" className="text-neutral-500" />
+ Shadow
+ </span>
+ <div className="relative inline-flex items-center cursor-pointer">
+ <input type="checkbox" defaultValue="" className="sr-only peer" />
+ <div className="w-9 h-5 bg-neutral-800 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-neutral-200"></div>
+ </div>
+ </label>
+ </div>
+ </div>
+
+ <div className="mt-auto p-4 border-t border-white/5">
+ <button className="w-full py-2 bg-neutral-100 hover:bg-white text-black text-sm font-medium rounded transition-colors flex items-center justify-center gap-2">
+ Export Video
+ <Icon icon="solar:export-linear" width="16" />
+ </button>
+ </div>
+ </div>
+
+ <div className="flex-1 bg-[#141414] relative flex flex-col">
+ <div className="h-12 border-b border-white/5 flex items-center justify-center gap-1 px-4">
+ <button className="p-2 hover:bg-white/5 rounded text-neutral-400 hover:text-white transition-colors">
+ <Icon icon="solar:scissors-linear" width="18" />
+ </button>
+ <button className="p-2 hover:bg-white/5 rounded text-neutral-400 hover:text-white transition-colors">
+ <Icon icon="solar:magnifier-zoom-in-linear" width="18" />
+ </button>
+ <div className="w-px h-4 bg-white/10 mx-2"></div>
+ <span className="text-xs font-mono text-neutral-500">00:04 / 00:15</span>
+ </div>
+
+ <div className="flex-1 flex items-center justify-center p-8 overflow-hidden relative">
+ <div className="absolute inset-0 bg-gradient-to-br from-purple-900/40 to-indigo-900/40 backdrop-blur-3xl"></div>
+ <div className="w-full h-full absolute inset-0 opacity-20" style={{
+ backgroundImage: "radial-gradient(#ffffff 1px, transparent 1px)",
+ backgroundSize: "20px 20px",
+ }}
+ ></div>
+
+ <div className="relative w-[80%] aspect-video bg-[#1a1a1a] rounded-lg shadow-2xl border border-white/10 overflow-hidden transform transition-transform duration-700 hover:scale-[1.02]">
+ <div className="h-8 bg-[#252525] flex items-center px-3 border-b border-white/5">
+ <div className="flex gap-1.5">
+ <div className="w-2.5 h-2.5 rounded-full bg-[#FF5F57]"></div>
+ <div className="w-2.5 h-2.5 rounded-full bg-[#FEBC2E]"></div>
+ <div className="w-2.5 h-2.5 rounded-full bg-[#28C840]"></div>
+ </div>
+ <div className="flex-1 text-center">
+ <div className="inline-block px-3 py-0.5 rounded bg-black/20 text-[10px] text-neutral-500 font-mono">freeshot.app</div>
+ </div>
+ </div>
+ <div className="p-6 relative h-full">
+ <div className="flex gap-4">
+ <div className="w-16 h-16 rounded-full bg-neutral-800 animate-pulse"></div>
+ <div className="flex-1 space-y-3 py-2">
+ <div className="h-2 bg-neutral-800 rounded w-1/4"></div>
+ <div className="h-2 bg-neutral-800 rounded w-3/4"></div>
+ <div className="h-2 bg-neutral-800 rounded w-1/2"></div>
+ </div>
+ </div>
+ <div className="absolute top-1/2 left-1/3 w-32 h-32 border-2 border-indigo-500 rounded-lg shadow-[0_0_30px_rgba(99,102,241,0.3)] pointer-events-none flex items-start justify-start">
+ <div className="bg-indigo-500 text-white text-[9px] px-1.5 py-0.5 rounded-tl-sm font-bold">ZOOM 2x</div>
+ </div>
+ <div className="absolute top-[60%] left-[40%] text-white drop-shadow-md">
+ <Icon icon="solar:cursor-bold" width="24" />
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div className="h-32 bg-[#0F0F0F] border-t border-white/5 flex flex-col">
+ <div className="h-6 border-b border-white/5 flex items-end px-2">
+ <div className="flex w-full justify-between text-[10px] text-neutral-600 font-mono pb-1">
+ <span>00:00</span>
+ <span>00:05</span>
+ <span>00:10</span>
+ <span>00:15</span>
+ </div>
+ </div>
+ <div className="flex-1 p-3 relative overflow-hidden">
+ <div className="space-y-2">
+ <div className="h-8 bg-neutral-800/50 rounded flex items-center overflow-hidden border border-white/5 relative">
+ <div className="absolute left-0 w-[40%] h-full bg-indigo-500/20 border-r border-indigo-500/50"></div>
+ <div className="flex gap-1 w-full px-1 opacity-20">
+ <div className="h-full w-8 bg-neutral-600 rounded-sm"></div>
+ <div className="h-full w-8 bg-neutral-600 rounded-sm"></div>
+ <div className="h-full w-8 bg-neutral-600 rounded-sm"></div>
+ <div className="h-full w-8 bg-neutral-600 rounded-sm"></div>
+ </div>
+ </div>
+ <div className="h-6 bg-neutral-800/30 rounded flex items-center px-2 overflow-hidden border border-white/5">
+ <div className="flex items-center gap-0.5 w-full">
+ <div className="w-1 h-2 bg-neutral-600 rounded-full"></div>
+ <div className="w-1 h-3 bg-neutral-600 rounded-full"></div>
+ <div className="w-1 h-4 bg-neutral-600 rounded-full"></div>
+ <div className="w-1 h-2 bg-neutral-600 rounded-full"></div>
+ <div className="w-1 h-3 bg-neutral-600 rounded-full"></div>
+ </div>
+ </div>
+ </div>
+ <div className="absolute top-0 left-[40%] h-full w-px bg-red-500 z-10">
+ <div className="absolute -top-1 -left-[5px] text-red-500">
+ <Icon icon="solar:polygon-down-bold" width="12" />
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/hero.tsx b/app/components/ui/hero.tsx
new file mode 100644
index 0000000..2567fac
--- /dev/null
+++ b/app/components/ui/hero.tsx
@@ -0,0 +1,42 @@
+import { Button } from "@/components/ui/button";
+import { Icon } from "@iconify/react";
+
+export default function Hero() {
+ return (
+ <>
+ <h1 className="text-5xl md:text-7xl font-semibold text-white tracking-tight mb-6 leading-[1.1]">
+ Grabación de{" "}
+ <span className="relative inline-flex items-center">
+ <img
+ src="/svg/pantalla.svg"
+ alt="Pantalla"
+ className="inline-block h-[1.6em] w-auto align-middle translate-y-[0.1em] sm:translate-y-[0.3em]"
+ />
+
+ <img
+ src="/svg/cursor-animate.svg"
+ className="absolute -top-30 -right-30 h-[4em] w-auto"
+ alt="Decoración"
+ />
+ </span>
+ <br />
+ <span className="text-transparent bg-clip-text bg-linear-to-r from-neutral-200 via-neutral-400 to-[#003780]">
+ edición rápida
+ </span>
+ </h1>
+
+ <p className="text-lg md:text-xl text-neutral-400 max-w-2xl mx-auto mb-10 font-light leading-relaxed">
+ Graba tu navegador, añade zooms suaves y personaliza fondos en segundos. Crea demos profesionales sin el editor de video complejo.
+ </p>
+
+ <div className="flex flex-col sm:flex-row items-center justify-center gap-4 mb-20">
+ <Button variant="primary" size="xl" className="text-xl">
+ <div className="size-9 rounded-full bg-white flex items-center justify-center">
+ <Icon icon="fluent:screenshot-record-16-regular" className="size-7 text-red-500" />
+ </div>
+ Empezar a grabar
+ </Button>
+ </div>
+ </>
+ );
+}
\ No newline at end of file
diff --git a/app/layout.tsx b/app/layout.tsx
index f7fa87e..f9bad3a 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,6 +1,8 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
+import Header from "./components/common/header";
+import Footer from "./components/common/footer";
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -25,10 +27,12 @@ export default function RootLayout({
return (
<html lang="en">
<body
- className={`${geistSans.variable} ${geistMono.variable} antialiased`}
+ className={`${geistSans.variable} ${geistMono.variable} antialiased dark`}
>
{children}
+
</body>
</html>
+
);
-}
+}
\ No newline at end of file
diff --git a/app/page.tsx b/app/page.tsx
deleted file mode 100644
index d0f4217..0000000
--- a/app/page.tsx
+++ /dev/null
@@ -1,13 +0,0 @@
-import Footer from "./components/common/footer";
-import Header from "./components/common/header";
-
-export default function Home() {
- return (
- <div className="flex min-h-screen items-center justify-center bg-zinc-50 font-sans dark:bg-black">
- <main className="flex min-h-screen w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-white dark:bg-black sm:items-start">
- <Header />
- <Footer />
- </main>
- </div>
- );
-}
\ No newline at end of file
diff --git a/components/ui/button.tsx b/components/ui/button.tsx
new file mode 100644
index 0000000..0111b12
--- /dev/null
+++ b/components/ui/button.tsx
@@ -0,0 +1,66 @@
+import * as React from "react"
+import { cva, type VariantProps } from "class-variance-authority"
+import { Slot } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+
+const buttonVariants = cva(
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
+ {
+ variants: {
+ variant: {
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
+ destructive:
+ "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
+ outline:
+ "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
+ secondary:
+ "bg-secondary text-secondary-foreground hover:bg-secondary/80",
+ ghost:
+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
+ link: "text-primary underline-offset-4 hover:underline",
+ primary: "bg-gradient-primary text-primary hover:bg-primary/90",
+ },
+ size: {
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
+ xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
+ xl: "h-14 rounded-md px-10 has-[>svg]:px-8",
+ icon: "size-9",
+ "icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
+ "icon-sm": "size-8",
+ "icon-lg": "size-10",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ size: "default",
+ },
+ }
+)
+
+function Button({
+ className,
+ variant = "default",
+ size = "default",
+ asChild = false,
+ ...props
+}: React.ComponentProps<"button"> &
+ VariantProps<typeof buttonVariants> & {
+ asChild?: boolean
+ }) {
+ const Comp = asChild ? Slot.Root : "button"
+
+ return (
+ <Comp
+ data-slot="button"
+ data-variant={variant}
+ data-size={size}
+ className={cn(buttonVariants({ variant, size, className }))}
+ {...props}
+ />
+ )
+}
+
+export { Button, buttonVariants }
diff --git a/components/ui/input.tsx b/components/ui/input.tsx
new file mode 100644
index 0000000..8916905
--- /dev/null
+++ b/components/ui/input.tsx
@@ -0,0 +1,21 @@
+import * as React from "react"
+
+import { cn } from "@/lib/utils"
+
+function Input({ className, type, ...props }: React.ComponentProps<"input">) {
+ return (
+ <input
+ type={type}
+ data-slot="input"
+ className={cn(
+ "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export { Input }
diff --git a/lib/utils.ts b/lib/utils.ts
new file mode 100644
index 0000000..bd0c391
--- /dev/null
+++ b/lib/utils.ts
@@ -0,0 +1,6 @@
+import { clsx, type ClassValue } from "clsx"
+import { twMerge } from "tailwind-merge"
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs))
+}