Skip to content

Commit 24ae4f6

Browse files
committed
Deploy landing page to GitHub Pages
1 parent fe06a99 commit 24ae4f6

5 files changed

Lines changed: 78 additions & 1 deletion

File tree

.github/workflows/pages.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy Website
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
submodules: recursive
24+
25+
- uses: pnpm/action-setup@v4
26+
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: pnpm
31+
32+
- uses: actions/configure-pages@v5
33+
34+
- run: pnpm install --frozen-lockfile
35+
36+
- run: pnpm build
37+
38+
- uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: dist
41+
42+
deploy:
43+
needs: build
44+
runs-on: ubuntu-latest
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
steps:
49+
- id: deployment
50+
uses: actions/deploy-pages@v4

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
---
2424

2525
<p align="center">
26+
<a href="https://code.lovstudio.ai/">Website</a> •
2627
<a href="#release-highlights">Updates</a> •
2728
<a href="#features">Features</a> •
2829
<a href="#oh-my-lovcode">oh-my-lovcode</a> •

index.html

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,27 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/lovcode.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Lovcode</title>
7+
<title>Lovcode - I came, I saw, I conquered</title>
8+
<meta
9+
name="description"
10+
content="Lovcode is a campaign command table for Claude Code, Codex, and terminal sessions."
11+
/>
12+
<link rel="canonical" href="https://code.lovstudio.ai/" />
13+
<meta property="og:type" content="website" />
14+
<meta property="og:url" content="https://code.lovstudio.ai/" />
15+
<meta property="og:title" content="Lovcode - I came, I saw, I conquered" />
16+
<meta
17+
property="og:description"
18+
content="Campaign command table for Claude Code, Codex, and terminal sessions."
19+
/>
20+
<meta property="og:image" content="https://code.lovstudio.ai/logo.png" />
21+
<meta name="twitter:card" content="summary_large_image" />
22+
<meta name="twitter:title" content="Lovcode - I came, I saw, I conquered" />
23+
<meta
24+
name="twitter:description"
25+
content="Campaign command table for Claude Code, Codex, and terminal sessions."
26+
/>
27+
<meta name="twitter:image" content="https://code.lovstudio.ai/logo.png" />
828
<style>
929
/* Splash screen — paints on the very first frame, before React mounts.
1030
Removed by main.tsx once <RouterProvider> renders. */
@@ -77,6 +97,10 @@
7797
// app shell and the beige background would paint a giant block.
7898
(function () {
7999
var hash = location.hash || "";
100+
if (location.hostname === "code.lovstudio.ai" && (!hash || hash === "#" || hash === "#/")) {
101+
location.replace("/#/landing");
102+
return;
103+
}
80104
if (hash.indexOf("/search-overlay") !== -1 || hash.indexOf("/prompt-detail") !== -1 || hash.indexOf("/landing") !== -1) {
81105
var s = document.getElementById("splash");
82106
if (s) s.remove();

public/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
code.lovstudio.ai

0 commit comments

Comments
 (0)