web: landing page vanilla HTML/CSS/JS avec ambiance sous-marine

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Floppyrj45
2026-04-19 17:57:25 +02:00
parent a12ec18027
commit 9429360966
7 changed files with 926 additions and 0 deletions

82
web/README.md Normal file
View File

@@ -0,0 +1,82 @@
# DauphinCraft — Landing Page
Landing page statique vanilla HTML/CSS/JS. Aucune dépendance externe.
## Déploiement nginx
### 1. Copier les fichiers
```bash
sudo cp -r web/* /var/www/dauphincraft/
sudo chown -R www-data:www-data /var/www/dauphincraft/
```
### 2. Lier le dossier releases
```bash
sudo mkdir -p /var/www/dauphincraft/releases
# Symlink vers tes builds ou copie directe :
sudo ln -s /opt/dauphincraft/releases /var/www/dauphincraft/releases
```
Fichiers attendus dans `releases/` :
- `DauphinCraft-v0.1-win64.zip`
- `DauphinCraft-Server-v0.1.tar.gz`
### 3. Config nginx
```nginx
server {
listen 80;
server_name dauphincraft.example.com;
root /var/www/dauphincraft;
index index.html;
location / {
try_files $uri $uri/ =404;
}
# Cache assets longs
location ~* \.(css|js|svg|png|ico|woff2)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
# Pas de logs sur favicon
location = /favicon.png { log_not_found off; access_log off; }
# Gzip
gzip on;
gzip_types text/css application/javascript image/svg+xml;
}
```
### 4. Reload
```bash
sudo nginx -t && sudo systemctl reload nginx
```
### 5. HTTPS (Let's Encrypt — optionnel)
```bash
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d dauphincraft.example.com
```
## Placeholders à remplacer dans index.html
| Placeholder | Valeur |
|---------------------|-----------------------------------------|
| `<SERVER_IP>` | IP publique du serveur de jeu |
| `<DISCORD_INVITE>` | https://discord.gg/XXXXXXX |
| `<GITEA_URL>` | https://gitea.example.com |
## Screenshots
Ajouter dans `img/` :
- `screenshot_menu.png` — déjà copié depuis `builds/`
- `screenshot_ingame.png` — capture en jeu (exploration)
- `screenshot_multi.png` — capture multijoueur
Mettre à jour `index.html` section `.screenshots-grid` pour retirer les placeholders.