Refactor code structure for improved readability and maintainability
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
+53
-1
@@ -1 +1,53 @@
|
||||
@import "tailwindcss";
|
||||
@import "tailwindcss";
|
||||
|
||||
@theme {
|
||||
--font-sans: var(--font-tiktok), sans-serif;
|
||||
--font-mono: var(--font-mono), monospace;
|
||||
--font-mono-2: var(--font-mono-2), monospace;
|
||||
|
||||
--color-l1: rgba(0, 0, 0, 1);
|
||||
--color-l2: rgba(54, 54, 48, 0.6);
|
||||
--color-l3: rgba(54, 54, 48, 0.32);
|
||||
--color-line: rgba(54, 54, 48, 0.1);
|
||||
--color-b1: rgb(251, 250, 244);
|
||||
--color-be: #efede7;
|
||||
--color-selection: #c0fe04;
|
||||
}
|
||||
|
||||
:root {
|
||||
--bg-color: rgb(251, 250, 244);
|
||||
--text-color: rgba(0, 0, 0, 1);
|
||||
--grid-dot: rgba(54, 54, 48, 0.1);
|
||||
--selection-bg: #c0fe04;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
background-color: var(--bg-color);
|
||||
color: var(--text-color);
|
||||
font-family: var(--font-sans);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background-color: var(--selection-bg);
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* 核心:点阵网格背景 */
|
||||
.bg-dot-grid {
|
||||
background-size: 24px 24px;
|
||||
background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
|
||||
}
|
||||
|
||||
.no-scrollbar {
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
.no-scrollbar::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
+30
-15
@@ -1,29 +1,44 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import localFont from "next/font/local";
|
||||
import "./globals.css";
|
||||
import SmoothScroller from "@/components/dom/SmoothScroller";
|
||||
import Header from "@/components/dom/Header";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
subsets: ["latin"],
|
||||
const tiktokSans = localFont({
|
||||
src: "./fonts/TikTokSans.ttf",
|
||||
variable: "--font-tiktok",
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
subsets: ["latin"],
|
||||
const geistMono = localFont({
|
||||
src: "./fonts/GeistMono[wght].ttf",
|
||||
variable: "--font-mono",
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
const departureMono = localFont({
|
||||
src: "./fonts/DepartureMono-Regular.otf",
|
||||
variable: "--font-mono-2",
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
title: "HAOQI©2026 - Clone",
|
||||
description: "Digital Product Designer & Builder © 2026",
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: LayoutProps<"/">) {
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html
|
||||
lang="en"
|
||||
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
||||
>
|
||||
<body className="min-h-full flex flex-col">{children}</body>
|
||||
<html lang="en" className={`${tiktokSans.variable} ${geistMono.variable} ${departureMono.variable}`}>
|
||||
<body className="bg-dot-grid min-h-screen">
|
||||
<SmoothScroller />
|
||||
<Header />
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
+30
-5
@@ -1,9 +1,34 @@
|
||||
import Image from "next/image";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<main className="w-full h-full overflow-y-auto overscroll-contain no-scrollbar">
|
||||
<div>
|
||||
{/* Hero Section */}
|
||||
<div className="grid grid-cols-12 grid-rows-[auto_1fr] px-4 lg:px-14 py-18 lg:py-24 w-full h-dvh lg:h-screen">
|
||||
<div className="flex flex-col order-2 lg:order-1 lg:grid lg:grid-cols-12 col-span-12 font-mono text-base">
|
||||
<span className="hidden lg:block lg:col-span-3 xl:col-span-2 lg:col-start-1 xl:col-start-1 p-2 font-sans font-medium text-[4svw] sm:text-2xl lg:text-3xl leading-tight">
|
||||
Design &<br />Engineering
|
||||
</span>
|
||||
<span className="hidden lg:block lg:col-span-3 xl:col-span-2 lg:col-start-4 xl:col-start-5 p-2 text-balance">
|
||||
Thinking in systems. Designing with care.
|
||||
</span>
|
||||
<span className="col-span-12 lg:col-span-6 xl:col-span-4 lg:col-start-7 xl:col-start-9 mt-auto lg:mt-0 p-2">
|
||||
I'm Haoqi Wen, leading Design Engineering and AI exploration at
|
||||
<span className="inline-flex items-baseline gap-[0.12em] mx-[0.06em] align-baseline cursor-pointer select-text mx-1">
|
||||
■■■■■■
|
||||
</span>
|
||||
, engineering, and AI at scale. Outside work, I build design tools for team efficiency.
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
className="flex flex-col self-end order-1 lg:order-2 col-span-12 px-2 font-bold text-[7.2svw] lg:text-[6svw] 2xl:text-[5svw] xl:text-[5.6svw] uppercase leading-none"
|
||||
style={{ fontVariationSettings: '"wdth" 120' }}
|
||||
>
|
||||
<span>I bring</span>
|
||||
<span>craft & taste</span>
|
||||
<span>to digital work</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user