Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba13dd59bf | ||
|
|
c69d20a162 | ||
|
|
f132a6b1a6 |
@@ -35,7 +35,7 @@ export function ParticleBackground() {
|
|||||||
outModes: { default: "bounce" },
|
outModes: { default: "bounce" },
|
||||||
speed: 0.3,
|
speed: 0.3,
|
||||||
},
|
},
|
||||||
number: { density: { enable: true, area: 800 }, value: 50 },
|
number: { density: { enable: true, width: 800, height: 800 }, value: 50 },
|
||||||
opacity: { value: { min: 0.1, max: 0.4 } },
|
opacity: { value: { min: 0.1, max: 0.4 } },
|
||||||
shape: { type: "circle" },
|
shape: { type: "circle" },
|
||||||
size: { value: { min: 0.5, max: 2 } },
|
size: { value: { min: 0.5, max: 2 } },
|
||||||
|
|||||||
@@ -35,9 +35,8 @@
|
|||||||
@theme inline {
|
@theme inline {
|
||||||
--color-background: var(--background);
|
--color-background: var(--background);
|
||||||
--color-foreground: var(--foreground);
|
--color-foreground: var(--foreground);
|
||||||
--font-sans: var(--font-noto-sans-sc), var(--font-geist-sans), system-ui,
|
--font-sans: "Noto Sans SC Variable", "Geist Variable", system-ui, sans-serif;
|
||||||
sans-serif;
|
--font-mono: "Geist Mono Variable", monospace;
|
||||||
--font-mono: var(--font-geist-mono);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|||||||
@@ -1,25 +1,11 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { Geist, Geist_Mono, Noto_Sans_SC } from "next/font/google";
|
import "@fontsource-variable/geist";
|
||||||
|
import "@fontsource-variable/geist-mono";
|
||||||
|
import "@fontsource-variable/noto-sans-sc";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import { ThemeProvider } from "./providers/ThemeProvider";
|
import { ThemeProvider } from "./providers/ThemeProvider";
|
||||||
import { themeInitScript } from "./theme-init";
|
import { themeInitScript } from "./theme-init";
|
||||||
|
|
||||||
const geistSans = Geist({
|
|
||||||
variable: "--font-geist-sans",
|
|
||||||
subsets: ["latin"],
|
|
||||||
});
|
|
||||||
|
|
||||||
const geistMono = Geist_Mono({
|
|
||||||
variable: "--font-geist-mono",
|
|
||||||
subsets: ["latin"],
|
|
||||||
});
|
|
||||||
|
|
||||||
const notoSansSC = Noto_Sans_SC({
|
|
||||||
variable: "--font-noto-sans-sc",
|
|
||||||
subsets: ["latin"],
|
|
||||||
weight: ["400", "500", "600", "700"],
|
|
||||||
});
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "数字游民实战课 | 从朝九晚五到边旅行边赚钱",
|
title: "数字游民实战课 | 从朝九晚五到边旅行边赚钱",
|
||||||
description:
|
description:
|
||||||
@@ -35,7 +21,7 @@ export default function RootLayout({
|
|||||||
return (
|
return (
|
||||||
<html lang="zh-CN" suppressHydrationWarning>
|
<html lang="zh-CN" suppressHydrationWarning>
|
||||||
<body
|
<body
|
||||||
className={`${geistSans.variable} ${geistMono.variable} ${notoSansSC.variable} antialiased font-sans`}
|
className="antialiased font-sans"
|
||||||
>
|
>
|
||||||
<script
|
<script
|
||||||
dangerouslySetInnerHTML={{ __html: themeInitScript }}
|
dangerouslySetInnerHTML={{ __html: themeInitScript }}
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
"pocketbase": "^0.26.8",
|
"pocketbase": "^0.26.8",
|
||||||
"react": "19.2.3",
|
"react": "19.2.3",
|
||||||
"react-dom": "19.2.3",
|
"react-dom": "19.2.3",
|
||||||
|
"@fontsource-variable/geist": "^5.2.8",
|
||||||
|
"@fontsource-variable/geist-mono": "^5.2.7",
|
||||||
|
"@fontsource-variable/noto-sans-sc": "^5.2.9",
|
||||||
"@tsparticles/engine": "^3.0.2",
|
"@tsparticles/engine": "^3.0.2",
|
||||||
"@tsparticles/react": "^3.0.0",
|
"@tsparticles/react": "^3.0.0",
|
||||||
"@tsparticles/slim": "^3.9.1",
|
"@tsparticles/slim": "^3.9.1",
|
||||||
|
|||||||
24
pnpm-lock.yaml
generated
24
pnpm-lock.yaml
generated
@@ -8,6 +8,15 @@ importers:
|
|||||||
|
|
||||||
.:
|
.:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
'@fontsource-variable/geist':
|
||||||
|
specifier: ^5.2.8
|
||||||
|
version: 5.2.8
|
||||||
|
'@fontsource-variable/geist-mono':
|
||||||
|
specifier: ^5.2.7
|
||||||
|
version: 5.2.7
|
||||||
|
'@fontsource-variable/noto-sans-sc':
|
||||||
|
specifier: ^5.2.9
|
||||||
|
version: 5.2.10
|
||||||
'@tailwindcss/typography':
|
'@tailwindcss/typography':
|
||||||
specifier: ^0.5.19
|
specifier: ^0.5.19
|
||||||
version: 0.5.19(tailwindcss@4.2.1)
|
version: 0.5.19(tailwindcss@4.2.1)
|
||||||
@@ -214,6 +223,15 @@ packages:
|
|||||||
resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}
|
resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
|
|
||||||
|
'@fontsource-variable/geist-mono@5.2.7':
|
||||||
|
resolution: {integrity: sha512-ZKlZ5sjtalb2TwXKs400mAGDlt/+2ENLNySPx0wTz3bP3mWARCsUW+rpxzZc7e05d2qGch70pItt3K4qttbIYA==}
|
||||||
|
|
||||||
|
'@fontsource-variable/geist@5.2.8':
|
||||||
|
resolution: {integrity: sha512-cJ6m9e+8MQ5dCYJsLylfZrgBh6KkG4bOLckB35Tr9J/EqdkEM6QllH5PxqP1dhTvFup+HtMRPuz9xOjxXJggxw==}
|
||||||
|
|
||||||
|
'@fontsource-variable/noto-sans-sc@5.2.10':
|
||||||
|
resolution: {integrity: sha512-zdk10i5HrDQTXI7ldD61zToX1fsgig8vDTsu7zB48SXOitWfuX0e5viZAwnkHuhwh096PU6X6i1AyAsbBCISpA==}
|
||||||
|
|
||||||
'@humanfs/core@0.19.1':
|
'@humanfs/core@0.19.1':
|
||||||
resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
|
resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
|
||||||
engines: {node: '>=18.18.0'}
|
engines: {node: '>=18.18.0'}
|
||||||
@@ -2978,6 +2996,12 @@ snapshots:
|
|||||||
'@eslint/core': 0.17.0
|
'@eslint/core': 0.17.0
|
||||||
levn: 0.4.1
|
levn: 0.4.1
|
||||||
|
|
||||||
|
'@fontsource-variable/geist-mono@5.2.7': {}
|
||||||
|
|
||||||
|
'@fontsource-variable/geist@5.2.8': {}
|
||||||
|
|
||||||
|
'@fontsource-variable/noto-sans-sc@5.2.10': {}
|
||||||
|
|
||||||
'@humanfs/core@0.19.1': {}
|
'@humanfs/core@0.19.1': {}
|
||||||
|
|
||||||
'@humanfs/node@0.16.7':
|
'@humanfs/node@0.16.7':
|
||||||
|
|||||||
Reference in New Issue
Block a user