A Next.js 14 website for displaying Chrome extension privacy policies with multi-language support.
- 🌐 Multi-language support (Chinese & English)
- 📱 Responsive design
- 🔍 Search functionality
- 📄 Markdown-based content management
- 🚀 Static site generation
- ♿ Accessibility-focused
- 🎨 Modern UI with Tailwind CSS and Shadcn/ui
- Node.js 18+
- npm or yarn
- Install dependencies:
npm install- Run the development server:
npm run dev- Open http://localhost:3000 in your browser.
PPweb/
├── mdfile/ # Markdown files for privacy policies
│ ├── Authenticator/ # Plugin name directory
│ │ ├── 隐私权政策.md # Chinese privacy policy
│ │ └── Privacy-Policy.md # English privacy policy
│ └── [other-plugins]/
├── src/
│ ├── app/ # Next.js App Router
│ │ ├── [locale]/ # Internationalized routes
│ │ │ ├── page.tsx # Homepage
│ │ │ └── [plugin]/ # Dynamic plugin routes
│ │ │ └── page.tsx # Plugin detail page
│ │ ├── sitemap.ts # SEO sitemap
│ │ └── robots.ts # SEO robots.txt
│ ├── components/ # React components
│ │ ├── ui/ # Shadcn/ui components
│ │ ├── LanguageSwitch.tsx # Language toggle
│ │ ├── PluginCard.tsx # Plugin display card
│ │ ├── MarkdownViewer.tsx # Markdown renderer
│ │ └── Navigation.tsx # Site navigation
│ ├── lib/ # Utility functions
│ │ ├── markdown.ts # Markdown processing
│ │ ├── plugins.ts # Plugin data handling
│ │ └── utils.ts # General utilities
│ └── i18n/ # Internationalization
│ ├── locales/ # Translation files
│ └── config.ts # i18n configuration
├── public/ # Static assets
└── middleware.ts # Next.js middleware for i18n
- Create a new directory in
mdfile/with your plugin name - Add two markdown files:
隐私权政策.md(Chinese version)Privacy-Policy.md(English version)
- The plugin will automatically appear on the homepage
- Push your code to GitHub
- Connect your repository to Vercel
- Deploy automatically
npm run build
npm run start- Framework: Next.js 14 with App Router
- Styling: Tailwind CSS + Shadcn/ui
- Internationalization: next-intl
- Markdown: next-mdx-remote
- TypeScript: Full type safety
- Deployment: Vercel-ready
This project is licensed under the MIT License.