Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Lint

# Lightweight, dependency-free checks for the static app.
# Runs on every push and pull request.
on:
push:
branches: ['**']
pull_request:

jobs:
lint:
name: Syntax & JSON checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Check JavaScript syntax
run: |
set -e
for f in app.js particles.js sw.js; do
echo "Checking $f"
node --check "$f"
done

- name: Validate JSON files
run: |
set -e
for f in manifest.json; do
echo "Validating $f"
node -e "JSON.parse(require('fs').readFileSync('$f', 'utf8'))"
done
59 changes: 59 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="fr">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Page introuvable — AdminGo</title>
<meta name="robots" content="noindex" />
<meta name="theme-color" content="#58CC02" />
<link rel="icon"
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>" />
<link rel="stylesheet" href="styles.css" />
<style>
.notfound-wrap {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 24px;
gap: 8px;
}

.notfound-code {
font-size: 5rem;
font-weight: 900;
line-height: 1;
}

.notfound-title {
font-size: 1.4rem;
font-weight: 800;
color: rgb(var(--color-text));
}

.notfound-text {
color: rgb(var(--color-text-secondary));
max-width: 360px;
font-weight: 600;
margin-bottom: 12px;
}
</style>
</head>

<body>
<div class="notfound-wrap">
<div class="notfound-code gradient-title">404</div>
<p class="notfound-title">🎓 Oups, page introuvable</p>
<p class="notfound-text">
La page que vous cherchez n'existe pas ou a été déplacée.
</p>
<a href="/" class="btn-duo btn-primary" style="text-decoration:none;display:inline-block;">
Retour à AdminGo
</a>
</div>
</body>

</html>
Loading
Loading