初始化 assetx 项目,首次提交

This commit is contained in:
2026-01-26 17:44:27 +08:00
commit f901590dce
492 changed files with 25203 additions and 0 deletions

53
app/globals.css Normal file
View File

@@ -0,0 +1,53 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--background: #f9fafb;
--foreground: #111827;
--font-inter: 'Inter', sans-serif;
--font-jetbrains: 'JetBrains Mono', monospace;
}
.dark {
--background: #111827;
--foreground: #f9fafb;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-inter);
-webkit-font-smoothing: antialiased;
color: var(--foreground);
background: var(--background);
}
a,
button,
input,
select,
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0;
border: none;
text-decoration: none;
background: none;
}
menu,
ol,
ul {
list-style-type: none;
margin: 0;
padding: 0;
}

35
app/layout.tsx Normal file
View File

@@ -0,0 +1,35 @@
import type { Metadata } from "next";
import { Inter, JetBrains_Mono } from "next/font/google";
import "./globals.css";
import { AppProvider } from "@/contexts/AppContext";
const inter = Inter({
subsets: ["latin"],
weight: ["400", "500", "700", "800"],
variable: "--font-inter",
});
const jetbrainsMono = JetBrains_Mono({
subsets: ["latin"],
weight: ["500", "700", "800"],
variable: "--font-jetbrains",
});
export const metadata: Metadata = {
title: "AssetX Dashboard",
description: "DeFi Asset Management Platform",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body className={`${inter.variable} ${jetbrainsMono.variable} ${inter.className}`}>
<AppProvider>{children}</AppProvider>
</body>
</html>
);
}

18
app/page.tsx Normal file
View File

@@ -0,0 +1,18 @@
import Sidebar from "@/components/Sidebar";
import TopBar from "@/components/TopBar";
import ContentSection from "@/components/ContentSection";
export default function Home() {
return (
<div className="min-h-screen bg-bg-subtle dark:bg-gray-900">
<Sidebar />
<main className="ml-[222px] p-8 flex flex-col gap-8">
{/* Top Navigation Bar */}
<TopBar />
{/* Tab Navigation and Content */}
<ContentSection />
</main>
</div>
);
}