feat: 添加连锁门店系统首页及核心UI组件

新增首页布局、导航栏、页脚及多个核心UI组件(按钮、卡片、表格等)
添加图片资源、工具函数和样式配置
实现响应式设计和主题支持
包含行业解决方案展示区块
This commit is contained in:
JanYork
2026-03-18 10:50:42 +08:00
commit 6a68a96287
110 changed files with 12842 additions and 0 deletions

170
app/globals.css Normal file
View File

@@ -0,0 +1,170 @@
@import 'tailwindcss';
@import 'tw-animate-css';
@custom-variant dark (&:is(.dark *));
:root {
/* 企业深蓝主题 — #1B5CE6 */
--background: oklch(1 0 0);
--foreground: oklch(0.18 0.025 260);
--card: oklch(1 0 0);
--card-foreground: oklch(0.18 0.025 260);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.18 0.025 260);
/* #1B5CE6 → oklch(0.46 0.22 264) */
--primary: oklch(0.46 0.22 264);
--primary-foreground: oklch(1 0 0);
--primary-dark: oklch(0.36 0.20 264);
--primary-light: oklch(0.95 0.04 264);
--primary-glow: oklch(0.46 0.22 264 / 0.18);
/* 辅助中性 */
--secondary: oklch(0.96 0.008 260);
--secondary-foreground: oklch(0.18 0.025 260);
--muted: oklch(0.96 0.008 260);
--muted-foreground: oklch(0.50 0.018 260);
--accent: oklch(0.95 0.04 264);
--accent-foreground: oklch(0.36 0.20 264);
--destructive: oklch(0.577 0.245 27.325);
--destructive-foreground: oklch(1 0 0);
--border: oklch(0.91 0.012 260);
--input: oklch(0.91 0.012 260);
--ring: oklch(0.46 0.22 264);
--radius: 0.5rem;
/* 深色背景用 */
--surface-dark: oklch(0.13 0.04 264);
--surface-dark-2: oklch(0.17 0.035 264);
--sidebar: oklch(0.97 0.006 260);
--sidebar-foreground: oklch(0.18 0.025 260);
--sidebar-primary: oklch(0.46 0.22 264);
--sidebar-primary-foreground: oklch(1 0 0);
--sidebar-accent: oklch(0.95 0.04 264);
--sidebar-accent-foreground: oklch(0.36 0.20 264);
--sidebar-border: oklch(0.91 0.012 260);
--sidebar-ring: oklch(0.46 0.22 264);
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.145 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.145 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.985 0 0);
--primary-foreground: oklch(0.205 0 0);
--secondary: oklch(0.269 0 0);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.396 0.141 25.723);
--destructive-foreground: oklch(0.637 0.237 25.331);
--border: oklch(0.269 0 0);
--input: oklch(0.269 0 0);
--ring: oklch(0.439 0 0);
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(0.269 0 0);
--sidebar-ring: oklch(0.439 0 0);
}
@theme inline {
--font-sans: var(--font-inter), 'Inter', sans-serif;
--font-mono: 'Geist Mono', 'Geist Mono Fallback';
--color-primary-dark: var(--primary-dark);
--color-primary-light: var(--primary-light);
--color-primary-glow: var(--primary-glow);
--color-surface-dark: var(--surface-dark);
--color-surface-dark-2: var(--surface-dark-2);
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
html {
scroll-behavior: smooth;
}
body {
@apply bg-background text-foreground;
overflow-x: hidden;
}
}
@layer components {
.section-panel {
min-height: 100svh;
scroll-snap-align: start;
scroll-snap-stop: always;
position: relative;
display: flex;
align-items: center;
padding-block: clamp(5.5rem, 8vh, 7rem) clamp(2.5rem, 4vh, 4rem);
}
}
@media (min-width: 1024px) {
html {
scroll-snap-type: y mandatory;
scroll-padding-top: 0;
}
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
scroll-snap-type: none;
}
}

37
app/layout.tsx Normal file
View File

@@ -0,0 +1,37 @@
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import { Analytics } from '@vercel/analytics/next'
import './globals.css'
const inter = Inter({
subsets: ['latin'],
variable: '--font-inter',
display: 'swap',
})
export const metadata: Metadata = {
title: '连锁门店收银、分账、监管系统 | 智店软件',
description: '面向连锁餐饮、零售与加盟品牌,提供门店收银、自动分账、总部监管一体化系统定制与升级服务。兼容现有设备与流程,支持不停业切换。',
keywords: '连锁门店系统, 收银系统, 自动分账系统, 总部监管系统, 加盟门店结算, 门店数字化, 智店软件',
authors: [{ name: '智店软件' }],
openGraph: {
title: '连锁门店收银、分账、监管系统 | 智店软件',
description: '为连锁餐饮、零售与加盟品牌提供门店收银、自动分账、总部监管一体化系统定制与升级服务。',
type: 'website',
},
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html lang="zh-CN">
<body className={`${inter.variable} font-sans antialiased`}>
{children}
<Analytics />
</body>
</html>
)
}

27
app/page.tsx Normal file
View File

@@ -0,0 +1,27 @@
import { Navbar } from "@/components/navbar"
import { Footer } from "@/components/footer"
import { HeroSection } from "@/components/sections/hero-section"
import { ProductsSection } from "@/components/sections/products-section"
import { AdvantagesSection } from "@/components/sections/advantages-section"
import { SolutionsSection } from "@/components/sections/solutions-section"
import { ProcessSection } from "@/components/sections/process-section"
import { CasesSection } from "@/components/sections/cases-section"
import { ContactSection } from "@/components/sections/contact-section"
export default function Home() {
return (
<div className="min-h-screen bg-background text-foreground">
<Navbar />
<main>
<HeroSection />
<ProductsSection />
<AdvantagesSection />
<SolutionsSection />
<ProcessSection />
<CasesSection />
<ContactSection />
</main>
<Footer />
</div>
)
}