Repository: Shreyas-29/astra Branch: main Commit: 8e9cd78b5bab Files: 43 Total size: 136.7 KB Directory structure: gitextract_hcimz5hd/ ├── .eslintrc.json ├── .gitignore ├── .vscode/ │ └── settings.json ├── LICENSE ├── README.md ├── components.json ├── next.config.mjs ├── package.json ├── postcss.config.mjs ├── src/ │ ├── app/ │ │ ├── (auth)/ │ │ │ ├── layout.tsx │ │ │ ├── sign-in/ │ │ │ │ └── [[...sign-in]]/ │ │ │ │ └── page.tsx │ │ │ └── sign-up/ │ │ │ └── [[...sign-up]]/ │ │ │ └── page.tsx │ │ ├── (marketing)/ │ │ │ ├── layout.tsx │ │ │ └── page.tsx │ │ └── layout.tsx │ ├── components/ │ │ ├── global/ │ │ │ ├── container.tsx │ │ │ ├── icons.tsx │ │ │ └── wrapper.tsx │ │ ├── home/ │ │ │ └── navigation/ │ │ │ ├── footer.tsx │ │ │ └── navbar.tsx │ │ ├── index.ts │ │ ├── providers/ │ │ │ ├── providers.tsx │ │ │ └── theme-provider.tsx │ │ └── ui/ │ │ ├── border-beam.tsx │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── dialog.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── lamp.tsx │ │ ├── marquee.tsx │ │ ├── section-badge.tsx │ │ ├── select.tsx │ │ ├── sheet.tsx │ │ ├── sonner.tsx │ │ └── textarea.tsx │ ├── config/ │ │ └── index.ts │ ├── constants/ │ │ └── index.ts │ ├── lib/ │ │ └── utils.ts │ ├── middleware.ts │ └── styles/ │ └── globals.css ├── tailwind.config.ts └── tsconfig.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .eslintrc.json ================================================ { "extends": "next/core-web-vitals" } ================================================ FILE: .gitignore ================================================ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # dependencies /node_modules /.pnp .pnp.js .yarn/install-state.gz # testing /coverage # next.js /.next/ /out/ # production /build # misc .DS_Store *.pem # debug npm-debug.log* yarn-debug.log* yarn-error.log* # local env files .env*.local .env # vercel .vercel # typescript *.tsbuildinfo next-env.d.ts ================================================ FILE: .vscode/settings.json ================================================ { "WillLuke.nextjs.addTypesOnSave": true, "WillLuke.nextjs.hasPrompted": true } ================================================ FILE: LICENSE ================================================ Creative Commons Legal Code CC0 1.0 Universal CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER. Statement of Purpose The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; ii. moral rights retained by the original author(s) and/or performer(s); iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; v. rights protecting the extraction, dissemination, use and reuse of data in a Work; vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. 4. Limitations and Disclaimers. a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. ================================================ FILE: README.md ================================================

Astra - AI Powered Website Builder

Astra Thumbnail ## Introduction Astra is a modern, fully responsive website built with a powerful tech stack. This project showcases the use of Next.js for server-side rendering, TailwindCSS for sleek styling, shadcn UI for elegant components, and Clerk for secure authentication. ## Watch Tutorial on YouTube Check out the preivew to see how this website was built: [Astra Website Tutorial](https://youtu.be/zSz67kLPbZY?si=mVBTTh23pv_roRHQ) ## Tech Stack - **Next.js**: For building the React-based website. - **TailwindCSS**: For styling with utility-first CSS. - **Shadcn UI**: For UI components. - **Magic UI**: For UI components. - **Clerk**: For user authentication. ## Quick Start ### Prerequisites Make sure that you have installed - Node.js - Git - npm / yarn / pnpm / bun 1. Clone this repository: ```bash git clone https://github.com/Shreyas-29/astra-website.git cd astra-website ``` 2. Install dependencies: ```bash npm install ``` 3. Setup env variables: ```bash # app NEXT_PUBLIC_URL=http://localhost:3000 NEXT_PUBLIC_DOMAIN=localhost:3000 # clerk CLERK_SECRET_KEY= NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY= NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/ NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/ ``` 5. Run the development server: ```bash npm run dev ``` 6. Open your browser and navigate to http://localhost:3000 to see the website in action. ## Assets Download all the assets required for this project [here](https://drive.google.com). ## ☕ Buy Me a Coffee If you enjoy using caps.ai, consider supporting my work! [Buy Me a Coffee ☕](https://buymeacoffee.com/shreyas29) ================================================ FILE: components.json ================================================ { "$schema": "https://ui.shadcn.com/schema.json", "style": "default", "rsc": true, "tsx": true, "tailwind": { "config": "tailwind.config.ts", "css": "src/app/globals.css", "baseColor": "slate", "cssVariables": true, "prefix": "" }, "aliases": { "components": "@/components", "utils": "@/lib/utils" } } ================================================ FILE: next.config.mjs ================================================ /** @type {import('next').NextConfig} */ const nextConfig = { images: { domains: [ 'utfs.io', 'img.clerk.com', 'subdomain', ], }, reactStrictMode: false, }; export default nextConfig; ================================================ FILE: package.json ================================================ { "name": "astra", "version": "0.1.0", "private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint" }, "dependencies": { "@clerk/nextjs": "^5.2.3", "@clerk/themes": "^2.1.7", "@hookform/resolvers": "^3.4.2", "@radix-ui/react-accordion": "^1.1.2", "@radix-ui/react-alert-dialog": "^1.0.5", "@radix-ui/react-aspect-ratio": "^1.0.3", "@radix-ui/react-avatar": "^1.0.4", "@radix-ui/react-checkbox": "^1.0.4", "@radix-ui/react-collapsible": "^1.0.3", "@radix-ui/react-context-menu": "^2.1.5", "@radix-ui/react-dialog": "^1.0.5", "@radix-ui/react-dropdown-menu": "^2.0.6", "@radix-ui/react-hover-card": "^1.0.7", "@radix-ui/react-label": "^2.0.2", "@radix-ui/react-menubar": "^1.0.4", "@radix-ui/react-navigation-menu": "^1.1.4", "@radix-ui/react-popover": "^1.0.7", "@radix-ui/react-progress": "^1.0.3", "@radix-ui/react-radio-group": "^1.1.3", "@radix-ui/react-scroll-area": "^1.0.5", "@radix-ui/react-select": "^2.0.0", "@radix-ui/react-separator": "^1.0.3", "@radix-ui/react-slider": "^1.1.2", "@radix-ui/react-slot": "^1.0.2", "@radix-ui/react-switch": "^1.0.3", "@radix-ui/react-tabs": "^1.0.4", "@radix-ui/react-toast": "^1.1.5", "@radix-ui/react-toggle": "^1.0.3", "@radix-ui/react-toggle-group": "^1.0.4", "@radix-ui/react-tooltip": "^1.0.7", "@react-three/drei": "^9.105.6", "@react-three/fiber": "^8.16.6", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", "cmdk": "^1.0.0", "date-fns": "^3.6.0", "embla-carousel-react": "^8.1.3", "framer-motion": "^11.2.6", "input-otp": "^1.2.4", "lucide-react": "^0.379.0", "next": "14.2.3", "next-themes": "^0.3.0", "react": "^18", "react-day-picker": "^8.10.1", "react-dom": "^18", "react-hook-form": "^7.51.5", "react-resizable-panels": "^2.0.19", "sonner": "^1.4.41", "tailwind-merge": "^2.3.0", "tailwindcss-animate": "^1.0.7", "three": "^0.164.1", "three-globe": "^2.31.0", "vaul": "^0.9.1", "zod": "^3.23.8" }, "devDependencies": { "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", "eslint": "^8", "eslint-config-next": "14.2.3", "postcss": "^8", "tailwindcss": "^3.4.1", "typescript": "^5" } } ================================================ FILE: postcss.config.mjs ================================================ /** @type {import('postcss-load-config').Config} */ const config = { plugins: { tailwindcss: {}, }, }; export default config; ================================================ FILE: src/app/(auth)/layout.tsx ================================================ import React from 'react' interface Props { children: React.ReactNode; } const AuthLayout = ({ children }: Props) => { return (
{children}
) }; export default AuthLayout ================================================ FILE: src/app/(auth)/sign-in/[[...sign-in]]/page.tsx ================================================ import { SignIn } from "@clerk/nextjs"; const SignInPage = () => { return ; }; export default SignInPage; ================================================ FILE: src/app/(auth)/sign-up/[[...sign-up]]/page.tsx ================================================ import { SignUp } from "@clerk/nextjs"; const SignUpPage = () => { return ; }; export default SignUpPage; ================================================ FILE: src/app/(marketing)/layout.tsx ================================================ import { Footer, Navbar } from "@/components"; import React from 'react' interface Props { children: React.ReactNode; } const MarketingLayout = ({ children }: Props) => { return (
{children}
) }; export default MarketingLayout ================================================ FILE: src/app/(marketing)/page.tsx ================================================ import { Container, Icons, Wrapper } from "@/components"; import { BorderBeam } from "@/components/ui/border-beam"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { LampContainer } from "@/components/ui/lamp"; import Marquee from "@/components/ui/marquee"; import SectionBadge from "@/components/ui/section-badge"; import { features, perks, pricingCards, reviews } from "@/constants"; import { cn } from "@/lib/utils"; import { ArrowRight, ChevronRight, UserIcon, Zap } from "lucide-react"; import Image from "next/image"; import Link from "next/link"; const HomePage = () => { const firstRow = reviews.slice(0, reviews.length / 2); const secondRow = reviews.slice(reviews.length / 2); return (
{/* hero */}

Build your next idea and ship your dream site

Zero code, maximum speed. Make professional sites easy, fast and fun while delivering best-in-class SEO, performance.

✨ {" "} Start building your dream website now!

banner image
{/* how it works */}

Three steps to build your dream website

Turn your vision into reality in just 3 simple steps

{perks.map((perk) => (

{perk.title}

{perk.info}

))}
{/* features */}

Discover our powerful features

Astra offers a range of features to help you build a stunning website in no time

{features.map((feature) => (

{feature.title}

{feature.info}

))}
{/* pricing */}

Unlock the right plan for your business

Choose the best plan for your business and start building your dream website today

{pricingCards.map((card) => ( {card.title} {card.price} {card.description} {card.features.map((feature) => (

{feature}

))}
{card.buttonText}
))}
{/* testimonials */}

What people are saying

See how Astra empowers businesses of all sizes. Here's what real people are saying on Twitter

{firstRow.map((review) => (
{review.name}

{review.username}

{review.body}
))}
{secondRow.map((review) => (
{review.name}

{review.username}

{review.body}
))}
{/* newsletter */}

From Idea to Launch
Faster Than Ever

Build stunning websites with Astra's intuitive drag-and-drop builder and powerful AI assistant

Join our newsletter

Be up to date with everything about AI builder

By subscribing you agree with our{" "} Privacy Policy

) }; export default HomePage ================================================ FILE: src/app/layout.tsx ================================================ import { Footer, Navbar } from "@/components"; import { SITE_CONFIG } from "@/config"; import { cn } from "@/lib/utils"; import "@/styles/globals.css"; import { ClerkProvider } from '@clerk/nextjs'; import { dark } from '@clerk/themes'; import { Inter } from "next/font/google"; const font = Inter({ subsets: ["latin"] }); export const metadata = SITE_CONFIG; export default function RootLayout({ children, }: { children: React.ReactNode; }) { return ( {children} ); }; ================================================ FILE: src/components/global/container.tsx ================================================ "use client"; import { cn } from "@/lib/utils"; import { motion } from "framer-motion"; interface Props { className?: string; children: React.ReactNode; delay?: number; reverse?: boolean; } const Container = ({ children, className, delay = 0.2, reverse }: Props) => { return ( {children} ) }; export default Container ================================================ FILE: src/components/global/icons.tsx ================================================ import { LucideProps } from "lucide-react"; type IconType = { [key: string]: (props: LucideProps) => JSX.Element; }; const Icons: IconType = { logo: (props: LucideProps) => ( ), astra: (props: LucideProps) => ( ), sparkles: (props: LucideProps) => ( ), bolt: (props: LucideProps) => ( ), palette: (props: LucideProps) => ( ), seo: (props: LucideProps) => ( ), monitor: (props: LucideProps) => ( ), shop: (props: LucideProps) => ( ), server: (props: LucideProps) => ( ), auth: (props: LucideProps) => ( ), customize: (props: LucideProps) => ( ), launch: (props: LucideProps) => ( ), feature: (props: LucideProps) => ( ), }; export default Icons; ================================================ FILE: src/components/global/wrapper.tsx ================================================ import React from 'react' import { cn } from "@/lib/utils"; interface Props { className?: string; children: React.ReactNode; } const Wrapper = ({ children, className }: Props) => { return (
{children}
) }; export default Wrapper ================================================ FILE: src/components/home/navigation/footer.tsx ================================================ import Icons from "@/components/global/icons" import { Heart } from 'lucide-react' import Link from 'next/link' const Footer = () => { return (

Build beautiful, functional websites, without writing code

Made in India with

Product

  • Features
  • Pricing
  • Testimonials
  • Integration

Integrations

  • Facebook
  • Instagram
  • Twitter
  • LinkedIn

Resources

  • Blog
  • Case Studies
  • Support

Company

  • About Us
  • Privacy Policy
  • Terms & Conditions

© {new Date().getFullYear()} Astra AI INC. All rights reserved.

) } export default Footer ================================================ FILE: src/components/home/navigation/navbar.tsx ================================================ import { Container, Icons } from "@/components"; import { buttonVariants } from "@/components/ui/button"; import { UserButton, } from "@clerk/nextjs"; import { currentUser } from "@clerk/nextjs/server"; import Link from "next/link"; const Navbar = async () => { const user = await currentUser(); return (
Astra
{user ? ( ) : ( <> Login Start free trial )}
) }; export default Navbar ================================================ FILE: src/components/index.ts ================================================ import Providers from "./providers/providers"; import ThemeProvider from "./providers/theme-provider"; import Navbar from "./home/navigation/navbar"; import Footer from "./home/navigation/footer"; import Icons from "./global/icons"; import Wrapper from "./global/wrapper"; import Container from "./global/container"; export { Providers, ThemeProvider, Navbar, Icons, Wrapper, Footer, Container, } ================================================ FILE: src/components/providers/providers.tsx ================================================ "use client"; import React from 'react'; import { dark } from "@clerk/themes"; import { ClerkProvider } from '@clerk/nextjs'; interface Props { children: React.ReactNode; } const Providers = ({ children }: Props) => { return ( {children} ) }; export default Providers ================================================ FILE: src/components/providers/theme-provider.tsx ================================================ "use client" import * as React from "react" import { ThemeProvider as NextThemesProvider } from "next-themes" import { type ThemeProviderProps } from "next-themes/dist/types" const ThemeProvider = ({ children, ...props }: ThemeProviderProps) => { return {children} }; export default ThemeProvider ================================================ FILE: src/components/ui/border-beam.tsx ================================================ import { cn } from "@/lib/utils"; interface BorderBeamProps { className?: string; size?: number; duration?: number; borderWidth?: number; anchor?: number; colorFrom?: string; colorTo?: string; delay?: number; } export const BorderBeam = ({ className, size = 200, duration = 15, anchor = 90, borderWidth = 2, colorFrom = "#ffaa40", colorTo = "#9c40ff", delay = 0, }: BorderBeamProps) => { return (
); }; ================================================ FILE: src/components/ui/button.tsx ================================================ import * as React from "react" import { Slot } from "@radix-ui/react-slot" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" const buttonVariants = cva( "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", { variants: { variant: { default: "bg-primary text-primary-foreground hover:bg-primary/90", destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90", outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground", secondary: "bg-[#001633] text-primary hover:bg-[#00214c]", ghost: "hover:bg-accent hover:text-accent-foreground", link: "text-primary underline-offset-4 hover:underline", white: "bg-foreground text-background hover:bg-foreground/90", }, size: { default: "h-9 px-4 py-2", sm: "h-8 px-3", lg: "h-11 px-8", iconx: "h-8 w-8", icon: "h-10 w-10", }, }, defaultVariants: { variant: "default", size: "default", }, } ) export interface ButtonProps extends React.ButtonHTMLAttributes, VariantProps { asChild?: boolean } const Button = React.forwardRef( ({ className, variant, size, asChild = false, ...props }, ref) => { const Comp = asChild ? Slot : "button" return ( ) } ) Button.displayName = "Button" export { Button, buttonVariants } ================================================ FILE: src/components/ui/card.tsx ================================================ import * as React from "react" import { cn } from "@/lib/utils" const Card = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
)) Card.displayName = "Card" const CardHeader = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
)) CardHeader.displayName = "CardHeader" const CardTitle = React.forwardRef< HTMLParagraphElement, React.HTMLAttributes >(({ className, ...props }, ref) => (

)) CardTitle.displayName = "CardTitle" const CardDescription = React.forwardRef< HTMLParagraphElement, React.HTMLAttributes >(({ className, ...props }, ref) => (

)) CardDescription.displayName = "CardDescription" const CardContent = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (

)) CardContent.displayName = "CardContent" const CardFooter = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
)) CardFooter.displayName = "CardFooter" export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } ================================================ FILE: src/components/ui/dialog.tsx ================================================ "use client" import * as React from "react" import * as DialogPrimitive from "@radix-ui/react-dialog" import { X } from "lucide-react" import { cn } from "@/lib/utils" const Dialog = DialogPrimitive.Root const DialogTrigger = DialogPrimitive.Trigger const DialogPortal = DialogPrimitive.Portal const DialogClose = DialogPrimitive.Close const DialogOverlay = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) DialogOverlay.displayName = DialogPrimitive.Overlay.displayName const DialogContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( {children} Close )) DialogContent.displayName = DialogPrimitive.Content.displayName const DialogHeader = ({ className, ...props }: React.HTMLAttributes) => (
) DialogHeader.displayName = "DialogHeader" const DialogFooter = ({ className, ...props }: React.HTMLAttributes) => (
) DialogFooter.displayName = "DialogFooter" const DialogTitle = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) DialogTitle.displayName = DialogPrimitive.Title.displayName const DialogDescription = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) DialogDescription.displayName = DialogPrimitive.Description.displayName export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, } ================================================ FILE: src/components/ui/input.tsx ================================================ import * as React from "react" import { cn } from "@/lib/utils" export interface InputProps extends React.InputHTMLAttributes {} const Input = React.forwardRef( ({ className, type, ...props }, ref) => { return ( ) } ) Input.displayName = "Input" export { Input } ================================================ FILE: src/components/ui/label.tsx ================================================ "use client" import * as React from "react" import * as LabelPrimitive from "@radix-ui/react-label" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" const labelVariants = cva( "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" ) const Label = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & VariantProps >(({ className, ...props }, ref) => ( )) Label.displayName = LabelPrimitive.Root.displayName export { Label } ================================================ FILE: src/components/ui/lamp.tsx ================================================ "use client"; import React from "react"; import { motion } from "framer-motion"; import { cn } from "@/lib/utils"; export const LampContainer = ({ children, className, }: { children: React.ReactNode; className?: string; }) => { return (
{children}
); }; ================================================ FILE: src/components/ui/marquee.tsx ================================================ import { cn } from "@/lib/utils"; interface MarqueeProps { className?: string; reverse?: boolean; pauseOnHover?: boolean; children?: React.ReactNode; vertical?: boolean; repeat?: number; [key: string]: any; } export default function Marquee({ className, reverse, pauseOnHover = false, children, vertical = false, repeat = 4, ...props }: MarqueeProps) { return (
{Array(repeat) .fill(0) .map((_, i) => (
{children}
))}
); }; ================================================ FILE: src/components/ui/section-badge.tsx ================================================ import React from 'react' interface Props { title: string; } const SectionBadge = ({ title }: Props) => { return (
{title}
) }; export default SectionBadge ================================================ FILE: src/components/ui/select.tsx ================================================ "use client" import * as React from "react" import * as SelectPrimitive from "@radix-ui/react-select" import { Check, ChevronDown, ChevronUp } from "lucide-react" import { cn } from "@/lib/utils" const Select = SelectPrimitive.Root const SelectGroup = SelectPrimitive.Group const SelectValue = SelectPrimitive.Value const SelectTrigger = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( span]:line-clamp-1", className )} {...props} > {children} )) SelectTrigger.displayName = SelectPrimitive.Trigger.displayName const SelectScrollUpButton = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName const SelectScrollDownButton = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName const SelectContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, children, position = "popper", ...props }, ref) => ( {children} )) SelectContent.displayName = SelectPrimitive.Content.displayName const SelectLabel = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) SelectLabel.displayName = SelectPrimitive.Label.displayName const SelectItem = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( {children} )) SelectItem.displayName = SelectPrimitive.Item.displayName const SelectSeparator = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) SelectSeparator.displayName = SelectPrimitive.Separator.displayName export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, } ================================================ FILE: src/components/ui/sheet.tsx ================================================ "use client" import * as React from "react" import * as SheetPrimitive from "@radix-ui/react-dialog" import { cva, type VariantProps } from "class-variance-authority" import { X } from "lucide-react" import { cn } from "@/lib/utils" const Sheet = SheetPrimitive.Root const SheetTrigger = SheetPrimitive.Trigger const SheetClose = SheetPrimitive.Close const SheetPortal = SheetPrimitive.Portal const SheetOverlay = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) SheetOverlay.displayName = SheetPrimitive.Overlay.displayName const sheetVariants = cva( "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500", { variants: { side: { top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top", bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom", left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm", right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm", }, }, defaultVariants: { side: "right", }, } ) interface SheetContentProps extends React.ComponentPropsWithoutRef, VariantProps {} const SheetContent = React.forwardRef< React.ElementRef, SheetContentProps >(({ side = "right", className, children, ...props }, ref) => ( {children} Close )) SheetContent.displayName = SheetPrimitive.Content.displayName const SheetHeader = ({ className, ...props }: React.HTMLAttributes) => (
) SheetHeader.displayName = "SheetHeader" const SheetFooter = ({ className, ...props }: React.HTMLAttributes) => (
) SheetFooter.displayName = "SheetFooter" const SheetTitle = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) SheetTitle.displayName = SheetPrimitive.Title.displayName const SheetDescription = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) SheetDescription.displayName = SheetPrimitive.Description.displayName export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } ================================================ FILE: src/components/ui/sonner.tsx ================================================ "use client" import { useTheme } from "next-themes" import { Toaster as Sonner } from "sonner" type ToasterProps = React.ComponentProps const Toaster = ({ ...props }: ToasterProps) => { const { theme = "system" } = useTheme() return ( ) } export { Toaster } ================================================ FILE: src/components/ui/textarea.tsx ================================================ import * as React from "react" import { cn } from "@/lib/utils" export interface TextareaProps extends React.TextareaHTMLAttributes {} const Textarea = React.forwardRef( ({ className, ...props }, ref) => { return (