Skip to content

Commit

Permalink
Redesign website from the ground up (#3)
Browse files Browse the repository at this point in the history
* It works... I guess?

* design :)

* cross my fingers and hope that github actions works

* fix a little

* feat: fix workflow two

* feat: fix three?

* navbar

* ykw I think it's ready to PR

* Update README.md

* Update CNAME

* Update astro.config.mjs

* Update .gitignore

* Fix WIP #1

* Final Gitignore update
  • Loading branch information
worldwidepixel authored Sep 10, 2024
1 parent c6b9342 commit 8852ecb
Show file tree
Hide file tree
Showing 22 changed files with 4,069 additions and 135 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy to GitHub Pages

on:
push:
branches: [master]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v2
with:
node-version: 20
package-manager: pnpm@latest

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
31 changes: 30 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
/.idea
# build output
dist/*

# generated types
.astro/*

# dependencies
node_modules/*

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/*

# visual studio code
.vscode/*

# dev stuff
legacy/*
12 changes: 12 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import("prettier").Config} */
export default {
plugins: ['prettier-plugin-astro'],
overrides: [
{
files: '*.astro',
options: {
parser: 'astro',
},
},
],
};
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ornithemc.github.io

the cool website that ornithe has
9 changes: 9 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from "astro/config";

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
integrations: [tailwind()],
site: "https://ornithemc.net",
});
57 changes: 0 additions & 57 deletions develop.html

This file was deleted.

30 changes: 0 additions & 30 deletions index.html

This file was deleted.

22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "src",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/tailwind": "^5.1.0",
"astro": "^4.14.5",
"tailwindcss": "^3.4.10"
},
"devDependencies": {
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.6"
}
}
Loading

0 comments on commit 8852ecb

Please sign in to comment.