feat: 迭代

This commit is contained in:
2026-05-13 17:59:30 +08:00
parent e471b75f59
commit 6eed65baf2
25 changed files with 5224 additions and 1 deletions
+3 -1
View File
@@ -21,7 +21,8 @@ rent-platform/
│ ├── server/ # NestJS 后端 (@rent/server)
│ ├── miniapp/ # uni-app 小程序 (@rent/miniapp)
│ ├── merchant-admin/ # 商家管理后台 (@rent/merchant-admin)
── platform-admin/ # 平台管理后台 (@rent/platform-admin)
── platform-admin/ # 平台管理后台 (@rent/platform-admin)
│ └── official-website/ # Next.js 官网 (@rent/official-website)
├── packages/
│ ├── shared-types/ # 共享类型定义 (@rent/shared-types)
│ ├── shared-utils/ # 共享工具函数 (@rent/shared-utils)
@@ -44,6 +45,7 @@ pnpm dev:server # 启动后端 (localhost:3000)
pnpm dev:miniapp # 启动小程序 (微信开发者工具)
pnpm dev:merchant # 商家后台 (localhost:5173)
pnpm dev:platform # 平台后台 (localhost:5174)
pnpm dev:website # 官网 (localhost:3001)
```
## API 规范
+41
View File
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# env files (can opt-in for committing if needed)
.env*
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
+5
View File
@@ -0,0 +1,5 @@
<!-- BEGIN:nextjs-agent-rules -->
# This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.
<!-- END:nextjs-agent-rules -->
+1
View File
@@ -0,0 +1 @@
@AGENTS.md
+36
View File
@@ -0,0 +1,36 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
+182
View File
@@ -0,0 +1,182 @@
import Link from 'next/link';
export default function About() {
return (
<div className="min-h-screen bg-white">
{/* 导航栏 */}
<header className="fixed top-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-sm border-b border-gray-100">
<nav className="max-w-7xl mx-auto px-6 py-4 flex items-center justify-between">
<Link href="/" className="flex items-center gap-2">
<div className="w-10 h-10 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
<span className="text-white font-bold text-xl"></span>
</div>
<span className="text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">
</span>
</Link>
<div className="hidden md:flex items-center gap-8">
<Link href="/#features" className="text-gray-600 hover:text-gray-900 transition">
</Link>
<Link href="/#services" className="text-gray-600 hover:text-gray-900 transition">
</Link>
<Link href="/about" className="text-gray-900 font-semibold">
</Link>
<Link href="/contact" className="text-gray-600 hover:text-gray-900 transition">
</Link>
</div>
</nav>
</header>
{/* Hero */}
<section className="pt-32 pb-20 px-6 bg-gradient-to-br from-blue-50 to-purple-50">
<div className="max-w-4xl mx-auto text-center">
<h1 className="text-5xl font-bold mb-6"></h1>
<p className="text-xl text-gray-600">
宿
</p>
</div>
</section>
{/* 公司介绍 */}
<section className="py-20 px-6">
<div className="max-w-4xl mx-auto">
<h2 className="text-3xl font-bold mb-8"></h2>
<div className="prose prose-lg max-w-none text-gray-600 space-y-6">
<p>
宿2024C端用户提供便捷的住宿预订服务B端商家提供高效的店铺数字化管理工具
</p>
<p>
宿使宿
</p>
</div>
</div>
</section>
{/* 核心价值观 */}
<section className="py-20 px-6 bg-gray-50">
<div className="max-w-7xl mx-auto">
<h2 className="text-3xl font-bold mb-12 text-center"></h2>
<div className="grid md:grid-cols-3 gap-8">
<div className="bg-white p-8 rounded-2xl shadow-sm">
<div className="w-16 h-16 bg-blue-100 rounded-2xl flex items-center justify-center mb-6">
<span className="text-3xl">🎯</span>
</div>
<h3 className="text-xl font-bold mb-4"></h3>
<p className="text-gray-600">
</p>
</div>
<div className="bg-white p-8 rounded-2xl shadow-sm">
<div className="w-16 h-16 bg-purple-100 rounded-2xl flex items-center justify-center mb-6">
<span className="text-3xl">💡</span>
</div>
<h3 className="text-xl font-bold mb-4"></h3>
<p className="text-gray-600">
</p>
</div>
<div className="bg-white p-8 rounded-2xl shadow-sm">
<div className="w-16 h-16 bg-green-100 rounded-2xl flex items-center justify-center mb-6">
<span className="text-3xl">🤝</span>
</div>
<h3 className="text-xl font-bold mb-4"></h3>
<p className="text-gray-600">
</p>
</div>
</div>
</div>
</section>
{/* 发展历程 */}
<section className="py-20 px-6">
<div className="max-w-4xl mx-auto">
<h2 className="text-3xl font-bold mb-12 text-center"></h2>
<div className="space-y-8">
<div className="flex gap-6">
<div className="flex-shrink-0 w-32 text-right">
<div className="text-2xl font-bold text-blue-600">2024.01</div>
</div>
<div className="flex-1 pb-8 border-l-2 border-gray-200 pl-6">
<h3 className="text-xl font-bold mb-2"></h3>
<p className="text-gray-600"></p>
</div>
</div>
<div className="flex gap-6">
<div className="flex-shrink-0 w-32 text-right">
<div className="text-2xl font-bold text-blue-600">2024.06</div>
</div>
<div className="flex-1 pb-8 border-l-2 border-gray-200 pl-6">
<h3 className="text-xl font-bold mb-2">线</h3>
<p className="text-gray-600">线</p>
</div>
</div>
<div className="flex gap-6">
<div className="flex-shrink-0 w-32 text-right">
<div className="text-2xl font-bold text-blue-600">2024.12</div>
</div>
<div className="flex-1 pb-8 border-l-2 border-gray-200 pl-6">
<h3 className="text-xl font-bold mb-2"></h3>
<p className="text-gray-600">101000</p>
</div>
</div>
<div className="flex gap-6">
<div className="flex-shrink-0 w-32 text-right">
<div className="text-2xl font-bold text-blue-600">2026.05</div>
</div>
<div className="flex-1 pl-6">
<h3 className="text-xl font-bold mb-2"></h3>
<p className="text-gray-600"></p>
</div>
</div>
</div>
</div>
</section>
{/* Footer */}
<footer className="bg-gray-900 text-gray-300 py-12 px-6">
<div className="max-w-7xl mx-auto">
<div className="grid md:grid-cols-4 gap-8 mb-8">
<div>
<div className="flex items-center gap-2 mb-4">
<div className="w-8 h-8 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
<span className="text-white font-bold"></span>
</div>
<span className="text-xl font-bold text-white"></span>
</div>
<p className="text-sm">宿</p>
</div>
<div>
<h4 className="text-white font-bold mb-4"></h4>
<ul className="space-y-2 text-sm">
<li><Link href="/#features" className="hover:text-white transition"></Link></li>
<li><Link href="/#services" className="hover:text-white transition"></Link></li>
</ul>
</div>
<div>
<h4 className="text-white font-bold mb-4"></h4>
<ul className="space-y-2 text-sm">
<li><Link href="/about" className="hover:text-white transition"></Link></li>
<li><Link href="/contact" className="hover:text-white transition"></Link></li>
</ul>
</div>
<div>
<h4 className="text-white font-bold mb-4"></h4>
<ul className="space-y-2 text-sm">
<li><Link href="/privacy" className="hover:text-white transition"></Link></li>
<li><Link href="/terms" className="hover:text-white transition"></Link></li>
</ul>
</div>
</div>
<div className="border-t border-gray-800 pt-8 text-center text-sm">
<p>&copy; 2026 . All rights reserved.</p>
</div>
</div>
</footer>
</div>
);
}
+178
View File
@@ -0,0 +1,178 @@
import Link from 'next/link';
export default function Contact() {
return (
<div className="min-h-screen bg-white">
{/* 导航栏 */}
<header className="fixed top-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-sm border-b border-gray-100">
<nav className="max-w-7xl mx-auto px-6 py-4 flex items-center justify-between">
<Link href="/" className="flex items-center gap-2">
<div className="w-10 h-10 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
<span className="text-white font-bold text-xl"></span>
</div>
<span className="text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">
</span>
</Link>
<div className="hidden md:flex items-center gap-8">
<Link href="/#features" className="text-gray-600 hover:text-gray-900 transition">
</Link>
<Link href="/#services" className="text-gray-600 hover:text-gray-900 transition">
</Link>
<Link href="/about" className="text-gray-600 hover:text-gray-900 transition">
</Link>
<Link href="/contact" className="text-gray-900 font-semibold">
</Link>
</div>
</nav>
</header>
{/* Hero */}
<section className="pt-32 pb-20 px-6 bg-gradient-to-br from-blue-50 to-purple-50">
<div className="max-w-4xl mx-auto text-center">
<h1 className="text-5xl font-bold mb-6"></h1>
<p className="text-xl text-gray-600">
</p>
</div>
</section>
{/* 联系方式 */}
<section className="py-20 px-6">
<div className="max-w-7xl mx-auto">
<div className="grid md:grid-cols-3 gap-8 mb-16">
<div className="text-center p-8 rounded-2xl border border-gray-200 hover:shadow-lg transition">
<div className="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6">
<span className="text-3xl">📞</span>
</div>
<h3 className="text-xl font-bold mb-4">线</h3>
<p className="text-gray-600 mb-2">400-888-8888</p>
<p className="text-sm text-gray-500">9:00-21:00</p>
</div>
<div className="text-center p-8 rounded-2xl border border-gray-200 hover:shadow-lg transition">
<div className="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-6">
<span className="text-3xl"></span>
</div>
<h3 className="text-xl font-bold mb-4"></h3>
<p className="text-gray-600 mb-2">service@pinjuhui.com</p>
<p className="text-sm text-gray-500">24</p>
</div>
<div className="text-center p-8 rounded-2xl border border-gray-200 hover:shadow-lg transition">
<div className="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6">
<span className="text-3xl">💬</span>
</div>
<h3 className="text-xl font-bold mb-4">线</h3>
<p className="text-gray-600 mb-2"></p>
<p className="text-sm text-gray-500">7×24线</p>
</div>
</div>
{/* 留言表单 */}
<div className="max-w-2xl mx-auto">
<div className="bg-gray-50 rounded-2xl p-8">
<h2 className="text-2xl font-bold mb-6 text-center">线</h2>
<form className="space-y-6">
<div>
<label className="block text-sm font-medium text-gray-700 mb-2">
</label>
<input
type="text"
className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"
placeholder="请输入您的姓名"
/>
</div>
<div>
<label className="block text-sm font-medium text-gray-700 mb-2">
</label>
<input
type="text"
className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"
placeholder="请输入手机号或邮箱"
/>
</div>
<div>
<label className="block text-sm font-medium text-gray-700 mb-2">
</label>
<textarea
rows={6}
className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"
placeholder="请输入您的留言内容"
></textarea>
</div>
<button
type="submit"
className="w-full py-4 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-lg font-semibold hover:shadow-lg transition"
>
</button>
</form>
</div>
</div>
</div>
</section>
{/* 公司地址 */}
<section className="py-20 px-6 bg-gray-50">
<div className="max-w-4xl mx-auto text-center">
<h2 className="text-3xl font-bold mb-8"></h2>
<div className="bg-white rounded-2xl p-8 shadow-sm">
<p className="text-xl text-gray-800 mb-4">
·88SOHO现代城
</p>
<p className="text-gray-600">
100022
</p>
</div>
</div>
</section>
{/* Footer */}
<footer className="bg-gray-900 text-gray-300 py-12 px-6">
<div className="max-w-7xl mx-auto">
<div className="grid md:grid-cols-4 gap-8 mb-8">
<div>
<div className="flex items-center gap-2 mb-4">
<div className="w-8 h-8 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
<span className="text-white font-bold"></span>
</div>
<span className="text-xl font-bold text-white"></span>
</div>
<p className="text-sm">宿</p>
</div>
<div>
<h4 className="text-white font-bold mb-4"></h4>
<ul className="space-y-2 text-sm">
<li><Link href="/#features" className="hover:text-white transition"></Link></li>
<li><Link href="/#services" className="hover:text-white transition"></Link></li>
</ul>
</div>
<div>
<h4 className="text-white font-bold mb-4"></h4>
<ul className="space-y-2 text-sm">
<li><Link href="/about" className="hover:text-white transition"></Link></li>
<li><Link href="/contact" className="hover:text-white transition"></Link></li>
</ul>
</div>
<div>
<h4 className="text-white font-bold mb-4"></h4>
<ul className="space-y-2 text-sm">
<li><Link href="/privacy" className="hover:text-white transition"></Link></li>
<li><Link href="/terms" className="hover:text-white transition"></Link></li>
</ul>
</div>
</div>
<div className="border-t border-gray-800 pt-8 text-center text-sm">
<p>&copy; 2026 . All rights reserved.</p>
</div>
</div>
</footer>
</div>
);
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

+26
View File
@@ -0,0 +1,26 @@
@import "tailwindcss";
:root {
--background: #ffffff;
--foreground: #171717;
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}
body {
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}
+33
View File
@@ -0,0 +1,33 @@
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"
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
>
<body className="min-h-full flex flex-col">{children}</body>
</html>
);
}
+266
View File
@@ -0,0 +1,266 @@
import Link from 'next/link';
import Image from 'next/image';
export default function Home() {
return (
<div className="min-h-screen bg-white">
{/* 导航栏 */}
<header className="fixed top-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-sm border-b border-gray-100">
<nav className="max-w-7xl mx-auto px-6 py-4 flex items-center justify-between">
<div className="flex items-center gap-2">
<div className="w-10 h-10 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
<span className="text-white font-bold text-xl"></span>
</div>
<span className="text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">
</span>
</div>
<div className="hidden md:flex items-center gap-8">
<Link href="/#features" className="text-gray-600 hover:text-gray-900 transition">
</Link>
<Link href="/#services" className="text-gray-600 hover:text-gray-900 transition">
</Link>
<Link href="/about" className="text-gray-600 hover:text-gray-900 transition">
</Link>
<Link href="/contact" className="text-gray-600 hover:text-gray-900 transition">
</Link>
</div>
<div className="flex items-center gap-4">
<button className="px-6 py-2 text-gray-600 hover:text-gray-900 transition">
</button>
<button className="px-6 py-2 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-full hover:shadow-lg transition">
</button>
</div>
</nav>
</header>
{/* Hero Section */}
<section className="pt-32 pb-20 px-6">
<div className="max-w-7xl mx-auto">
<div className="grid md:grid-cols-2 gap-12 items-center">
<div>
<h1 className="text-5xl md:text-6xl font-bold leading-tight mb-6">
<span className="bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">
宿
</span>
<br />
<span className="text-gray-900"></span>
</h1>
<p className="text-xl text-gray-600 mb-8 leading-relaxed">
宿
<br />
便宿
</p>
<div className="flex gap-4">
<button className="px-8 py-4 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-full text-lg font-semibold hover:shadow-xl transition">
</button>
<button className="px-8 py-4 border-2 border-gray-300 text-gray-700 rounded-full text-lg font-semibold hover:border-gray-400 transition">
</button>
</div>
</div>
<div className="relative h-[500px] rounded-2xl overflow-hidden shadow-2xl">
<div className="absolute inset-0 bg-gradient-to-br from-blue-500/20 to-purple-600/20"></div>
<div className="absolute inset-0 flex items-center justify-center">
<div className="text-center">
<div className="w-32 h-32 bg-white rounded-3xl shadow-xl flex items-center justify-center mb-4 mx-auto">
<span className="text-6xl">🏨</span>
</div>
<p className="text-gray-600 text-lg"></p>
</div>
</div>
</div>
</div>
</div>
</section>
{/* 数据统计 */}
<section className="py-16 bg-gradient-to-r from-blue-600 to-purple-600">
<div className="max-w-7xl mx-auto px-6">
<div className="grid grid-cols-2 md:grid-cols-4 gap-8 text-center text-white">
<div>
<div className="text-4xl font-bold mb-2">10+</div>
<div className="text-blue-100"></div>
</div>
<div>
<div className="text-4xl font-bold mb-2">50+</div>
<div className="text-blue-100"></div>
</div>
<div>
<div className="text-4xl font-bold mb-2">100+</div>
<div className="text-blue-100"></div>
</div>
<div>
<div className="text-4xl font-bold mb-2">98%</div>
<div className="text-blue-100"></div>
</div>
</div>
</div>
</section>
{/* 产品特色 */}
<section id="features" className="py-20 px-6">
<div className="max-w-7xl mx-auto">
<div className="text-center mb-16">
<h2 className="text-4xl font-bold mb-4"></h2>
<p className="text-xl text-gray-600">宿</p>
</div>
<div className="grid md:grid-cols-3 gap-8">
<div className="p-8 rounded-2xl border border-gray-200 hover:shadow-xl transition">
<div className="w-16 h-16 bg-blue-100 rounded-2xl flex items-center justify-center mb-6">
<span className="text-3xl">🔍</span>
</div>
<h3 className="text-2xl font-bold mb-4"></h3>
<p className="text-gray-600 leading-relaxed">
</p>
</div>
<div className="p-8 rounded-2xl border border-gray-200 hover:shadow-xl transition">
<div className="w-16 h-16 bg-purple-100 rounded-2xl flex items-center justify-center mb-6">
<span className="text-3xl">💰</span>
</div>
<h3 className="text-2xl font-bold mb-4"></h3>
<p className="text-gray-600 leading-relaxed">
</p>
</div>
<div className="p-8 rounded-2xl border border-gray-200 hover:shadow-xl transition">
<div className="w-16 h-16 bg-green-100 rounded-2xl flex items-center justify-center mb-6">
<span className="text-3xl">🛡</span>
</div>
<h3 className="text-2xl font-bold mb-4"></h3>
<p className="text-gray-600 leading-relaxed">
退
</p>
</div>
</div>
</div>
</section>
{/* 服务优势 */}
<section id="services" className="py-20 px-6 bg-gray-50">
<div className="max-w-7xl mx-auto">
<div className="text-center mb-16">
<h2 className="text-4xl font-bold mb-4"></h2>
<p className="text-xl text-gray-600"></p>
</div>
<div className="grid md:grid-cols-2 gap-12 items-center">
<div className="space-y-6">
<div className="flex gap-4">
<div className="w-12 h-12 bg-blue-600 rounded-full flex items-center justify-center flex-shrink-0">
<span className="text-white text-xl"></span>
</div>
<div>
<h3 className="text-xl font-bold mb-2">7×24</h3>
<p className="text-gray-600">线</p>
</div>
</div>
<div className="flex gap-4">
<div className="w-12 h-12 bg-purple-600 rounded-full flex items-center justify-center flex-shrink-0">
<span className="text-white text-xl"></span>
</div>
<div>
<h3 className="text-xl font-bold mb-2"></h3>
<p className="text-gray-600"></p>
</div>
</div>
<div className="flex gap-4">
<div className="w-12 h-12 bg-green-600 rounded-full flex items-center justify-center flex-shrink-0">
<span className="text-white text-xl"></span>
</div>
<div>
<h3 className="text-xl font-bold mb-2">退</h3>
<p className="text-gray-600">退</p>
</div>
</div>
<div className="flex gap-4">
<div className="w-12 h-12 bg-orange-600 rounded-full flex items-center justify-center flex-shrink-0">
<span className="text-white text-xl"></span>
</div>
<div>
<h3 className="text-xl font-bold mb-2"></h3>
<p className="text-gray-600">宿</p>
</div>
</div>
</div>
<div className="relative h-[400px] rounded-2xl overflow-hidden shadow-xl">
<div className="absolute inset-0 bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center">
<div className="text-center text-white">
<div className="text-6xl mb-4">🏆</div>
<div className="text-2xl font-bold"></div>
<div className="text-blue-100 mt-2"></div>
</div>
</div>
</div>
</div>
</div>
</section>
{/* CTA Section */}
<section className="py-20 px-6">
<div className="max-w-4xl mx-auto text-center">
<h2 className="text-4xl font-bold mb-6">宿</h2>
<p className="text-xl text-gray-600 mb-8">
便
</p>
<div className="flex justify-center gap-4">
<button className="px-8 py-4 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-full text-lg font-semibold hover:shadow-xl transition">
</button>
</div>
</div>
</section>
{/* Footer */}
<footer className="bg-gray-900 text-gray-300 py-12 px-6">
<div className="max-w-7xl mx-auto">
<div className="grid md:grid-cols-4 gap-8 mb-8">
<div>
<div className="flex items-center gap-2 mb-4">
<div className="w-8 h-8 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
<span className="text-white font-bold"></span>
</div>
<span className="text-xl font-bold text-white"></span>
</div>
<p className="text-sm">宿</p>
</div>
<div>
<h4 className="text-white font-bold mb-4"></h4>
<ul className="space-y-2 text-sm">
<li><Link href="/#features" className="hover:text-white transition"></Link></li>
<li><Link href="/#services" className="hover:text-white transition"></Link></li>
<li><Link href="/download" className="hover:text-white transition"></Link></li>
</ul>
</div>
<div>
<h4 className="text-white font-bold mb-4"></h4>
<ul className="space-y-2 text-sm">
<li><Link href="/about" className="hover:text-white transition"></Link></li>
<li><Link href="/contact" className="hover:text-white transition"></Link></li>
<li><Link href="/join" className="hover:text-white transition"></Link></li>
</ul>
</div>
<div>
<h4 className="text-white font-bold mb-4"></h4>
<ul className="space-y-2 text-sm">
<li><Link href="/help" className="hover:text-white transition"></Link></li>
<li><Link href="/privacy" className="hover:text-white transition"></Link></li>
<li><Link href="/terms" className="hover:text-white transition"></Link></li>
</ul>
</div>
</div>
<div className="border-t border-gray-800 pt-8 text-center text-sm">
<p>&copy; 2026 . All rights reserved.</p>
</div>
</div>
</footer>
</div>
);
}
+18
View File
@@ -0,0 +1,18 @@
import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
]),
]);
export default eslintConfig;
+11
View File
@@ -0,0 +1,11 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: 'export',
images: {
unoptimized: true,
},
trailingSlash: true,
};
export default nextConfig;
+28
View File
@@ -0,0 +1,28 @@
{
"name": "@rent/official-website",
"version": "1.0.0",
"description": "品居会官网 - 酒店民宿短租预订平台",
"private": true,
"scripts": {
"dev": "next dev -p 3001",
"build": "next build",
"start": "next start -p 3001",
"lint": "eslint",
"export": "next build"
},
"dependencies": {
"next": "16.2.6",
"react": "19.2.4",
"react-dom": "19.2.4"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.2.6",
"tailwindcss": "^4",
"typescript": "^5"
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,3 @@
ignoredBuiltDependencies:
- sharp
- unrs-resolver
+7
View File
@@ -0,0 +1,7 @@
const config = {
plugins: {
"@tailwindcss/postcss": {},
},
};
export default config;
+1
View File
@@ -0,0 +1 @@
<svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 13.5V5.41a1 1 0 0 0-.3-.7L9.8.29A1 1 0 0 0 9.08 0H1.5v13.5A2.5 2.5 0 0 0 4 16h8a2.5 2.5 0 0 0 2.5-2.5m-1.5 0v-7H8v-5H3v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1M9.5 5V2.12L12.38 5zM5.13 5h-.62v1.25h2.12V5zm-.62 3h7.12v1.25H4.5zm.62 3h-.62v1.25h7.12V11z" clip-rule="evenodd" fill="#666" fill-rule="evenodd"/></svg>

After

Width:  |  Height:  |  Size: 391 B

+1
View File
@@ -0,0 +1 @@
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.27 14.1a6.5 6.5 0 0 0 3.67-3.45q-1.24.21-2.7.34-.31 1.83-.97 3.1M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.48-1.52a7 7 0 0 1-.96 0H7.5a4 4 0 0 1-.84-1.32q-.38-.89-.63-2.08a40 40 0 0 0 3.92 0q-.25 1.2-.63 2.08a4 4 0 0 1-.84 1.31zm2.94-4.76q1.66-.15 2.95-.43a7 7 0 0 0 0-2.58q-1.3-.27-2.95-.43a18 18 0 0 1 0 3.44m-1.27-3.54a17 17 0 0 1 0 3.64 39 39 0 0 1-4.3 0 17 17 0 0 1 0-3.64 39 39 0 0 1 4.3 0m1.1-1.17q1.45.13 2.69.34a6.5 6.5 0 0 0-3.67-3.44q.65 1.26.98 3.1M8.48 1.5l.01.02q.41.37.84 1.31.38.89.63 2.08a40 40 0 0 0-3.92 0q.25-1.2.63-2.08a4 4 0 0 1 .85-1.32 7 7 0 0 1 .96 0m-2.75.4a6.5 6.5 0 0 0-3.67 3.44 29 29 0 0 1 2.7-.34q.31-1.83.97-3.1M4.58 6.28q-1.66.16-2.95.43a7 7 0 0 0 0 2.58q1.3.27 2.95.43a18 18 0 0 1 0-3.44m.17 4.71q-1.45-.12-2.69-.34a6.5 6.5 0 0 0 3.67 3.44q-.65-1.27-.98-3.1" fill="#666"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

+1
View File
@@ -0,0 +1 @@
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1155 1000"><path d="m577.3 0 577.4 1000H0z" fill="#fff"/></svg>

After

Width:  |  Height:  |  Size: 128 B

+1
View File
@@ -0,0 +1 @@
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2.5h13v10a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1zM0 1h16v11.5a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 0 12.5zm3.75 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5M7 4.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m1.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5" fill="#666"/></svg>

After

Width:  |  Height:  |  Size: 385 B

+34
View File
@@ -0,0 +1,34 @@
{
"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": "react-jsx",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./*"]
}
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts",
"**/*.mts"
],
"exclude": ["node_modules"]
}
+274
View File
@@ -0,0 +1,274 @@
# 品居会官网需求文档
## 一、项目概述
### 1.1 项目背景
品居会官网是品居会平台的官方门户网站,用于展示平台品牌形象、产品服务、公司信息等内容,是用户了解品居会的第一窗口。
### 1.2 项目目标
- 展示品牌形象,提升品牌知名度
- 介绍产品功能和服务优势
- 引导用户下载小程序,提高转化率
- 提供公司信息和联系方式
### 1.3 技术栈
- **框架**: Next.js 16 (App Router)
- **语言**: TypeScript
- **样式**: Tailwind CSS 4
- **部署**: 静态导出 (Static Export)
- **端口**: 3001
## 二、页面结构
### 2.1 首页 (/)
**功能定位**: 平台核心展示页面,吸引用户了解和使用产品
**页面结构**:
1. **导航栏**
- Logo + 品牌名称
- 导航菜单:产品特色、服务优势、关于我们、联系我们
- 登录/注册按钮
2. **Hero Section**
- 主标题:品质住宿,温馨服务
- 副标题:平台简介
- CTA按钮:下载小程序、了解更多
- 配图/插画
3. **数据统计**
- 优质房源数量:10万+
- 注册用户数:50万+
- 订单量:100万+
- 好评率:98%
4. **产品特色** (#features)
- 智能搜索:支持目的地搜索、地图选点、多维筛选
- 优惠多多:新人专享、限时秒杀、优惠券、会员特权
- 安全保障:实名认证、订单保护、退款保障
5. **服务优势** (#services)
- 7×24小时客服
- 快速响应
- 灵活退改
- 品质保证
6. **CTA Section**
- 引导下载小程序
- 二维码展示
7. **Footer**
- 公司信息
- 产品服务链接
- 关于我们链接
- 帮助中心链接
- 版权信息
### 2.2 关于我们 (/about)
**功能定位**: 展示公司背景、发展历程、企业文化
**页面结构**:
1. **Hero Section**
- 页面标题:关于品居会
- 简短介绍
2. **公司简介**
- 公司成立时间
- 业务范围
- 发展目标
3. **核心价值观**
- 用户至上
- 创新驱动
- 诚信共赢
4. **发展历程**
- 2024.01:公司成立
- 2024.06:平台上线
- 2024.12:快速发展
- 2026.05:持续创新
### 2.3 联系我们 (/contact)
**功能定位**: 提供多种联系方式,方便用户咨询
**页面结构**:
1. **Hero Section**
- 页面标题:联系我们
2. **联系方式**
- 客服热线:400-888-8888
- 电子邮箱:service@pinjuhui.com
- 在线客服:小程序内联系
3. **在线留言表单**
- 姓名
- 联系方式
- 留言内容
- 提交按钮
4. **公司地址**
- 地址:中国·北京市朝阳区建国路88号SOHO现代城
- 邮编:100022
## 三、设计规范
### 3.1 品牌色彩
- **主色调**: 蓝色到紫色渐变 (#667eea#764ba2)
- **辅助色**:
- 蓝色:#3B82F6
- 紫色:#9333EA
- 绿色:#10B981
- 橙色:#F59E0B
- **中性色**:
- 黑色:#111827
- 灰色:#6B7280
- 浅灰:#F3F4F6
- 白色:#FFFFFF
### 3.2 字体规范
- **标题字体**:
- H1: 48px-60px, 粗体
- H2: 36px-48px, 粗体
- H3: 24px-32px, 粗体
- **正文字体**: 16px-20px, 常规
- **辅助文字**: 14px, 常规
### 3.3 间距规范
- **页面边距**: 24px (移动端) / 48px (桌面端)
- **组件间距**: 80px-120px
- **元素间距**: 16px-32px
### 3.4 圆角规范
- **卡片**: 16px-24px
- **按钮**: 9999px (全圆角)
- **图标容器**: 12px-16px
## 四、响应式设计
### 4.1 断点设置
- **移动端**: < 768px
- **平板**: 768px - 1024px
- **桌面端**: > 1024px
### 4.2 适配策略
- 移动端:单列布局,导航栏折叠
- 平板:双列布局,部分内容展开
- 桌面端:多列布局,完整展示
## 五、SEO优化
### 5.1 页面元信息
- **首页**:
- Title: 品居会 - 品质住宿,温馨服务
- Description: 集酒店、民宿、短租、青旅预订于一体的综合性平台,为您提供舒适便捷的住宿体验
- Keywords: 酒店预订,民宿预订,短租,青旅,住宿
- **关于我们**:
- Title: 关于我们 - 品居会
- Description: 品居会是一家专注于酒店民宿短租预订服务的互联网平台
- **联系我们**:
- Title: 联系我们 - 品居会
- Description: 品居会客服热线400-888-88887×24小时为您服务
### 5.2 结构化数据
- 添加 Organization Schema
- 添加 WebSite Schema
- 添加 BreadcrumbList Schema
## 六、性能优化
### 6.1 静态导出
- 使用 Next.js Static Export
- 所有页面预渲染为静态HTML
- 可部署到任何静态托管服务
### 6.2 图片优化
- 使用 WebP 格式
- 懒加载非首屏图片
- 响应式图片
### 6.3 代码优化
- CSS按需加载
- JavaScript代码分割
- 移除未使用的代码
## 七、部署方案
### 7.1 构建命令
```bash
pnpm build
```
### 7.2 输出目录
```
out/
```
### 7.3 部署平台
- Vercel (推荐)
- Netlify
- 阿里云OSS
- 腾讯云COS
- Nginx静态服务器
## 八、开发规范
### 8.1 目录结构
```
apps/official-website/
├── app/ # 页面目录
│ ├── page.tsx # 首页
│ ├── about/ # 关于我们
│ ├── contact/ # 联系我们
│ ├── layout.tsx # 根布局
│ └── globals.css # 全局样式
├── components/ # 组件目录
├── public/ # 静态资源
├── next.config.ts # Next.js配置
├── tailwind.config.ts # Tailwind配置
└── package.json # 依赖配置
```
### 8.2 命名规范
- 组件文件:PascalCase (如 Header.tsx)
- 工具函数:camelCase (如 formatDate.ts)
- 样式文件:kebab-case (如 header.module.css)
### 8.3 代码规范
- 使用 TypeScript 严格模式
- 使用 ESLint 进行代码检查
- 组件使用函数式组件
- 优先使用 Tailwind CSS
## 九、后续扩展
### 9.1 功能扩展
- [ ] 博客/资讯模块
- [ ] 帮助中心/FAQ
- [ ] 商家入驻申请
- [ ] 多语言支持
- [ ] 暗黑模式
### 9.2 内容扩展
- [ ] 用户案例
- [ ] 合作伙伴
- [ ] 媒体报道
- [ ] 招聘信息
## 十、维护计划
### 10.1 内容更新
- 每月更新数据统计
- 每季度更新发展历程
- 及时更新联系方式
### 10.2 技术维护
- 定期更新依赖包
- 监控网站性能
- 修复已知问题
---
**文档版本**: v1.0
**创建日期**: 2026-05-13
**维护团队**: 品居会开发团队
+2
View File
@@ -9,10 +9,12 @@
"dev:miniapp": "pnpm --filter @rent/miniapp dev:mp-weixin",
"dev:merchant": "pnpm --filter @rent/merchant-admin dev",
"dev:platform": "pnpm --filter @rent/platform-admin dev",
"dev:website": "pnpm --filter @rent/official-website dev",
"build:server": "pnpm --filter @rent/server build",
"build:miniapp": "pnpm --filter @rent/miniapp build",
"build:merchant": "pnpm --filter @rent/merchant-admin build",
"build:platform": "pnpm --filter @rent/platform-admin build",
"build:website": "pnpm --filter @rent/official-website build",
"db:init": "pnpm --filter @rent/server exec node ../../database/init.js",
"db:migrate": "node database/migrate.js",
"lint": "pnpm -r run lint",