diff --git a/apps/www/app/(app)/page.tsx b/apps/www/app/(app)/page.tsx index e0bb3a5..3ad2d83 100644 --- a/apps/www/app/(app)/page.tsx +++ b/apps/www/app/(app)/page.tsx @@ -6,27 +6,28 @@ import { cn } from "@/lib/utils" import { buttonVariants } from "@/components/ui/button" import { FeaturesSection } from "@/components/animate/feature-card" import { Announcement } from "@/components/announcement" -import { Icons } from "@/components/icons" +import { FadeIn } from "@/components/fade-in" import { - PageActions, - PageHeader, - PageHeaderDescription, - PageHeaderHeading, -} from "@/components/page-header" + FramerIcon, + Icons, + TailwindCSSIcon, + TypeScriptIcon, +} from "@/components/icons" +import { PageActions, PageHeader } from "@/components/page-header" import BgNoiseWrapper from "@/components/texture-wrapper" import { GradientHeading } from "@/registry/default/ui/gradient-heading" import { TweetGrid } from "@/registry/default/ui/tweet-grid" export default function IndexPage() { return ( - //
- <> -
- {/* */} - -
- +
+ +
+ + + + Components crafted for Design Engineers + - - Beautifully designed components that you can copy and paste into - your apps. Accessible. Customizable. Open Source. - + +
+
+
+ Get Started @@ -53,23 +70,22 @@ export default function IndexPage() { GitHub -
+ + -
-
- - - -
-
-
-
- +
+
+ + + +
- - {/*
*/} -
- +
+
+ +
+ +
) } IndexPage.theme = "light" diff --git a/apps/www/components/animate/fade-in.tsx b/apps/www/components/animate/fade-in.tsx new file mode 100644 index 0000000..47f95ec --- /dev/null +++ b/apps/www/components/animate/fade-in.tsx @@ -0,0 +1,45 @@ +"use client" + +import { createContext, useContext } from "react" +import { motion, useReducedMotion } from "framer-motion" + +const FadeInStaggerContext = createContext(false) + +const viewport = { once: true, margin: "0px 0px -200px" } + +export function FadeIn(props: any) { + let shouldReduceMotion = useReducedMotion() + let isInStaggerGroup = useContext(FadeInStaggerContext) + + return ( + + ) +} + +export function FadeInStagger({ faster = false, ...props }) { + return ( + + + + ) +} diff --git a/apps/www/components/announcement.tsx b/apps/www/components/announcement.tsx index a8264e3..ec61cbd 100644 --- a/apps/www/components/announcement.tsx +++ b/apps/www/components/announcement.tsx @@ -17,17 +17,15 @@ import BgNoiseWrapper from "./texture-wrapper" export function Announcement() { return ( -
{" "} {" "} - Introducing Cult Components + Introducing Cult Templates {/* */} {/* */} diff --git a/apps/www/components/icons.tsx b/apps/www/components/icons.tsx index 7bcaf71..3313420 100644 --- a/apps/www/components/icons.tsx +++ b/apps/www/components/icons.tsx @@ -1,3 +1,6 @@ +import * as React from "react" +import type { SVGProps } from "react" + type IconProps = React.HTMLAttributes export const Icons = { @@ -191,3 +194,400 @@ export const Icons = { ), } + +function StripeIcon(props: any) { + return ( + + + + ) +} + +export const TypeScriptIcon = (props: SVGProps) => ( + + + + +) + +export const ClaudeAIIcon = (props: SVGProps) => ( + + + + +) + +function SupabaseIcon(props: any) { + return ( + + + + + + + + + + + + + + + + ) +} + +export const SupabaseIconGreen = (props: SVGProps) => ( + + + + + + + + + + + + + + + +) + +export const TailwindCSSIcon = (props: SVGProps) => ( + + + + + + + + + +) + +export const ProductHuntIcon = (props: SVGProps) => ( + + + + + +) + +function NextjsIcon(props: any) { + return ( + + + + + + + + + + + + + + + + + + + + + + ) +} + +function OpenAIIcon(props: any) { + return ( + + + + ) +} + +export const GoogleIcon = (props: SVGProps) => ( + + + + + + +) + +export function OpenAIIconWhite(props: any) { + return ( + + + + ) +} +export function OpenAIIconBlack(props: any) { + return ( + + + + ) +} + +function UpstashIcon(props: any) { + return ( + + + + + + + + ) +} + +function FramerIcon(props: any) { + return ( + + + + ) +} + +export { + OpenAIIcon, + FramerIcon, + SupabaseIcon, + NextjsIcon, + StripeIcon, + UpstashIcon, +} diff --git a/apps/www/components/main-nav.tsx b/apps/www/components/main-nav.tsx index a768a19..7dc9a4c 100644 --- a/apps/www/components/main-nav.tsx +++ b/apps/www/components/main-nav.tsx @@ -15,7 +15,7 @@ export function MainNav() { return (
- + {siteConfig.name} diff --git a/apps/www/config/site.ts b/apps/www/config/site.ts index 51dda0c..81a3759 100644 --- a/apps/www/config/site.ts +++ b/apps/www/config/site.ts @@ -1,12 +1,12 @@ export const siteConfig = { name: "cult/ui", url: "https://cult-ui.com", - ogImage: "https://cult-ui.com/og.jpg", + ogImage: "https://cult-ui.com/og.png", description: - "Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.", + "Components components that you can copy and paste into react apps. Customizable. Open Source. Typed.", links: { twitter: "https://x.com/nolansym", - github: "https://github.com/cult-ui/ui", + github: "https://github.com/nolly-studio/cult-ui", }, } diff --git a/apps/www/public/og.jpg b/apps/www/public/og.jpg deleted file mode 100644 index 12a4d5f..0000000 Binary files a/apps/www/public/og.jpg and /dev/null differ diff --git a/apps/www/public/og.png b/apps/www/public/og.png new file mode 100644 index 0000000..43c27a2 Binary files /dev/null and b/apps/www/public/og.png differ diff --git a/apps/www/styles/globals.css b/apps/www/styles/globals.css index 1033e20..74f82d6 100644 --- a/apps/www/styles/globals.css +++ b/apps/www/styles/globals.css @@ -64,13 +64,13 @@ } } -.bg-noise { +/* .bg-noise { background-image: url(/cult-noise.png); position: fixed; inset: 0px; mix-blend-mode: hard-light; pointer-events: none; -} +} */ @layer utilities { .step { @@ -103,10 +103,10 @@ @apply pointer-events-none absolute select-none rounded-3xl opacity-0 transition-opacity duration-300 hover:opacity-100; background: radial-gradient( 1000px circle at var(--x) var(--y), - #70daff 0, - #fee4bd 10%, - #fbadd6 25%, - #70daff 35%, + #c9ee80 0, + #eebbe2 10%, + #adc0ec 25%, + #c9ee80 35%, rgba(255, 255, 255, 0) 50%, transparent 80% ); diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 559a69b..b238b57 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,5 +1,3 @@ packages: - "apps/*" - - "packages/*" - - "templates/*" - "!**/test/**" diff --git a/scripts/sync-templates.sh b/scripts/sync-templates.sh deleted file mode 100755 index eac028a..0000000 --- a/scripts/sync-templates.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -set -e # bail on errors -GLOB=$1 -IS_CI="${CI:-false}" -BASE=$(pwd) -COMMIT_MESSAGE=$(git log -1 --pretty=%B) - -for folder in $GLOB; do - [ -d "$folder" ] || continue - cd $BASE - - if [ -n "$(git status --porcelain)" ]; then - git add . - git commit -m "chore: update template" - git push origin main - fi - - NAME=${folder##*/} - CLONE_DIR="__${NAME}__clone__" - - # sync to read-only clones - # clone, delete files in the clone, and copy (new) files over - # this handles file deletions, additions, and changes seamlessly - # note: redirect output to dev/null to avoid any possibility of leaking token - git clone --quiet --depth 1 git@github.com:Jordan-Gilliam/${NAME}.git $CLONE_DIR > /dev/null - cd $CLONE_DIR - find . | grep -v ".git" | grep -v "^\.*$" | xargs rm -rf # delete all files (to handle deletions in monorepo) - cp -r $BASE/$folder/. . - - if [ -n "$(git status --porcelain)" ]; then - git add . - git commit -m "$COMMIT_MESSAGE" - git push origin main - fi - - cd $BASE - rm -rf $CLONE_DIR -done diff --git a/templates/next-template/.editorconfig b/templates/next-template/.editorconfig deleted file mode 100644 index ae10a5c..0000000 --- a/templates/next-template/.editorconfig +++ /dev/null @@ -1,10 +0,0 @@ -# editorconfig.org -root = true - -[*] -charset = utf-8 -end_of_line = lf -indent_size = 2 -indent_style = space -insert_final_newline = true -trim_trailing_whitespace = true diff --git a/templates/next-template/.eslintignore b/templates/next-template/.eslintignore deleted file mode 100644 index dc0f9d8..0000000 --- a/templates/next-template/.eslintignore +++ /dev/null @@ -1,5 +0,0 @@ -dist/* -.cache -public -node_modules -*.esm.js diff --git a/templates/next-template/.eslintrc.json b/templates/next-template/.eslintrc.json deleted file mode 100644 index fe113b7..0000000 --- a/templates/next-template/.eslintrc.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/eslintrc", - "root": true, - "extends": [ - "next/core-web-vitals", - "prettier", - "plugin:tailwindcss/recommended" - ], - "plugins": ["tailwindcss"], - "rules": { - "@next/next/no-html-link-for-pages": "off", - "react/jsx-key": "off", - "tailwindcss/no-custom-classname": "off" - }, - "settings": { - "tailwindcss": { - "callees": ["cn"], - "config": "tailwind.config.js" - }, - "next": { - "rootDir": ["./"] - } - }, - "overrides": [ - { - "files": ["*.ts", "*.tsx"], - "parser": "@typescript-eslint/parser" - } - ] -} diff --git a/templates/next-template/.gitignore b/templates/next-template/.gitignore deleted file mode 100644 index ea0d26b..0000000 --- a/templates/next-template/.gitignore +++ /dev/null @@ -1,36 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -node_modules -.pnp -.pnp.js - -# testing -coverage - -# next.js -.next/ -out/ -build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.pnpm-debug.log* - -# local env files -.env.local -.env.development.local -.env.test.local -.env.production.local - -# turbo -.turbo - -.contentlayer -.env \ No newline at end of file diff --git a/templates/next-template/.prettierignore b/templates/next-template/.prettierignore deleted file mode 100644 index 2f73093..0000000 --- a/templates/next-template/.prettierignore +++ /dev/null @@ -1,12 +0,0 @@ -cache -.cache -package.json -package-lock.json -public -CHANGELOG.md -.yarn -dist -node_modules -.next -build -.contentlayer \ No newline at end of file diff --git a/templates/next-template/.vscode/settings.json b/templates/next-template/.vscode/settings.json deleted file mode 100644 index 99438eb..0000000 --- a/templates/next-template/.vscode/settings.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "typescript.tsdk": "../../node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib", - "typescript.enablePromptUseWorkspaceTsdk": true -} diff --git a/templates/next-template/README.md b/templates/next-template/README.md deleted file mode 100644 index 89e53f7..0000000 --- a/templates/next-template/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# next-template - -A Next.js 13 template for building apps with Radix UI and Tailwind CSS. - -## Usage - -```bash -npx create-next-app -e https://github.com/Jordan-Gilliam/next-template -``` - -## Features - -- Next.js 13 App Directory -- Radix UI Primitives -- Tailwind CSS -- Icons from [Lucide](https://lucide.dev) -- Dark mode with `next-themes` -- Tailwind CSS class sorting, merging and linting. - -## License - -Licensed under the [MIT license](https://github.com/Jordan-Gilliam/ui/blob/main/LICENSE.md). diff --git a/templates/next-template/app/layout.tsx b/templates/next-template/app/layout.tsx deleted file mode 100644 index 460dcd9..0000000 --- a/templates/next-template/app/layout.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import "@/styles/globals.css" -import { Metadata } from "next" - -import { siteConfig } from "@/config/site" -import { fontSans } from "@/lib/fonts" -import { cn } from "@/lib/utils" -import { SiteHeader } from "@/components/site-header" -import { TailwindIndicator } from "@/components/tailwind-indicator" -import { ThemeProvider } from "@/components/theme-provider" - -export const metadata: Metadata = { - title: { - default: siteConfig.name, - template: `%s - ${siteConfig.name}`, - }, - description: siteConfig.description, - themeColor: [ - { media: "(prefers-color-scheme: light)", color: "white" }, - { media: "(prefers-color-scheme: dark)", color: "black" }, - ], - icons: { - icon: "/favicon.ico", - shortcut: "/favicon-16x16.png", - apple: "/apple-touch-icon.png", - }, -} - -interface RootLayoutProps { - children: React.ReactNode -} - -export default function RootLayout({ children }: RootLayoutProps) { - return ( - <> - - - - -
- -
{children}
-
- -
- - - - ) -} diff --git a/templates/next-template/app/page.tsx b/templates/next-template/app/page.tsx deleted file mode 100644 index 01e50de..0000000 --- a/templates/next-template/app/page.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import Link from "next/link" - -import { siteConfig } from "@/config/site" -import { buttonVariants } from "@/components/ui/button" - -export default function IndexPage() { - return ( -
-
-

- Beautifully designed components
- built with Radix UI and Tailwind CSS. -

-

- Accessible and customizable components that you can copy and paste - into your apps. Free. Open Source. And Next.js 13 Ready. -

-
-
- - Documentation - - - GitHub - -
-
- ) -} diff --git a/templates/next-template/components.json b/templates/next-template/components.json deleted file mode 100644 index dea182f..0000000 --- a/templates/next-template/components.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://ui.Jordan-Gilliam.com/schema.json", - "style": "default", - "tailwind": { - "config": "tailwind.config.js", - "css": "app/globals.css", - "baseColor": "slate", - "cssVariables": true - }, - "rsc": false, - "aliases": { - "utils": "@/lib/utils", - "components": "@/components" - } -} diff --git a/templates/next-template/components/icons.tsx b/templates/next-template/components/icons.tsx deleted file mode 100644 index 06e3478..0000000 --- a/templates/next-template/components/icons.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import { LucideProps, Moon, SunMedium, type LucideIcon } from "lucide-react" - -export type Icon = LucideIcon - -export const Icons = { - sun: SunMedium, - moon: Moon, - twitter: (props: LucideProps) => ( - - - - ), - logo: (props: LucideProps) => ( - - - - ), - gitHub: (props: LucideProps) => ( - - - - ), -} diff --git a/templates/next-template/components/main-nav.tsx b/templates/next-template/components/main-nav.tsx deleted file mode 100644 index 64e87a2..0000000 --- a/templates/next-template/components/main-nav.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import * as React from "react" -import Link from "next/link" - -import { NavItem } from "@/types/nav" -import { siteConfig } from "@/config/site" -import { cn } from "@/lib/utils" -import { Icons } from "@/components/icons" - -interface MainNavProps { - items?: NavItem[] -} - -export function MainNav({ items }: MainNavProps) { - return ( -
- - - {siteConfig.name} - - {items?.length ? ( - - ) : null} -
- ) -} diff --git a/templates/next-template/components/site-header.tsx b/templates/next-template/components/site-header.tsx deleted file mode 100644 index ea45d04..0000000 --- a/templates/next-template/components/site-header.tsx +++ /dev/null @@ -1,52 +0,0 @@ -import Link from "next/link" - -import { siteConfig } from "@/config/site" -import { buttonVariants } from "@/components/ui/button" -import { Icons } from "@/components/icons" -import { MainNav } from "@/components/main-nav" -import { ThemeToggle } from "@/components/theme-toggle" - -export function SiteHeader() { - return ( -
-
- -
- -
-
-
- ) -} diff --git a/templates/next-template/components/tailwind-indicator.tsx b/templates/next-template/components/tailwind-indicator.tsx deleted file mode 100644 index 535e074..0000000 --- a/templates/next-template/components/tailwind-indicator.tsx +++ /dev/null @@ -1,14 +0,0 @@ -export function TailwindIndicator() { - if (process.env.NODE_ENV === "production") return null - - return ( -
-
xs
-
sm
-
md
-
lg
-
xl
-
2xl
-
- ) -} diff --git a/templates/next-template/components/theme-provider.tsx b/templates/next-template/components/theme-provider.tsx deleted file mode 100644 index 8c90fbc..0000000 --- a/templates/next-template/components/theme-provider.tsx +++ /dev/null @@ -1,9 +0,0 @@ -"use client" - -import * as React from "react" -import { ThemeProvider as NextThemesProvider } from "next-themes" -import { type ThemeProviderProps } from "next-themes/dist/types" - -export function ThemeProvider({ children, ...props }: ThemeProviderProps) { - return {children} -} diff --git a/templates/next-template/components/theme-toggle.tsx b/templates/next-template/components/theme-toggle.tsx deleted file mode 100644 index 01e846c..0000000 --- a/templates/next-template/components/theme-toggle.tsx +++ /dev/null @@ -1,23 +0,0 @@ -"use client" - -import * as React from "react" -import { Moon, Sun } from "lucide-react" -import { useTheme } from "next-themes" - -import { Button } from "@/components/ui/button" - -export function ThemeToggle() { - const { setTheme, theme } = useTheme() - - return ( - - ) -} diff --git a/templates/next-template/components/ui/button.tsx b/templates/next-template/components/ui/button.tsx deleted file mode 100644 index bb9b91a..0000000 --- a/templates/next-template/components/ui/button.tsx +++ /dev/null @@ -1,56 +0,0 @@ -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 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background", - { - 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 hover:bg-accent hover:text-accent-foreground", - secondary: - "bg-secondary text-secondary-foreground hover:bg-secondary/80", - ghost: "hover:bg-accent hover:text-accent-foreground", - link: "underline-offset-4 hover:underline text-primary", - }, - size: { - default: "h-10 py-2 px-4", - sm: "h-9 px-3 rounded-md", - lg: "h-11 px-8 rounded-md", - 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 } diff --git a/templates/next-template/config/site.ts b/templates/next-template/config/site.ts deleted file mode 100644 index 0270faa..0000000 --- a/templates/next-template/config/site.ts +++ /dev/null @@ -1,18 +0,0 @@ -export type SiteConfig = typeof siteConfig - -export const siteConfig = { - name: "Next.js", - description: - "Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.", - mainNav: [ - { - title: "Home", - href: "/", - }, - ], - links: { - twitter: "https://twitter.com/Jordan-Gilliam", - github: "https://github.com/Jordan-Gilliam/ui", - docs: "https://ui.Jordan-Gilliam.com", - }, -} diff --git a/templates/next-template/lib/fonts.ts b/templates/next-template/lib/fonts.ts deleted file mode 100644 index eb51e11..0000000 --- a/templates/next-template/lib/fonts.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { JetBrains_Mono as FontMono, Inter as FontSans } from "next/font/google" - -export const fontSans = FontSans({ - subsets: ["latin"], - variable: "--font-sans", -}) - -export const fontMono = FontMono({ - subsets: ["latin"], - variable: "--font-mono", -}) diff --git a/templates/next-template/lib/utils.ts b/templates/next-template/lib/utils.ts deleted file mode 100644 index bd0c391..0000000 --- a/templates/next-template/lib/utils.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { clsx, type ClassValue } from "clsx" -import { twMerge } from "tailwind-merge" - -export function cn(...inputs: ClassValue[]) { - return twMerge(clsx(inputs)) -} diff --git a/templates/next-template/next-env.d.ts b/templates/next-template/next-env.d.ts deleted file mode 100644 index 4f11a03..0000000 --- a/templates/next-template/next-env.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -/// - -// NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/templates/next-template/next.config.mjs b/templates/next-template/next.config.mjs deleted file mode 100644 index 94be31c..0000000 --- a/templates/next-template/next.config.mjs +++ /dev/null @@ -1,6 +0,0 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = { - reactStrictMode: true, -} - -export default nextConfig diff --git a/templates/next-template/package.json b/templates/next-template/package.json deleted file mode 100644 index 90d5198..0000000 --- a/templates/next-template/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "next-template", - "version": "0.0.2", - "private": true, - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start", - "lint": "next lint", - "lint:fix": "next lint --fix", - "preview": "next build && next start", - "typecheck": "tsc --noEmit", - "format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache", - "format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache" - }, - "dependencies": { - "@radix-ui/react-slot": "^1.0.2", - "class-variance-authority": "^0.7.0", - "clsx": "^1.2.1", - "lucide-react": "0.288.0", - "next": "14.1.3", - "next-themes": "^0.2.1", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "sharp": "^0.31.3", - "tailwind-merge": "^1.13.2", - "tailwindcss-animate": "^1.0.6" - }, - "devDependencies": { - "@ianvs/prettier-plugin-sort-imports": "^3.7.2", - "@types/node": "^17.0.45", - "@types/react": "^18.2.67", - "@types/react-dom": "^18.2.22", - "@typescript-eslint/parser": "^5.61.0", - "autoprefixer": "^10.4.14", - "eslint": "^8.44.0", - "eslint-config-next": "13.0.0", - "eslint-config-prettier": "^8.8.0", - "eslint-plugin-react": "^7.32.2", - "eslint-plugin-tailwindcss": "^3.13.0", - "postcss": "^8.4.24", - "prettier": "^2.8.8", - "tailwindcss": "^3.4.0", - "typescript": "^5.4.2" - } -} diff --git a/templates/next-template/postcss.config.js b/templates/next-template/postcss.config.js deleted file mode 100644 index 33ad091..0000000 --- a/templates/next-template/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} diff --git a/templates/next-template/prettier.config.js b/templates/next-template/prettier.config.js deleted file mode 100644 index 83bb10b..0000000 --- a/templates/next-template/prettier.config.js +++ /dev/null @@ -1,32 +0,0 @@ -/** @type {import('prettier').Config} */ -module.exports = { - endOfLine: "lf", - semi: false, - singleQuote: false, - tabWidth: 2, - trailingComma: "es5", - importOrder: [ - "^(react/(.*)$)|^(react$)", - "^(next/(.*)$)|^(next$)", - "", - "", - "^types$", - "^@/types/(.*)$", - "^@/config/(.*)$", - "^@/lib/(.*)$", - "^@/hooks/(.*)$", - "^@/components/ui/(.*)$", - "^@/components/(.*)$", - "^@/styles/(.*)$", - "^@/app/(.*)$", - "", - "^[./]", - ], - importOrderSeparation: false, - importOrderSortSpecifiers: true, - importOrderBuiltinModulesToTop: true, - importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"], - importOrderMergeDuplicateImports: true, - importOrderCombineTypeAndValueImports: true, - plugins: ["@ianvs/prettier-plugin-sort-imports"], -} diff --git a/templates/next-template/public/favicon.ico b/templates/next-template/public/favicon.ico deleted file mode 100644 index 718d6fe..0000000 Binary files a/templates/next-template/public/favicon.ico and /dev/null differ diff --git a/templates/next-template/public/next.svg b/templates/next-template/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/templates/next-template/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/templates/next-template/public/thirteen.svg b/templates/next-template/public/thirteen.svg deleted file mode 100644 index 8977c1b..0000000 --- a/templates/next-template/public/thirteen.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/templates/next-template/public/vercel.svg b/templates/next-template/public/vercel.svg deleted file mode 100644 index d2f8422..0000000 --- a/templates/next-template/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/templates/next-template/styles/globals.css b/templates/next-template/styles/globals.css deleted file mode 100644 index 95d8cab..0000000 --- a/templates/next-template/styles/globals.css +++ /dev/null @@ -1,81 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -@layer base { - :root { - --background: 0 0% 100%; - --foreground: 222.2 47.4% 11.2%; - - --muted: 210 40% 96.1%; - --muted-foreground: 215.4 16.3% 46.9%; - - --popover: 0 0% 100%; - --popover-foreground: 222.2 47.4% 11.2%; - - --border: 214.3 31.8% 91.4%; - --input: 214.3 31.8% 91.4%; - - --card: 0 0% 100%; - --card-foreground: 222.2 47.4% 11.2%; - - --primary: 222.2 47.4% 11.2%; - --primary-foreground: 210 40% 98%; - - --secondary: 210 40% 96.1%; - --secondary-foreground: 222.2 47.4% 11.2%; - - --accent: 210 40% 96.1%; - --accent-foreground: 222.2 47.4% 11.2%; - - --destructive: 0 100% 50%; - --destructive-foreground: 210 40% 98%; - - --ring: 215 20.2% 65.1%; - - --radius: 0.5rem; - } - - .dark { - --background: 224 71% 4%; - --foreground: 213 31% 91%; - - --muted: 223 47% 11%; - --muted-foreground: 215.4 16.3% 56.9%; - - --accent: 216 34% 17%; - --accent-foreground: 210 40% 98%; - - --popover: 224 71% 4%; - --popover-foreground: 215 20.2% 65.1%; - - --border: 216 34% 17%; - --input: 216 34% 17%; - - --card: 224 71% 4%; - --card-foreground: 213 31% 91%; - - --primary: 210 40% 98%; - --primary-foreground: 222.2 47.4% 1.2%; - - --secondary: 222.2 47.4% 11.2%; - --secondary-foreground: 210 40% 98%; - - --destructive: 0 63% 31%; - --destructive-foreground: 210 40% 98%; - - --ring: 216 34% 17%; - - --radius: 0.5rem; - } -} - -@layer base { - * { - @apply border-border; - } - body { - @apply bg-background text-foreground; - font-feature-settings: "rlig" 1, "calt" 1; - } -} diff --git a/templates/next-template/tailwind.config.js b/templates/next-template/tailwind.config.js deleted file mode 100644 index 3ea1db1..0000000 --- a/templates/next-template/tailwind.config.js +++ /dev/null @@ -1,76 +0,0 @@ -const { fontFamily } = require("tailwindcss/defaultTheme") - -/** @type {import('tailwindcss').Config} */ -module.exports = { - darkMode: ["class"], - content: ["app/**/*.{ts,tsx}", "components/**/*.{ts,tsx}"], - theme: { - container: { - center: true, - padding: "2rem", - screens: { - "2xl": "1400px", - }, - }, - extend: { - colors: { - border: "hsl(var(--border))", - input: "hsl(var(--input))", - ring: "hsl(var(--ring))", - background: "hsl(var(--background))", - foreground: "hsl(var(--foreground))", - primary: { - DEFAULT: "hsl(var(--primary))", - foreground: "hsl(var(--primary-foreground))", - }, - secondary: { - DEFAULT: "hsl(var(--secondary))", - foreground: "hsl(var(--secondary-foreground))", - }, - destructive: { - DEFAULT: "hsl(var(--destructive))", - foreground: "hsl(var(--destructive-foreground))", - }, - muted: { - DEFAULT: "hsl(var(--muted))", - foreground: "hsl(var(--muted-foreground))", - }, - accent: { - DEFAULT: "hsl(var(--accent))", - foreground: "hsl(var(--accent-foreground))", - }, - popover: { - DEFAULT: "hsl(var(--popover))", - foreground: "hsl(var(--popover-foreground))", - }, - card: { - DEFAULT: "hsl(var(--card))", - foreground: "hsl(var(--card-foreground))", - }, - }, - borderRadius: { - lg: `var(--radius)`, - md: `calc(var(--radius) - 2px)`, - sm: "calc(var(--radius) - 4px)", - }, - fontFamily: { - sans: ["var(--font-sans)", ...fontFamily.sans], - }, - keyframes: { - "accordion-down": { - from: { height: "0" }, - to: { height: "var(--radix-accordion-content-height)" }, - }, - "accordion-up": { - from: { height: "var(--radix-accordion-content-height)" }, - to: { height: "0" }, - }, - }, - animation: { - "accordion-down": "accordion-down 0.2s ease-out", - "accordion-up": "accordion-up 0.2s ease-out", - }, - }, - }, - plugins: [require("tailwindcss-animate")], -} diff --git a/templates/next-template/tsconfig.json b/templates/next-template/tsconfig.json deleted file mode 100644 index 1b03bc2..0000000 --- a/templates/next-template/tsconfig.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "incremental": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "baseUrl": ".", - "paths": { - "@/*": ["./*"] - }, - "plugins": [ - { - "name": "next" - } - ], - "strictNullChecks": true - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] -} diff --git a/templates/next-template/types/nav.ts b/templates/next-template/types/nav.ts deleted file mode 100644 index 0961ce8..0000000 --- a/templates/next-template/types/nav.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface NavItem { - title: string - href?: string - disabled?: boolean - external?: boolean -}