Skip to content

Commit 05a5233

Browse files
committed
Initial commit
0 parents  commit 05a5233

15 files changed

Lines changed: 4834 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build and Deploy Error Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # or the branch you want to trigger on
7+
pull_request:
8+
branches:
9+
- main # or the branch you want to trigger on
10+
11+
jobs:
12+
build_and_deploy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# Checkout the repository
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
# Set up Node.js environment
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '16' # or the version you are using
25+
26+
# Install dependencies
27+
- name: Install dependencies
28+
run: npm install
29+
30+
# Build the error pages using Parcel
31+
- name: Build error pages
32+
run: npm run build
33+
34+
# Deploy to GitHub Pages
35+
- name: Deploy to GitHub Pages
36+
uses: JamesIves/github-pages-deploy-action@v4
37+
with:
38+
branch: gh-pages # The branch you want to deploy to
39+
folder: dist # The folder to deploy from
40+
token: ${{ secrets.GITHUB_TOKEN }}
41+
42+
# Create a release with the built dist folder as a zip file
43+
- name: Create GitHub Release
44+
id: create_release
45+
run: |
46+
VERSION=$(date +'%Y-%m-%d-%H-%M-%S') # You can customize the versioning scheme
47+
gh release create "v$VERSION" dist/* --title "Release $VERSION" --notes "Automated release of error pages"
48+
49+
# Upload the dist folder as a zip file to the release
50+
- name: Upload release zip
51+
run: |
52+
zip -r dist.zip dist
53+
gh release upload "v$VERSION" dist.zip --clobber

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.vscode
2+
dist
3+
.parcel-cache
4+
node_modules

.postcssrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": {
3+
"@tailwindcss/postcss": {}
4+
}
5+
}

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ✨ Prebuilt HTTP Error Pages
2+
3+
**Beautiful, ready-to-use error pages** – precompiled and released automatically.
4+
5+
---
6+
7+
## 🌐 Available Pages & Demo
8+
Here's a list of all available error pages and their demo links:
9+
10+
| Error Code | Page Name | Description | Demo Link |
11+
|------------|----------------|------------------------------------------|---------------------------------------------------------------|
12+
| `404` | `404.html` | Page Not Found | [Demo 404](https://tobidi0410.github.io/error-pages/404.html) |
13+
| `502` | `502.html` | Bad Gateway | [Demo 502](https://tobidi0410.github.io/error-pages/404.html) |
14+
| `504` | `504.html` | Gateway Timeout | [Demo 504](https://tobidi0410.github.io/error-pages/504.html) |
15+
---

0 commit comments

Comments
 (0)