Skip to content

Commit 1e6b9e1

Browse files
committed
Migrate to Astro with shared components and GitHub Pages deploy
- Initialize Astro project with @astrojs/tailwind integration - Shared components: BaseLayout, Navbar, Footer, PhoneMockup - Real Tailwind CSS (not CDN): brand colors, Arcane Nine font, all styles shared - All pages converted to .astro with proper component usage - Static assets moved to public/ - GitHub Pages deploy workflow via withastro/action - Add .gitignore (node_modules, dist, .astro) - Old static HTML files removed
1 parent a3f8baf commit 1e6b9e1

40 files changed

Lines changed: 7772 additions & 1067 deletions

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy to GitHub Pages
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+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- name: Install, build, and upload
24+
uses: withastro/action@v3
25+
26+
deploy:
27+
needs: build
28+
runs-on: ubuntu-latest
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
32+
steps:
33+
- name: Deploy to GitHub Pages
34+
id: deployment
35+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
dist/
3+
.astro/
4+
.env
5+
.env.*
6+
!.env.example

404.html

Lines changed: 0 additions & 41 deletions
This file was deleted.

astro.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from 'astro/config';
2+
import tailwind from '@astrojs/tailwind';
3+
4+
export default defineConfig({
5+
site: 'https://commit451.com',
6+
integrations: [tailwind()],
7+
output: 'static',
8+
});

blog/index.html

Lines changed: 0 additions & 156 deletions
This file was deleted.

0 commit comments

Comments
 (0)