bsmnt 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/CLAUDE.md +2 -3
- package/README.md +1 -2
- package/bun.lock +1 -1
- package/docs/architecture.drawio +0 -16
- package/docs/architecture.mermaid +1 -7
- package/package.json +42 -42
- package/packages/cli/bin/index.js +0 -4
- package/packages/cli/src/commands/add-integration.js +1 -14
- package/packages/cli/src/commands/create.js +28 -5
- package/packages/create-basement-app/src/mergers/config.js +4 -26
- package/packages/create-basement-app/src/mergers/index.js +2 -5
- package/packages/create-basement-app/templates/webgl/components/webgl/canvas/index.tsx +3 -8
- package/packages/create-basement-app/templates/webgl/components/webgl/components/scene/index.tsx +11 -3
- package/packages/create-basement-app/templates/webgl/lib/renderer.ts +7 -0
- package/packages/create-basement-app/templates/webgl/package.json +2 -2
- package/packages/create-basement-app/integrations/basehub/config.js +0 -21
- package/packages/create-basement-app/integrations/basehub/files/README.md +0 -3
- package/packages/create-basement-app/templates/webgpu/.biome/plugins/README.md +0 -21
- package/packages/create-basement-app/templates/webgpu/.biome/plugins/no-anchor-element.grit +0 -12
- package/packages/create-basement-app/templates/webgpu/.biome/plugins/no-relative-parent-imports.grit +0 -10
- package/packages/create-basement-app/templates/webgpu/.biome/plugins/no-unnecessary-forwardref.grit +0 -9
- package/packages/create-basement-app/templates/webgpu/.cursor/rules/README.md +0 -184
- package/packages/create-basement-app/templates/webgpu/.cursor/rules/architecture.mdc +0 -437
- package/packages/create-basement-app/templates/webgpu/.cursor/rules/components.mdc +0 -436
- package/packages/create-basement-app/templates/webgpu/.cursor/rules/integrations.mdc +0 -447
- package/packages/create-basement-app/templates/webgpu/.cursor/rules/main.mdc +0 -278
- package/packages/create-basement-app/templates/webgpu/.cursor/rules/styling.mdc +0 -433
- package/packages/create-basement-app/templates/webgpu/.editorconfig +0 -40
- package/packages/create-basement-app/templates/webgpu/.env.example +0 -81
- package/packages/create-basement-app/templates/webgpu/.gitattributes +0 -19
- package/packages/create-basement-app/templates/webgpu/.github/PULL_REQUEST_TEMPLATE.md +0 -14
- package/packages/create-basement-app/templates/webgpu/.github/workflows/lighthouse-to-slack.yml +0 -136
- package/packages/create-basement-app/templates/webgpu/.vscode/extensions.json +0 -20
- package/packages/create-basement-app/templates/webgpu/.vscode/settings.json +0 -105
- package/packages/create-basement-app/templates/webgpu/README.md +0 -221
- package/packages/create-basement-app/templates/webgpu/_gitignore +0 -67
- package/packages/create-basement-app/templates/webgpu/app/favicon.ico +0 -0
- package/packages/create-basement-app/templates/webgpu/app/layout.tsx +0 -104
- package/packages/create-basement-app/templates/webgpu/app/page.tsx +0 -275
- package/packages/create-basement-app/templates/webgpu/app/robots.ts +0 -15
- package/packages/create-basement-app/templates/webgpu/app/sitemap.ts +0 -16
- package/packages/create-basement-app/templates/webgpu/biome.json +0 -250
- package/packages/create-basement-app/templates/webgpu/components/basement.svg +0 -1
- package/packages/create-basement-app/templates/webgpu/components/layout/footer/index.tsx +0 -27
- package/packages/create-basement-app/templates/webgpu/components/layout/header/index.tsx +0 -11
- package/packages/create-basement-app/templates/webgpu/components/layout/theme/index.tsx +0 -66
- package/packages/create-basement-app/templates/webgpu/components/layout/wrapper/index.tsx +0 -65
- package/packages/create-basement-app/templates/webgpu/components/ui/README.md +0 -77
- package/packages/create-basement-app/templates/webgpu/components/ui/image/README.md +0 -37
- package/packages/create-basement-app/templates/webgpu/components/ui/image/index.tsx +0 -224
- package/packages/create-basement-app/templates/webgpu/components/ui/link/index.tsx +0 -146
- package/packages/create-basement-app/templates/webgpu/lib/README.md +0 -33
- package/packages/create-basement-app/templates/webgpu/lib/hooks/index.ts +0 -12
- package/packages/create-basement-app/templates/webgpu/lib/hooks/use-device-detection.ts +0 -81
- package/packages/create-basement-app/templates/webgpu/lib/hooks/use-media-breakpoint.ts +0 -15
- package/packages/create-basement-app/templates/webgpu/lib/hooks/use-prefetch.ts +0 -74
- package/packages/create-basement-app/templates/webgpu/lib/integrations/.gitkeep +0 -0
- package/packages/create-basement-app/templates/webgpu/lib/scripts/dev.ts +0 -52
- package/packages/create-basement-app/templates/webgpu/lib/scripts/generate-component.ts +0 -322
- package/packages/create-basement-app/templates/webgpu/lib/scripts/generate-page.ts +0 -193
- package/packages/create-basement-app/templates/webgpu/lib/scripts/generate.ts +0 -79
- package/packages/create-basement-app/templates/webgpu/lib/scripts/utils.ts +0 -246
- package/packages/create-basement-app/templates/webgpu/lib/store/app.ts +0 -11
- package/packages/create-basement-app/templates/webgpu/lib/store/index.ts +0 -11
- package/packages/create-basement-app/templates/webgpu/lib/styles/README.md +0 -64
- package/packages/create-basement-app/templates/webgpu/lib/styles/cn.ts +0 -7
- package/packages/create-basement-app/templates/webgpu/lib/styles/colors.ts +0 -63
- package/packages/create-basement-app/templates/webgpu/lib/styles/config.ts +0 -34
- package/packages/create-basement-app/templates/webgpu/lib/styles/css/global.css +0 -85
- package/packages/create-basement-app/templates/webgpu/lib/styles/css/index.css +0 -6
- package/packages/create-basement-app/templates/webgpu/lib/styles/css/reset.css +0 -166
- package/packages/create-basement-app/templates/webgpu/lib/styles/css/root.css +0 -68
- package/packages/create-basement-app/templates/webgpu/lib/styles/css/tailwind.css +0 -132
- package/packages/create-basement-app/templates/webgpu/lib/styles/easings.ts +0 -21
- package/packages/create-basement-app/templates/webgpu/lib/styles/fonts.ts +0 -28
- package/packages/create-basement-app/templates/webgpu/lib/styles/index.ts +0 -12
- package/packages/create-basement-app/templates/webgpu/lib/styles/layout.mjs +0 -27
- package/packages/create-basement-app/templates/webgpu/lib/styles/scripts/README.md +0 -29
- package/packages/create-basement-app/templates/webgpu/lib/styles/scripts/generate-root.ts +0 -57
- package/packages/create-basement-app/templates/webgpu/lib/styles/scripts/generate-tailwind.ts +0 -162
- package/packages/create-basement-app/templates/webgpu/lib/styles/scripts/postcss-functions.mjs +0 -168
- package/packages/create-basement-app/templates/webgpu/lib/styles/scripts/setup-styles.ts +0 -24
- package/packages/create-basement-app/templates/webgpu/lib/styles/scripts/utils.ts +0 -20
- package/packages/create-basement-app/templates/webgpu/lib/styles/typography.ts +0 -36
- package/packages/create-basement-app/templates/webgpu/lib/utils/README.md +0 -40
- package/packages/create-basement-app/templates/webgpu/lib/utils/css.d.ts +0 -21
- package/packages/create-basement-app/templates/webgpu/lib/utils/easings.ts +0 -240
- package/packages/create-basement-app/templates/webgpu/lib/utils/fetch.ts +0 -84
- package/packages/create-basement-app/templates/webgpu/lib/utils/math.test.ts +0 -221
- package/packages/create-basement-app/templates/webgpu/lib/utils/math.ts +0 -236
- package/packages/create-basement-app/templates/webgpu/lib/utils/metadata.ts +0 -126
- package/packages/create-basement-app/templates/webgpu/lib/utils/strings.test.ts +0 -166
- package/packages/create-basement-app/templates/webgpu/lib/utils/strings.ts +0 -246
- package/packages/create-basement-app/templates/webgpu/lib/utils/types.d.ts +0 -15
- package/packages/create-basement-app/templates/webgpu/lib/utils/viewport.test.ts +0 -256
- package/packages/create-basement-app/templates/webgpu/lib/utils/viewport.ts +0 -193
- package/packages/create-basement-app/templates/webgpu/next.config.ts +0 -142
- package/packages/create-basement-app/templates/webgpu/package.json +0 -69
- package/packages/create-basement-app/templates/webgpu/postcss.config.mjs +0 -42
- package/packages/create-basement-app/templates/webgpu/public/fonts/geist/Geist-Mono.woff2 +0 -0
- package/packages/create-basement-app/templates/webgpu/tsconfig.json +0 -43
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# dependencies
|
|
4
|
-
/node_modules
|
|
5
|
-
/.pnp
|
|
6
|
-
.pnp.*
|
|
7
|
-
.turbo
|
|
8
|
-
.npmrc
|
|
9
|
-
.yarn/*
|
|
10
|
-
!.yarn/patches
|
|
11
|
-
!.yarn/plugins
|
|
12
|
-
!.yarn/releases
|
|
13
|
-
!.yarn/versions
|
|
14
|
-
|
|
15
|
-
# testing
|
|
16
|
-
/coverage
|
|
17
|
-
|
|
18
|
-
# next.js
|
|
19
|
-
/.next/
|
|
20
|
-
/out/
|
|
21
|
-
|
|
22
|
-
# TypeScript
|
|
23
|
-
*.tsbuildinfo
|
|
24
|
-
|
|
25
|
-
# production
|
|
26
|
-
/build
|
|
27
|
-
/public/sw.js
|
|
28
|
-
|
|
29
|
-
# misc
|
|
30
|
-
.DS_Store
|
|
31
|
-
*.pem
|
|
32
|
-
.cursor/scratchpad.md
|
|
33
|
-
|
|
34
|
-
# debug
|
|
35
|
-
npm-debug.log*
|
|
36
|
-
yarn-debug.log*
|
|
37
|
-
yarn-error.log*
|
|
38
|
-
|
|
39
|
-
# local env files
|
|
40
|
-
.env
|
|
41
|
-
.env.local
|
|
42
|
-
.env*.local
|
|
43
|
-
.env.development.local
|
|
44
|
-
.env.test.local
|
|
45
|
-
.env.production.local
|
|
46
|
-
|
|
47
|
-
# vercel
|
|
48
|
-
.vercel
|
|
49
|
-
|
|
50
|
-
# tldr
|
|
51
|
-
.tldr
|
|
52
|
-
|
|
53
|
-
# eslint
|
|
54
|
-
.eslintcache
|
|
55
|
-
|
|
56
|
-
# certificates
|
|
57
|
-
certificates
|
|
58
|
-
|
|
59
|
-
next-env.d.ts
|
|
60
|
-
# claude
|
|
61
|
-
.claude
|
|
62
|
-
|
|
63
|
-
# unlighthouse
|
|
64
|
-
.unlighthouse/
|
|
65
|
-
|
|
66
|
-
# storybook
|
|
67
|
-
*storybook.log
|
|
Binary file
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import type { Metadata, Viewport } from "next"
|
|
2
|
-
import { Geist } from "next/font/google"
|
|
3
|
-
import { type PropsWithChildren, Suspense } from "react"
|
|
4
|
-
import { Link } from "@/components/ui/link"
|
|
5
|
-
import { themes } from "@/lib/styles/colors"
|
|
6
|
-
import { fontsVariable } from "@/lib/styles/fonts"
|
|
7
|
-
import AppData from "@/package.json"
|
|
8
|
-
import "@/lib/styles/css/index.css"
|
|
9
|
-
import { cn } from "@/lib/styles/cn"
|
|
10
|
-
|
|
11
|
-
const APP_NAME = AppData.name
|
|
12
|
-
const APP_DEFAULT_TITLE = "Basement Starter"
|
|
13
|
-
const APP_TITLE_TEMPLATE = "%s - Basement Starter"
|
|
14
|
-
const APP_DESCRIPTION = AppData.description
|
|
15
|
-
const APP_BASE_URL =
|
|
16
|
-
process.env.NEXT_PUBLIC_BASE_URL ?? "https://localhost:3000"
|
|
17
|
-
|
|
18
|
-
const geist = Geist({
|
|
19
|
-
subsets: ["latin"],
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
export const metadata: Metadata = {
|
|
23
|
-
alternates: {
|
|
24
|
-
canonical: "/",
|
|
25
|
-
languages: {
|
|
26
|
-
"en-US": "/en-US",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
appleWebApp: {
|
|
30
|
-
capable: true,
|
|
31
|
-
statusBarStyle: "default",
|
|
32
|
-
title: APP_DEFAULT_TITLE,
|
|
33
|
-
},
|
|
34
|
-
applicationName: APP_NAME,
|
|
35
|
-
authors: [{ name: "basement.studio", url: "https://basement.studio" }],
|
|
36
|
-
description: APP_DESCRIPTION,
|
|
37
|
-
formatDetection: { telephone: false },
|
|
38
|
-
metadataBase: new URL(APP_BASE_URL),
|
|
39
|
-
openGraph: {
|
|
40
|
-
description: APP_DESCRIPTION,
|
|
41
|
-
images: [
|
|
42
|
-
{
|
|
43
|
-
alt: APP_DEFAULT_TITLE,
|
|
44
|
-
height: 630,
|
|
45
|
-
url: "/opengraph-image.jpg",
|
|
46
|
-
width: 1200,
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
locale: "en_US",
|
|
50
|
-
siteName: APP_NAME,
|
|
51
|
-
title: {
|
|
52
|
-
default: APP_DEFAULT_TITLE,
|
|
53
|
-
template: APP_TITLE_TEMPLATE,
|
|
54
|
-
},
|
|
55
|
-
type: "website",
|
|
56
|
-
url: APP_BASE_URL,
|
|
57
|
-
},
|
|
58
|
-
other: {
|
|
59
|
-
"fb:app_id": process.env.NEXT_PUBLIC_FACEBOOK_APP_ID || "",
|
|
60
|
-
},
|
|
61
|
-
title: {
|
|
62
|
-
default: APP_DEFAULT_TITLE,
|
|
63
|
-
template: APP_TITLE_TEMPLATE,
|
|
64
|
-
},
|
|
65
|
-
twitter: {
|
|
66
|
-
card: "summary_large_image",
|
|
67
|
-
description: APP_DESCRIPTION,
|
|
68
|
-
title: {
|
|
69
|
-
default: APP_DEFAULT_TITLE,
|
|
70
|
-
template: APP_TITLE_TEMPLATE,
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export const viewport: Viewport = {
|
|
76
|
-
colorScheme: "normal",
|
|
77
|
-
themeColor: themes.dark.primary,
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export default async function Layout({ children }: PropsWithChildren) {
|
|
81
|
-
return (
|
|
82
|
-
<html
|
|
83
|
-
lang="en"
|
|
84
|
-
dir="ltr"
|
|
85
|
-
className={cn(fontsVariable, geist.className)}
|
|
86
|
-
// NOTE: This is due to the data-theme attribute being set which causes hydration errors
|
|
87
|
-
suppressHydrationWarning
|
|
88
|
-
>
|
|
89
|
-
<body>
|
|
90
|
-
{/* Skip link for keyboard navigation accessibility */}
|
|
91
|
-
<Suspense fallback={null}>
|
|
92
|
-
<Link
|
|
93
|
-
href="#main-content"
|
|
94
|
-
className="sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-9999 focus:rounded focus:bg-black focus:px-4 focus:py-2 focus:text-white focus:outline-none focus:ring-2 focus:ring-white"
|
|
95
|
-
>
|
|
96
|
-
Skip to main content
|
|
97
|
-
</Link>
|
|
98
|
-
</Suspense>
|
|
99
|
-
|
|
100
|
-
{children}
|
|
101
|
-
</body>
|
|
102
|
-
</html>
|
|
103
|
-
)
|
|
104
|
-
}
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
import { Wrapper } from "@/components/layout/wrapper"
|
|
2
|
-
import { Link } from "@/components/ui/link"
|
|
3
|
-
import { colors } from "@/lib/styles/colors"
|
|
4
|
-
import { breakpoints, layout } from "@/lib/styles/layout.mjs"
|
|
5
|
-
|
|
6
|
-
const TECH_STACK = [
|
|
7
|
-
{ description: "App Router, Turbopack", name: "Next.js", version: "16.1" },
|
|
8
|
-
{ description: "React Compiler enabled", name: "React", version: "19" },
|
|
9
|
-
{ description: "Strict mode", name: "TypeScript", version: "5.9" },
|
|
10
|
-
{ description: "CSS-first config", name: "Tailwind CSS", version: "4" },
|
|
11
|
-
{ description: "Lint + Format", name: "Biome", version: "2.3" },
|
|
12
|
-
{ description: "Package manager", name: "Bun", version: "1.3" },
|
|
13
|
-
]
|
|
14
|
-
|
|
15
|
-
const FEATURES = [
|
|
16
|
-
{
|
|
17
|
-
description:
|
|
18
|
-
"Pre-configured colors, breakpoints, typography, and 30+ easing functions ready to use.",
|
|
19
|
-
title: "Design System",
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
description:
|
|
23
|
-
"Enhanced Image and Link components with blur placeholders, connection-aware prefetching.",
|
|
24
|
-
title: "Smart Components",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
description:
|
|
28
|
-
"Light/dark theme with CSS custom properties and React context.",
|
|
29
|
-
title: "Theme Support",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
description:
|
|
33
|
-
"Custom scripts for component scaffolding, style generation, and HTTPS dev server.",
|
|
34
|
-
title: "Developer Experience",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
description:
|
|
38
|
-
"Bundle analyzer, optimized imports, security headers, and image optimization.",
|
|
39
|
-
title: "Performance Optimized",
|
|
40
|
-
},
|
|
41
|
-
]
|
|
42
|
-
|
|
43
|
-
const SCRIPTS = [
|
|
44
|
-
{ cmd: "bun dev", desc: "Start development server" },
|
|
45
|
-
{ cmd: "bun dev:https", desc: "Start with HTTPS" },
|
|
46
|
-
{ cmd: "bun build", desc: "Build for production" },
|
|
47
|
-
{ cmd: "bun generate", desc: "Scaffold components" },
|
|
48
|
-
{ cmd: "bun lint:fix", desc: "Fix lint issues" },
|
|
49
|
-
{ cmd: "bun typecheck", desc: "Type check with tsgo" },
|
|
50
|
-
]
|
|
51
|
-
|
|
52
|
-
const VERSION = "1.0.0"
|
|
53
|
-
|
|
54
|
-
export default function Home() {
|
|
55
|
-
return (
|
|
56
|
-
<Wrapper theme="dark">
|
|
57
|
-
{/* Hero */}
|
|
58
|
-
<section className="flex min-h-[80vh] flex-col justify-center px-safe pt-header-height">
|
|
59
|
-
<div className="max-w-3xl">
|
|
60
|
-
<p className="font-mono text-contrast text-sm uppercase tracking-wider">
|
|
61
|
-
Next.js Starter Template v{VERSION}
|
|
62
|
-
</p>
|
|
63
|
-
<h1 className="mt-4 font-semibold text-4xl leading-tight tracking-tight md:text-6xl">
|
|
64
|
-
Basement Next Starter
|
|
65
|
-
</h1>
|
|
66
|
-
<p className="mt-6 max-w-xl text-lg text-secondary/70">
|
|
67
|
-
A production-ready Next.js starter with React 19, Tailwind CSS v4,
|
|
68
|
-
TypeScript strict mode, and everything you need to build modern web
|
|
69
|
-
applications.
|
|
70
|
-
</p>
|
|
71
|
-
<div className="mt-8 flex flex-wrap gap-4 font-mono text-sm uppercase">
|
|
72
|
-
<Link
|
|
73
|
-
href="https://github.com/basementstudio/next-starter/generate"
|
|
74
|
-
className="bg-secondary px-6 py-3 text-primary transition-opacity hover:opacity-80"
|
|
75
|
-
>
|
|
76
|
-
Use this template
|
|
77
|
-
</Link>
|
|
78
|
-
<Link
|
|
79
|
-
href="https://github.com/basementstudio/next-starter"
|
|
80
|
-
className="border border-secondary/30 px-6 py-3 transition-colors hover:border-secondary"
|
|
81
|
-
>
|
|
82
|
-
View on GitHub
|
|
83
|
-
</Link>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</section>
|
|
87
|
-
|
|
88
|
-
{/* Tech Stack */}
|
|
89
|
-
<section className="px-safe py-24">
|
|
90
|
-
<h2 className="font-mono text-contrast text-sm uppercase tracking-wider">
|
|
91
|
-
Tech Stack
|
|
92
|
-
</h2>
|
|
93
|
-
<div className="mt-8 grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
|
94
|
-
{TECH_STACK.map((tech) => (
|
|
95
|
-
<div
|
|
96
|
-
key={tech.name}
|
|
97
|
-
className="border border-secondary/10 p-6 transition-colors hover:border-secondary/30"
|
|
98
|
-
>
|
|
99
|
-
<div className="flex items-baseline justify-between">
|
|
100
|
-
<span className="font-semibold text-lg">{tech.name}</span>
|
|
101
|
-
<span className="font-mono text-contrast text-sm">
|
|
102
|
-
v{tech.version}
|
|
103
|
-
</span>
|
|
104
|
-
</div>
|
|
105
|
-
<p className="mt-2 text-secondary/60 text-sm">
|
|
106
|
-
{tech.description}
|
|
107
|
-
</p>
|
|
108
|
-
</div>
|
|
109
|
-
))}
|
|
110
|
-
</div>
|
|
111
|
-
</section>
|
|
112
|
-
|
|
113
|
-
{/* Features */}
|
|
114
|
-
<section className="px-safe py-24">
|
|
115
|
-
<h2 className="font-mono text-contrast text-sm uppercase tracking-wider">
|
|
116
|
-
Features
|
|
117
|
-
</h2>
|
|
118
|
-
<div className="mt-8 grid gap-8 sm:grid-cols-2 lg:grid-cols-3">
|
|
119
|
-
{FEATURES.map((feature) => (
|
|
120
|
-
<div key={feature.title}>
|
|
121
|
-
<h3 className="font-semibold text-lg">{feature.title}</h3>
|
|
122
|
-
<p className="mt-2 text-secondary/60">{feature.description}</p>
|
|
123
|
-
</div>
|
|
124
|
-
))}
|
|
125
|
-
</div>
|
|
126
|
-
</section>
|
|
127
|
-
|
|
128
|
-
{/* Design System */}
|
|
129
|
-
<section className="px-safe py-24">
|
|
130
|
-
<h2 className="font-mono text-contrast text-sm uppercase tracking-wider">
|
|
131
|
-
Design System
|
|
132
|
-
</h2>
|
|
133
|
-
|
|
134
|
-
{/* Colors */}
|
|
135
|
-
<div className="mt-8">
|
|
136
|
-
<h3 className="font-mono text-secondary/60 text-xs uppercase">
|
|
137
|
-
Colors
|
|
138
|
-
</h3>
|
|
139
|
-
<div className="mt-4 flex flex-wrap gap-3">
|
|
140
|
-
{Object.entries(colors).map(([name, value]) => (
|
|
141
|
-
<div key={name} className="flex items-center gap-2">
|
|
142
|
-
<div
|
|
143
|
-
className="size-8 rounded border border-secondary/20"
|
|
144
|
-
style={{ backgroundColor: value }}
|
|
145
|
-
/>
|
|
146
|
-
<div className="font-mono text-xs">
|
|
147
|
-
<div className="text-secondary">{name}</div>
|
|
148
|
-
<div className="text-secondary/40">{value}</div>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
))}
|
|
152
|
-
</div>
|
|
153
|
-
</div>
|
|
154
|
-
|
|
155
|
-
{/* Breakpoints */}
|
|
156
|
-
<div className="mt-12">
|
|
157
|
-
<h3 className="font-mono text-secondary/60 text-xs uppercase">
|
|
158
|
-
Breakpoints
|
|
159
|
-
</h3>
|
|
160
|
-
<div className="mt-4 flex flex-wrap gap-4">
|
|
161
|
-
{Object.entries(breakpoints).map(([name, value]) => (
|
|
162
|
-
<div
|
|
163
|
-
key={name}
|
|
164
|
-
className="border border-secondary/10 px-4 py-2 font-mono text-sm"
|
|
165
|
-
>
|
|
166
|
-
<span className="text-secondary">{name}</span>
|
|
167
|
-
<span className="ml-2 text-secondary/40">{value}px</span>
|
|
168
|
-
</div>
|
|
169
|
-
))}
|
|
170
|
-
</div>
|
|
171
|
-
</div>
|
|
172
|
-
|
|
173
|
-
{/* Grid */}
|
|
174
|
-
<div className="mt-12">
|
|
175
|
-
<h3 className="font-mono text-secondary/60 text-xs uppercase">
|
|
176
|
-
Grid System
|
|
177
|
-
</h3>
|
|
178
|
-
<div className="mt-4 flex gap-8 font-mono text-sm">
|
|
179
|
-
<div>
|
|
180
|
-
<span className="text-secondary/40">Mobile:</span>{" "}
|
|
181
|
-
<span className="text-secondary">
|
|
182
|
-
{layout.columns.mobile} columns
|
|
183
|
-
</span>
|
|
184
|
-
</div>
|
|
185
|
-
<div>
|
|
186
|
-
<span className="text-secondary/40">Desktop:</span>{" "}
|
|
187
|
-
<span className="text-secondary">
|
|
188
|
-
{layout.columns.desktop} columns
|
|
189
|
-
</span>
|
|
190
|
-
</div>
|
|
191
|
-
<div>
|
|
192
|
-
<span className="text-secondary/40">Gap:</span>{" "}
|
|
193
|
-
<span className="text-secondary">{layout.gap.desktop}px</span>
|
|
194
|
-
</div>
|
|
195
|
-
</div>
|
|
196
|
-
</div>
|
|
197
|
-
</section>
|
|
198
|
-
|
|
199
|
-
{/* Quick Start */}
|
|
200
|
-
<section className="px-safe py-24">
|
|
201
|
-
<h2 className="font-mono text-contrast text-sm uppercase tracking-wider">
|
|
202
|
-
Quick Start
|
|
203
|
-
</h2>
|
|
204
|
-
|
|
205
|
-
<div className="mt-8 max-w-2xl">
|
|
206
|
-
<div className="border border-secondary/10 bg-secondary/5 p-6 font-mono text-sm">
|
|
207
|
-
<div className="text-secondary/40"># Clone the template</div>
|
|
208
|
-
<div className="mt-1 text-secondary">
|
|
209
|
-
bunx degit basementstudio/next-starter my-project
|
|
210
|
-
</div>
|
|
211
|
-
<div className="mt-4 text-secondary/40"># Install dependencies</div>
|
|
212
|
-
<div className="mt-1 text-secondary">
|
|
213
|
-
cd my-project && bun install
|
|
214
|
-
</div>
|
|
215
|
-
<div className="mt-4 text-secondary/40"># Start development</div>
|
|
216
|
-
<div className="mt-1 text-secondary">bun dev</div>
|
|
217
|
-
</div>
|
|
218
|
-
</div>
|
|
219
|
-
|
|
220
|
-
<div className="mt-12">
|
|
221
|
-
<h3 className="font-mono text-secondary/60 text-xs uppercase">
|
|
222
|
-
Available Scripts
|
|
223
|
-
</h3>
|
|
224
|
-
<div className="mt-4 grid gap-2 sm:grid-cols-2 lg:grid-cols-3">
|
|
225
|
-
{SCRIPTS.map((script) => (
|
|
226
|
-
<div
|
|
227
|
-
key={script.cmd}
|
|
228
|
-
className="flex items-center justify-between border border-secondary/10 px-4 py-3 font-mono text-sm"
|
|
229
|
-
>
|
|
230
|
-
<code className="text-secondary">{script.cmd}</code>
|
|
231
|
-
<span className="text-secondary/40">{script.desc}</span>
|
|
232
|
-
</div>
|
|
233
|
-
))}
|
|
234
|
-
</div>
|
|
235
|
-
</div>
|
|
236
|
-
</section>
|
|
237
|
-
|
|
238
|
-
{/* Project Structure */}
|
|
239
|
-
<section className="px-safe py-24">
|
|
240
|
-
<h2 className="font-mono text-contrast text-sm uppercase tracking-wider">
|
|
241
|
-
Project Structure
|
|
242
|
-
</h2>
|
|
243
|
-
<div className="mt-8 max-w-2xl border border-secondary/10 bg-secondary/5 p-6 font-mono text-sm leading-relaxed">
|
|
244
|
-
<pre className="text-secondary/80">
|
|
245
|
-
{`app/ # Next.js pages and routes
|
|
246
|
-
components/
|
|
247
|
-
├── layout/ # Header, Footer, Wrapper, Theme
|
|
248
|
-
└── ui/ # Image, Link, SanityImage
|
|
249
|
-
lib/
|
|
250
|
-
├── hooks/ # useDeviceDetection, useMediaBreakpoint
|
|
251
|
-
├── scripts/ # Dev tools, generators
|
|
252
|
-
├── store/ # Zustand global state
|
|
253
|
-
├── styles/ # Design tokens, CSS config
|
|
254
|
-
└── utils/ # Easings, math, strings, fetch`}
|
|
255
|
-
</pre>
|
|
256
|
-
</div>
|
|
257
|
-
</section>
|
|
258
|
-
|
|
259
|
-
{/* CTA */}
|
|
260
|
-
<section className="px-safe py-24 text-center">
|
|
261
|
-
<p className="font-mono text-secondary/60 text-sm uppercase">
|
|
262
|
-
Ready to build something great?
|
|
263
|
-
</p>
|
|
264
|
-
<div className="mt-6 flex justify-center gap-4 font-mono text-sm uppercase">
|
|
265
|
-
<Link
|
|
266
|
-
href="https://github.com/basementstudio/next-starter/generate"
|
|
267
|
-
className="bg-contrast px-8 py-4 text-primary transition-opacity hover:opacity-80"
|
|
268
|
-
>
|
|
269
|
-
Get Started
|
|
270
|
-
</Link>
|
|
271
|
-
</div>
|
|
272
|
-
</section>
|
|
273
|
-
</Wrapper>
|
|
274
|
-
)
|
|
275
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { MetadataRoute } from "next"
|
|
2
|
-
|
|
3
|
-
const APP_BASE_URL =
|
|
4
|
-
process.env.NEXT_PUBLIC_BASE_URL ?? "https://localhost:3000"
|
|
5
|
-
|
|
6
|
-
export default function robots(): MetadataRoute.Robots {
|
|
7
|
-
return {
|
|
8
|
-
rules: {
|
|
9
|
-
userAgent: "*",
|
|
10
|
-
allow: "/",
|
|
11
|
-
disallow: [],
|
|
12
|
-
},
|
|
13
|
-
sitemap: `${APP_BASE_URL}/sitemap.xml`,
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { MetadataRoute } from "next"
|
|
2
|
-
|
|
3
|
-
const APP_BASE_URL =
|
|
4
|
-
process.env.NEXT_PUBLIC_BASE_URL ?? "https://localhost:3000"
|
|
5
|
-
|
|
6
|
-
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
|
7
|
-
const baseRoutes: MetadataRoute.Sitemap = [
|
|
8
|
-
{
|
|
9
|
-
url: APP_BASE_URL,
|
|
10
|
-
lastModified: new Date(),
|
|
11
|
-
changeFrequency: "daily",
|
|
12
|
-
priority: 1,
|
|
13
|
-
},
|
|
14
|
-
]
|
|
15
|
-
return baseRoutes
|
|
16
|
-
}
|