Commit 383ab0f1 authored by 健杭 徐's avatar 健杭 徐
Browse files

已删除 myproject/chatroom/Dockerfile, myproject/chatroom/docker-compose.yml,...

已删除 myproject/chatroom/Dockerfile, myproject/chatroom/docker-compose.yml, myproject/chatroom/go.mod, myproject/chatroom/go.sum, myproject/chatroom/main.go, myproject/my-app/src/app/ChatRoom/ChatRoom.module.css, myproject/my-app/src/app/ChatRoom/page.tsx, myproject/my-app/src/app/Register/Register.module.css, myproject/my-app/src/app/Register/page.tsx, myproject/my-app/src/app/SetName/SetName.module.css, myproject/my-app/src/app/SetName/page.tsx, myproject/my-app/src/app/public/1 (3).jpg, myproject/my-app/src/app/public/20210920000906_53764.png, myproject/my-app/src/app/public/SetbackGround.jpg, myproject/my-app/src/app/public/backGround.jpg, myproject/my-app/src/app/favicon.ico, myproject/my-app/src/app/globals.css, myproject/my-app/src/app/layout.tsx, myproject/my-app/src/app/page.module.css, myproject/my-app/src/app/page.tsx, myproject/my-app/.gitignore, myproject/my-app/Dockerfile, myproject/my-app/README.md, myproject/my-app/next.config.ts, myproject/my-app/package-lock.json, myproject/my-app/package.json, myproject/my-app/tsconfig.json, myproject/README.md, myproject/package-lock.json
parent 78c35070
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable}`}>
{children}
</body>
</html>
);
}
:root {
/* 字体家族 */
--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol', 'Noto Color Emoji';
/* 字体大小 */
--font-size-base: 13px;
--font-size-sm: 12px;
/* 字体粗细 */
--font-weight-normal: 400;
--font-weight-medium: 500;
/* 行高 */
--line-height-title: 1.5;
--line-height-body: 1.4;
/* 颜色变量 - 基础灰色 */
--gray1: hsl(0, 0%, 99%);
--gray2: hsl(0, 0%, 97.3%);
--gray3: hsl(0, 0%, 95.1%);
--gray4: hsl(0, 0%, 93%);
--gray5: hsl(0, 0%, 90.9%);
--gray6: hsl(0, 0%, 88.7%);
--gray7: hsl(0, 0%, 85.8%);
--gray8: hsl(0, 0%, 78%);
--gray9: hsl(0, 0%, 56.1%);
--gray10: hsl(0, 0%, 52.3%);
--gray11: hsl(0, 0%, 43.5%);
--gray12: hsl(0, 0%, 9%);
/* 主题颜色 */
--normal-text: var(--gray12);
--success-text: hsl(140, 100%, 27%);
}
/* 全局字体应用 */
body {
font-family: var(--font-family);
font-size: var(--font-size-base);
line-height: var(--line-height-body);
font-weight: var(--font-weight-normal);
color: var(--normal-text);
}
/* 标题样式 */
h1, h2, h3, h4, h5, h6,
.title {
font-weight: var(--font-weight-medium);
line-height: var(--line-height-title);
}
/* 辅助样式类 */
.text-sm {
font-size: var(--font-size-sm);
}
.text-medium {
font-weight: var(--font-weight-medium);
}
.text-success {
color: var(--success-text);
}
/* 响应式字体大小(可选) */
@media (max-width: 600px) {
:root {
--font-size-base: 12px;
--font-size-sm: 11px;
}
}
\ No newline at end of file
'use client';
import { useEffect } from 'react';
import { useRouter } from 'next/navigation';
import "./globals.css";
export default function Page() {
const router = useRouter();
useEffect(() => {
router.replace('/SetName');
}, [router]);
return null;
}
\ No newline at end of file
{
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
{
"name": "myproject",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment