Skip to content

Commit ad838eb

Browse files
committed
feat: add GitHub Pages website with React, TypeScript, and TailwindCSS
Single-page marketing site for YMind with i18n (EN/CN), featuring sections for layout showcase, animation demo, theme preview, and platform downloads. Includes GitHub Actions workflow for deployment.
1 parent bce6bd8 commit ad838eb

26 files changed

Lines changed: 3877 additions & 1 deletion

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ on:
77
- '**.md'
88
- 'LICENSE'
99
- '.gitignore'
10+
- 'website/**'
1011
pull_request:
1112
branches: [master]
1213
paths-ignore:
1314
- '**.md'
1415
- 'LICENSE'
1516
- '.gitignore'
17+
- 'website/**'
1618

1719
env:
1820
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

.github/workflows/website.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy Website
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- 'website/**'
8+
- 'img/**'
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
concurrency:
17+
group: pages
18+
cancel-in-progress: true
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v5
25+
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: 20
29+
cache: npm
30+
cache-dependency-path: website/package-lock.json
31+
32+
- name: Install dependencies
33+
run: cd website && npm ci
34+
35+
- name: Build
36+
run: cd website && npm run build
37+
38+
- name: Copy images
39+
run: cp -r img/ website/dist/img/
40+
41+
- uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: website/dist
44+
45+
deploy:
46+
needs: build
47+
runs-on: ubuntu-latest
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
steps:
52+
- id: deployment
53+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ deploy/
88
out/
99
templates/
1010
CLAUDE.md
11-
*.bat
11+
*.bat
12+
website/node_modules/
13+
website/dist/

website/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta name="description" content="YMind — A beautiful desktop mind map editor with auto-layout algorithms and smooth animations." />
7+
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🧠</text></svg>" />
8+
<title>YMind — Desktop Mind Map Editor</title>
9+
</head>
10+
<body class="bg-white text-slate-900 antialiased">
11+
<div id="root"></div>
12+
<script type="module" src="/src/main.tsx"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)