initial for website-v2
This commit is contained in:
parent
51a5314d8e
commit
368b84ce45
68
README.md
68
README.md
@ -1,2 +1,66 @@
|
||||
# website-front
|
||||
test
|
||||
# Website Front pour Banquise
|
||||
|
||||
Ce projet est une application web React développée avec Vite, TypeScript et TailwindCSS.
|
||||
|
||||
## Architecture du Projet
|
||||
|
||||
```
|
||||
website-front/
|
||||
├── banquise-website/ # Application React principale
|
||||
│ ├── public/ # Fichiers statiques
|
||||
│ ├── src/ # Code source
|
||||
│ │ ├── assets/ # Images et ressources
|
||||
│ │ ├── App.tsx # Composant principal
|
||||
│ │ └── main.tsx # Point d'entrée de l'application
|
||||
│ ├── index.html # Template HTML principal
|
||||
│ ├── package.json # Configuration des dépendances
|
||||
│ ├── tsconfig.json # Configuration TypeScript
|
||||
│ ├── vite.config.ts # Configuration Vite
|
||||
│ └── tailwind.config.js # Configuration TailwindCSS
|
||||
└── shell.nix # Configuration pour environnement Nix
|
||||
```
|
||||
|
||||
## Technologies Utilisées
|
||||
|
||||
- **React 18** - Bibliothèque d'interface utilisateur
|
||||
- **TypeScript** - Langage de programmation typé
|
||||
- **Vite** - Outil de build et serveur de développement
|
||||
- **TailwindCSS** - Framework CSS utilitaire
|
||||
- **React Router** - Navigation entre les pages
|
||||
- **Zustand** - Gestion d'état
|
||||
- **React Query** - Gestion des requêtes API
|
||||
- **Framer Motion** - Animations
|
||||
|
||||
## Pré-requis
|
||||
|
||||
- Node.js (v16.0.0 ou supérieur)
|
||||
- npm ou yarn
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
# Se déplacer dans le dossier du projet
|
||||
cd banquise-website
|
||||
|
||||
# Installer les dépendances
|
||||
npm install
|
||||
# ou avec yarn
|
||||
yarn
|
||||
```
|
||||
|
||||
## Scripts Disponibles
|
||||
|
||||
- `npm run dev` - Lance le serveur de développement
|
||||
- `npm run build` - Compile le projet pour la production
|
||||
- `npm run preview` - Prévisualise la version de production localement
|
||||
- `npm run lint` - Vérifie la qualité du code avec ESLint
|
||||
|
||||
## Déploiement
|
||||
|
||||
### Compilation pour la Production
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
Cette commande générera un dossier `dist` dans le répertoire `banquise-website/` contenant tous les fichiers optimisés pour la production.
|
24
banquise-website/.gitignore
vendored
Normal file
24
banquise-website/.gitignore
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
54
banquise-website/README.md
Normal file
54
banquise-website/README.md
Normal file
@ -0,0 +1,54 @@
|
||||
# React + TypeScript + Vite
|
||||
|
||||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
||||
|
||||
Currently, two official plugins are available:
|
||||
|
||||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
|
||||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
||||
|
||||
## Expanding the ESLint configuration
|
||||
|
||||
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
||||
|
||||
```js
|
||||
export default tseslint.config({
|
||||
extends: [
|
||||
// Remove ...tseslint.configs.recommended and replace with this
|
||||
...tseslint.configs.recommendedTypeChecked,
|
||||
// Alternatively, use this for stricter rules
|
||||
...tseslint.configs.strictTypeChecked,
|
||||
// Optionally, add this for stylistic rules
|
||||
...tseslint.configs.stylisticTypeChecked,
|
||||
],
|
||||
languageOptions: {
|
||||
// other options...
|
||||
parserOptions: {
|
||||
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
})
|
||||
```
|
||||
|
||||
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
||||
|
||||
```js
|
||||
// eslint.config.js
|
||||
import reactX from 'eslint-plugin-react-x'
|
||||
import reactDom from 'eslint-plugin-react-dom'
|
||||
|
||||
export default tseslint.config({
|
||||
plugins: {
|
||||
// Add the react-x and react-dom plugins
|
||||
'react-x': reactX,
|
||||
'react-dom': reactDom,
|
||||
},
|
||||
rules: {
|
||||
// other rules...
|
||||
// Enable its recommended typescript rules
|
||||
...reactX.configs['recommended-typescript'].rules,
|
||||
...reactDom.configs.recommended.rules,
|
||||
},
|
||||
})
|
||||
```
|
28
banquise-website/eslint.config.js
Normal file
28
banquise-website/eslint.config.js
Normal file
@ -0,0 +1,28 @@
|
||||
import js from '@eslint/js'
|
||||
import globals from 'globals'
|
||||
import reactHooks from 'eslint-plugin-react-hooks'
|
||||
import reactRefresh from 'eslint-plugin-react-refresh'
|
||||
import tseslint from 'typescript-eslint'
|
||||
|
||||
export default tseslint.config(
|
||||
{ ignores: ['dist'] },
|
||||
{
|
||||
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
||||
files: ['**/*.{ts,tsx}'],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2020,
|
||||
globals: globals.browser,
|
||||
},
|
||||
plugins: {
|
||||
'react-hooks': reactHooks,
|
||||
'react-refresh': reactRefresh,
|
||||
},
|
||||
rules: {
|
||||
...reactHooks.configs.recommended.rules,
|
||||
'react-refresh/only-export-components': [
|
||||
'warn',
|
||||
{ allowConstantExport: true },
|
||||
],
|
||||
},
|
||||
},
|
||||
)
|
19
banquise-website/index.html
Normal file
19
banquise-website/index.html
Normal file
@ -0,0 +1,19 @@
|
||||
<!doctype html>
|
||||
<html lang="fr"> <!-- Changement de "en" à "fr" pour refléter la langue du contenu -->
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<!-- Remplacement du favicon par le logo de La Banquise -->
|
||||
<link rel="icon" type="image/png" href="/src/assets/banquise.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||
<meta name="description" content="Services d'hébergement La Banquise - Accédez à notre Wiki, Gitea et Panel de jeux" />
|
||||
<title>La Banquise - Services d'hébergement</title>
|
||||
<!-- Ajout des polices Google Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
44
banquise-website/package.json
Normal file
44
banquise-website/package.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "banquise-website",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc -b && vite build",
|
||||
"lint": "eslint .",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.6.5",
|
||||
"clsx": "^2.1.0",
|
||||
"framer-motion": "^10.18.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-icons": "^4.12.0",
|
||||
"react-router-dom": "^6.22.0",
|
||||
"@tanstack/react-query": "^5.17.9",
|
||||
"tailwind-merge": "^2.2.0",
|
||||
"zustand": "^4.4.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.25.0",
|
||||
"@tailwindcss/forms": "^0.5.7",
|
||||
"@tailwindcss/typography": "^0.5.10",
|
||||
"@types/react": "^18.2.58",
|
||||
"@types/react-dom": "^18.2.19",
|
||||
"@vitejs/plugin-react": "^4.4.1",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"eslint": "^9.25.0",
|
||||
"eslint-plugin-react-hooks": "^5.2.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.19",
|
||||
"eslint-plugin-tailwindcss": "^3.14.0",
|
||||
"globals": "^16.0.0",
|
||||
"postcss": "^8.4.33",
|
||||
"typescript": "~5.8.3",
|
||||
"typescript-eslint": "^8.30.1",
|
||||
"vite": "^6.3.5",
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
"tailwindcss": "^3.4.1"
|
||||
}
|
||||
}
|
6
banquise-website/postcss.config.js
Normal file
6
banquise-website/postcss.config.js
Normal file
@ -0,0 +1,6 @@
|
||||
export default {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
}
|
1
banquise-website/public/vite.svg
Normal file
1
banquise-website/public/vite.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
After Width: | Height: | Size: 1.5 KiB |
1124
banquise-website/src/App.css
Normal file
1124
banquise-website/src/App.css
Normal file
File diff suppressed because it is too large
Load Diff
525
banquise-website/src/App.tsx
Normal file
525
banquise-website/src/App.tsx
Normal file
@ -0,0 +1,525 @@
|
||||
import { FiUser, FiDatabase, FiShield, FiChevronDown } from 'react-icons/fi'
|
||||
import { FaDiscord, FaArrowRight, FaEnvelope, FaGithub, FaNetworkWired, FaServer, FaLaptopCode, FaCloudUploadAlt, FaExternalLinkAlt } from 'react-icons/fa'
|
||||
import { FiX, FiExternalLink } from 'react-icons/fi'
|
||||
import './App.css'
|
||||
import icebergImage from './assets/iceberg.png'
|
||||
import logoImage from './assets/banquise.png'
|
||||
import { useEffect, useState, useMemo, useCallback, useRef } from 'react'
|
||||
|
||||
import aboutImage from './assets/banquise.png'
|
||||
|
||||
function App() {
|
||||
const [selectedService, setSelectedService] = useState<number | null>(null);
|
||||
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
||||
const mobileMenuRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
const services = useMemo(() => [
|
||||
{
|
||||
name: "Notre Wiki",
|
||||
url: "https://wiki.la-banquise.fr/en/home",
|
||||
description: "Notre Wiki est une base de connaissances collaborative où vous trouverez toute la documentation relative à nos projets et services. Apprenez, contribuez et partagez vos connaissances avec la communauté La Banquise."
|
||||
},
|
||||
{
|
||||
name: "Gitea",
|
||||
url: "https://git.la-banquise.fr/",
|
||||
description: "Gitea est notre plateforme de gestion de code source, similaire à GitHub mais hébergée par nos soins. Créez des dépôts, collaborez sur des projets et participez au développement d'applications open-source dans un environnement sécurisé."
|
||||
},
|
||||
{
|
||||
name: "Panel de jeux",
|
||||
url: "https://panel.la-banquise.fr/auth/login",
|
||||
description: "Interface de connection à notre panel Pterodactyl, qui vous permet de gérer vos serveurs de jeux. Créez, gérez et configurez vos serveurs de jeux préférés en toute simplicité."
|
||||
},
|
||||
], []);
|
||||
|
||||
const [icebergs, setIcebergs] = useState<Array<{
|
||||
id: number,
|
||||
x: number,
|
||||
y: number,
|
||||
scale: number,
|
||||
rotation: number,
|
||||
service: typeof services[0],
|
||||
floatClass: string
|
||||
}>>([])
|
||||
|
||||
const [reducedMotion, setReducedMotion] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
setReducedMotion(prefersReducedMotion);
|
||||
|
||||
const startTime = performance.now();
|
||||
let count = 0;
|
||||
while (performance.now() - startTime < 5) {
|
||||
count++;
|
||||
}
|
||||
|
||||
if (count < 1000) {
|
||||
setReducedMotion(true);
|
||||
}
|
||||
}, []);
|
||||
|
||||
const positionIcebergs = useCallback(() => {
|
||||
const newIcebergs = [];
|
||||
|
||||
const positions = [
|
||||
{ x: 25, y: 35, scale: 0.95, rotation: 0 },
|
||||
{ x: 50, y: 25, scale: 1.1, rotation: 0 },
|
||||
{ x: 75, y: 35, scale: 0.95, rotation: 0 },
|
||||
];
|
||||
|
||||
const floatClasses = ['float-1', 'float-2', 'float-3', 'float-4', 'float-5'];
|
||||
|
||||
for (let i = 0; i < services.length; i++) {
|
||||
const position = positions[i % positions.length];
|
||||
|
||||
newIcebergs.push({
|
||||
id: i,
|
||||
x: position.x,
|
||||
y: position.y,
|
||||
scale: position.scale,
|
||||
rotation: position.rotation,
|
||||
service: services[i],
|
||||
floatClass: reducedMotion ? '' : floatClasses[i % floatClasses.length]
|
||||
});
|
||||
}
|
||||
|
||||
return newIcebergs;
|
||||
}, [services, reducedMotion]);
|
||||
|
||||
useEffect(() => {
|
||||
setIcebergs(positionIcebergs());
|
||||
}, [positionIcebergs]);
|
||||
|
||||
const renderBubbles = useMemo(() => {
|
||||
if (reducedMotion) return null;
|
||||
|
||||
return (
|
||||
<div className="bubbles">
|
||||
<div className="bubble"></div>
|
||||
<div className="bubble"></div>
|
||||
<div className="bubble"></div>
|
||||
<div className="bubble"></div>
|
||||
<div className="bubble"></div>
|
||||
<div className="bubble"></div>
|
||||
<div className="bubble"></div>
|
||||
</div>
|
||||
);
|
||||
}, [reducedMotion]);
|
||||
|
||||
const handleIcebergClick = (event: React.MouseEvent, serviceId: number) => {
|
||||
event.preventDefault();
|
||||
setSelectedService(serviceId);
|
||||
};
|
||||
|
||||
const handleClosePopup = () => {
|
||||
setSelectedService(null);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
const handleOutsideClick = (event: MouseEvent) => {
|
||||
if (mobileMenuRef.current && !mobileMenuRef.current.contains(event.target as Node)) {
|
||||
setMobileMenuOpen(false);
|
||||
}
|
||||
};
|
||||
|
||||
if (mobileMenuOpen) {
|
||||
document.addEventListener('mousedown', handleOutsideClick);
|
||||
}
|
||||
|
||||
return () => {
|
||||
document.removeEventListener('mousedown', handleOutsideClick);
|
||||
};
|
||||
}, [mobileMenuOpen]);
|
||||
|
||||
useEffect(() => {
|
||||
if (mobileMenuOpen) {
|
||||
document.body.style.overflow = 'hidden';
|
||||
} else {
|
||||
document.body.style.overflow = 'auto';
|
||||
}
|
||||
|
||||
return () => {
|
||||
document.body.style.overflow = 'auto';
|
||||
};
|
||||
}, [mobileMenuOpen]);
|
||||
|
||||
const [activeAccordion, setActiveAccordion] = useState<number | null>(null);
|
||||
|
||||
// FAQ items for the about section
|
||||
const faqItems = useMemo(() => [
|
||||
{
|
||||
question: "Qui sommes-nous ?",
|
||||
answer: (
|
||||
<>
|
||||
<p>La Banquise est une initiative d'étudiants de l'EPITA Lyon dont l'objectif est de rendre plus accessible l'hébergement de services informatiques. Fondée en 2023, notre association à but non lucratif vise à permettre à ceux qui le souhaitent de se former sur des technologies d'hébergement et de réseau.</p>
|
||||
<p>Notre équipe est composée d'étudiants passionnés par l'informatique, le réseau et le partage de connaissances. Nous mettons notre expertise au service des étudiants et des associations de l'EPITA.</p>
|
||||
</>
|
||||
)
|
||||
},
|
||||
{
|
||||
question: "Comment candidater pour rejoindre La Banquise ?",
|
||||
answer: (
|
||||
<>
|
||||
<p>Pour rejoindre notre équipe, rien de plus simple :</p>
|
||||
<ul>
|
||||
<li>Rejoignez notre serveur Discord</li>
|
||||
<li>Présentez-vous et expliquez votre motivation dans un ticket</li>
|
||||
<li>Précisez vos compétences ou les domaines qui vous intéressent</li>
|
||||
<li>Un membre de notre équipe vous contactera pour un échange</li>
|
||||
</ul>
|
||||
<p>Nous recherchons des personnes motivées, peu importe votre niveau technique actuel !</p>
|
||||
<a href="https://discord.com/invite/QQWwzX5ptY" className="accordion-cta" target="_blank" rel="noopener noreferrer">
|
||||
Rejoindre le Discord <FaExternalLinkAlt className="accordion-cta-icon" />
|
||||
</a>
|
||||
</>
|
||||
)
|
||||
},
|
||||
{
|
||||
question: "Quels sont nos objectifs ?",
|
||||
answer: (
|
||||
<>
|
||||
<p>Nos principaux objectifs sont :</p>
|
||||
<ul>
|
||||
<li>Former les étudiants aux technologies d'hébergement et de réseau</li>
|
||||
<li>Fournir des services informatiques de qualité aux étudiants et associations de l'EPITA</li>
|
||||
<li>Promouvoir le partage de connaissances et l'entraide</li>
|
||||
<li>Créer un environnement d'apprentissage pratique par l'expérience</li>
|
||||
<li>Maintenir une infrastructure robuste et sécurisée</li>
|
||||
</ul>
|
||||
</>
|
||||
)
|
||||
},
|
||||
{
|
||||
question: "Comment utiliser nos services ?",
|
||||
answer: (
|
||||
<>
|
||||
<p>Pour accéder à nos services :</p>
|
||||
<ol>
|
||||
<li>Créez un compte sur notre plateforme d'authentification</li>
|
||||
<li>Connectez-vous au service souhaité avec vos identifiants</li>
|
||||
<li>Consultez notre Wiki pour obtenir de l'aide sur l'utilisation de chaque service</li>
|
||||
</ol>
|
||||
<p>Si vous rencontrez des difficultés, n'hésitez pas à demander de l'aide sur notre Discord.</p>
|
||||
<a href="https://auth.la-banquise.fr/" className="accordion-cta" target="_blank" rel="noopener noreferrer">
|
||||
Créer un compte <FaExternalLinkAlt className="accordion-cta-icon" />
|
||||
</a>
|
||||
</>
|
||||
)
|
||||
},
|
||||
{
|
||||
question: "Comment contribuer au projet ?",
|
||||
answer: (
|
||||
<>
|
||||
<p>Il existe plusieurs façons de contribuer au projet La Banquise :</p>
|
||||
<ul>
|
||||
<li>Rejoindre l'équipe en tant que membre actif</li>
|
||||
<li>Contribuer au code source de nos projets via Gitea</li>
|
||||
<li>Rédiger ou améliorer la documentation sur notre Wiki</li>
|
||||
<li>Proposer de nouvelles idées de services ou d'améliorations</li>
|
||||
<li>Aider d'autres utilisateurs sur notre Discord</li>
|
||||
</ul>
|
||||
<p>Toutes les contributions sont les bienvenues, même les plus modestes !</p>
|
||||
</>
|
||||
)
|
||||
},
|
||||
], []);
|
||||
|
||||
const toggleAccordion = (index: number) => {
|
||||
setActiveAccordion(activeAccordion === index ? null : index);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="app-container">
|
||||
<a href="#main-content" className="sr-only focus:not-sr-only">Passer au contenu principal</a>
|
||||
|
||||
<header>
|
||||
<nav className="navbar" aria-label="Navigation principale">
|
||||
<div className="navbar-left">
|
||||
<img src={logoImage} alt="Logo La Banquise" className="site-logo" />
|
||||
<h1 className="site-name">La Banquise</h1>
|
||||
</div>
|
||||
|
||||
<button
|
||||
className={`navbar-mobile-toggle ${mobileMenuOpen ? 'active' : ''}`}
|
||||
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
|
||||
aria-expanded={mobileMenuOpen}
|
||||
aria-label="Menu de navigation"
|
||||
>
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</button>
|
||||
|
||||
<div
|
||||
className={`navbar-right ${mobileMenuOpen ? 'mobile-active' : ''}`}
|
||||
ref={mobileMenuRef}
|
||||
>
|
||||
<a
|
||||
href="https://discord.com/invite/QQWwzX5ptY"
|
||||
className="discord-button"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
aria-label="Rejoindre notre Discord"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
>
|
||||
<FaDiscord className="discord-icon" aria-hidden="true" />
|
||||
<span>Discord</span>
|
||||
</a>
|
||||
<a
|
||||
href="https://auth.la-banquise.fr/"
|
||||
className="login-button"
|
||||
aria-label="Se connecter à votre compte"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
>
|
||||
<FiUser className="login-icon" aria-hidden="true" />
|
||||
<span>Se connecter</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div
|
||||
className={`mobile-menu-overlay ${mobileMenuOpen ? 'active' : ''}`}
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
></div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main id="main-content" className="content">
|
||||
<div className="ocean" role="region" aria-label="Services La Banquise">
|
||||
{renderBubbles}
|
||||
|
||||
<section className="page-section hero-section">
|
||||
<div className="hero-tech-elements">
|
||||
<div className="tech-element tech-element-1"><FaServer /></div>
|
||||
<div className="tech-element tech-element-2"><FaLaptopCode /></div>
|
||||
<div className="tech-element tech-element-3"><FaNetworkWired /></div>
|
||||
<div className="tech-element tech-element-4"><FaCloudUploadAlt /></div>
|
||||
</div>
|
||||
|
||||
<div className="hero-logo-container">
|
||||
<img src={logoImage} alt="Logo La Banquise" className="hero-logo" />
|
||||
</div>
|
||||
<h2 className="hero-title">Association La Banquise</h2>
|
||||
<p className="hero-subtitle">
|
||||
Association d'hébergement et lab réseau pour tous les étudiants et associations de l'EPITA
|
||||
</p>
|
||||
<div>
|
||||
<a href="https://discord.com/invite/QQWwzX5ptY" className="cta-button" target="_blank" rel="noopener noreferrer">
|
||||
Notre Discord
|
||||
<FaArrowRight className="cta-icon" />
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="page-section tech-features-section">
|
||||
<div className="section-divider"></div>
|
||||
<h2 className="section-title">Notre infrastructure</h2>
|
||||
<p className="section-subtitle">
|
||||
Des services robustes et sécurisés pour répondre à vos besoins
|
||||
</p>
|
||||
|
||||
<div className="tech-features-grid">
|
||||
<div className="tech-feature-card">
|
||||
<div className="tech-feature-icon">
|
||||
<FaServer />
|
||||
</div>
|
||||
<h3 className="tech-feature-title">Serveurs performants</h3>
|
||||
<p className="tech-feature-description">
|
||||
Infrastructure optimisée pour assurer des performances élevées et une disponibilité maximale de vos applications
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="tech-feature-card">
|
||||
<div className="tech-feature-icon">
|
||||
<FiDatabase />
|
||||
</div>
|
||||
<h3 className="tech-feature-title">Stockage sécurisé</h3>
|
||||
<p className="tech-feature-description">
|
||||
Solutions de stockage distribuées avec redondance pour garantir l'intégrité et la durabilité de vos données
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="tech-feature-card">
|
||||
<div className="tech-feature-icon">
|
||||
<FaNetworkWired />
|
||||
</div>
|
||||
<h3 className="tech-feature-title">Réseau optimisé</h3>
|
||||
<p className="tech-feature-description">
|
||||
Architecture réseau à haute disponibilité avec une faible latence pour vos applications critiques
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="tech-feature-card">
|
||||
<div className="tech-feature-icon">
|
||||
<FiShield />
|
||||
</div>
|
||||
<h3 className="tech-feature-title">Sécurité renforcée</h3>
|
||||
<p className="tech-feature-description">
|
||||
Protection contre les menaces avec systèmes de sécurité modernes et mises à jour régulières
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="page-section services-section" id="services">
|
||||
<div className="section-divider"></div>
|
||||
<h2 className="section-title">Nos services</h2>
|
||||
<p className="section-subtitle">
|
||||
Explorez notre écosystème de services conçus pour répondre à vos besoins.
|
||||
</p>
|
||||
|
||||
<div
|
||||
className="icebergs-container"
|
||||
role="list"
|
||||
aria-label="Liste des services disponibles"
|
||||
>
|
||||
{icebergs.map((iceberg) => (
|
||||
<a
|
||||
key={iceberg.id}
|
||||
href={iceberg.service.url}
|
||||
className={`iceberg ${iceberg.floatClass}`}
|
||||
style={{
|
||||
transform: `rotate(${iceberg.rotation}deg) scale(${iceberg.scale}) translateZ(0)`,
|
||||
}}
|
||||
role="listitem"
|
||||
aria-label={`En savoir plus sur ${iceberg.service.name}`}
|
||||
onClick={(e) => handleIcebergClick(e, iceberg.id)}
|
||||
>
|
||||
<img
|
||||
src={icebergImage}
|
||||
alt=""
|
||||
className="iceberg-image"
|
||||
loading="lazy"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<div className="service-name">{iceberg.service.name}</div>
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="page-section about-section" id="about">
|
||||
<div className="section-divider"></div>
|
||||
<h2 className="section-title">À propos de nous</h2>
|
||||
<p className="section-subtitle">
|
||||
Découvrez notre mission et posez-nous vos questions
|
||||
</p>
|
||||
|
||||
<div className="about-container">
|
||||
<div className="about-image-container">
|
||||
<img src={aboutImage} alt="Logo La Banquise" className="about-logo" />
|
||||
</div>
|
||||
|
||||
<p className="about-intro">
|
||||
La Banquise est une association étudiante dédiée à l'hébergement de services et à la formation sur les technologies réseau, au service de la communauté EPITA.
|
||||
</p>
|
||||
|
||||
<div className="accordion-group" role="region" aria-label="Foire aux questions">
|
||||
{faqItems.map((item, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className={`accordion-item ${activeAccordion === index ? 'active' : ''}`}
|
||||
>
|
||||
<div
|
||||
className="accordion-header"
|
||||
onClick={() => toggleAccordion(index)}
|
||||
role="button"
|
||||
aria-expanded={activeAccordion === index}
|
||||
aria-controls={`accordion-content-${index}`}
|
||||
tabIndex={0}
|
||||
onKeyPress={(e) => {
|
||||
if (e.key === 'Enter' || e.key === ' ') {
|
||||
toggleAccordion(index);
|
||||
}
|
||||
}}
|
||||
>
|
||||
{item.question}
|
||||
<FiChevronDown className="accordion-toggle-icon" aria-hidden="true" />
|
||||
</div>
|
||||
<div
|
||||
className="accordion-content"
|
||||
id={`accordion-content-${index}`}
|
||||
role="region"
|
||||
>
|
||||
{item.answer}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{selectedService !== null && (
|
||||
<div className="popup-overlay" onClick={handleClosePopup} role="dialog" aria-modal="true" aria-labelledby="popup-title">
|
||||
<div className="popup-content" onClick={(e) => e.stopPropagation()}>
|
||||
<button className="popup-close" onClick={handleClosePopup} aria-label="Fermer">
|
||||
<FiX />
|
||||
</button>
|
||||
<h3 id="popup-title" className="popup-title">{services[selectedService].name}</h3>
|
||||
<p className="popup-description">{services[selectedService].description}</p>
|
||||
<a
|
||||
href={services[selectedService].url}
|
||||
className="popup-button"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<FiExternalLink className="popup-button-icon" />
|
||||
<span>Accéder au service</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="code-background">
|
||||
<div className="code-line">const banquise = new ServerInfra();</div>
|
||||
<div className="code-line">banquise.deploy('wiki');</div>
|
||||
<div className="code-line">banquise.deploy('gitea');</div>
|
||||
<div className="code-line">banquise.optimize();</div>
|
||||
<div className="code-line">banquise.monitor();</div>
|
||||
</div>
|
||||
|
||||
<div className="waves" aria-hidden="true">
|
||||
<div className="wave wave1"></div>
|
||||
<div className="wave wave2"></div>
|
||||
<div className="wave wave3"></div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer className="footer">
|
||||
<div className="footer-content">
|
||||
<div className="footer-column">
|
||||
<h4>La Banquise</h4>
|
||||
<ul>
|
||||
<li><a href="#about">À propos</a></li>
|
||||
<li><a href="#services">Services</a></li>
|
||||
<li><a href="https://wiki.la-banquise.fr/en/home">Documentation</a></li>
|
||||
<li><a href="#contact">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div className="footer-column">
|
||||
<h4>Services</h4>
|
||||
<ul>
|
||||
{services.map((service, index) => (
|
||||
<li key={index}><a href={service.url}>{service.name}</a></li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
<div className="footer-column">
|
||||
<h4>Communauté</h4>
|
||||
<ul>
|
||||
<li><a href="https://discord.com/invite/QQWwzX5ptY" target="_blank" rel="noopener noreferrer">Discord</a></li>
|
||||
<li><a href="https://git.la-banquise.fr/" target="_blank" rel="noopener noreferrer">Gitea</a></li>
|
||||
<li><a href="mailto:contact@la-banquise.fr"><FaEnvelope style={{marginRight: '0.5rem'}} /> contact@la-banquise.fr</a></li>
|
||||
<li><a href="https://github.com/la-banquise" target="_blank" rel="noopener noreferrer"><FaGithub style={{marginRight: '0.5rem'}} /> GitHub</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div className="footer-bottom">
|
||||
<p>© {new Date().getFullYear()} La Banquise. Tous droits réservés.</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
BIN
banquise-website/src/assets/banquise.png
Normal file
BIN
banquise-website/src/assets/banquise.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 188 KiB |
BIN
banquise-website/src/assets/iceberg.png
Normal file
BIN
banquise-website/src/assets/iceberg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 121 KiB |
1
banquise-website/src/assets/react.svg
Normal file
1
banquise-website/src/assets/react.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
|
After Width: | Height: | Size: 4.0 KiB |
103
banquise-website/src/index.css
Normal file
103
banquise-website/src/index.css
Normal file
@ -0,0 +1,103 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
/* Système typographique moderne */
|
||||
:root {
|
||||
--font-heading: 'Space Grotesk', sans-serif;
|
||||
--font-body: 'Inter', system-ui, sans-serif;
|
||||
|
||||
font-family: var(--font-body);
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
|
||||
color-scheme: light dark;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
background-color: #242424;
|
||||
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
/* Hiérarchie typographique */
|
||||
h1, h2, h3, h4, h5, h6, .site-name, .welcome-title {
|
||||
font-family: var(--font-heading);
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
letter-spacing: -0.025em;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3.2em;
|
||||
line-height: 1.1;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2.4em;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.8em;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
p, span, div, a, button, input {
|
||||
font-family: var(--font-body);
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: 500;
|
||||
color: #646cff;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #535bf2;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.6em 1.2em;
|
||||
font-size: 1em;
|
||||
font-weight: 500;
|
||||
font-family: var(--font-body);
|
||||
background-color: #1a1a1a;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.25s;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
border-color: #646cff;
|
||||
}
|
||||
|
||||
button:focus,
|
||||
button:focus-visible {
|
||||
outline: 4px auto -webkit-focus-ring-color;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color: #213547;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
a:hover {
|
||||
color: #747bff;
|
||||
}
|
||||
button {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
10
banquise-website/src/main.tsx
Normal file
10
banquise-website/src/main.tsx
Normal file
@ -0,0 +1,10 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import './index.css'
|
||||
import App from './App.tsx'
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
1
banquise-website/src/vite-env.d.ts
vendored
Normal file
1
banquise-website/src/vite-env.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
21
banquise-website/tailwind.config.js
Normal file
21
banquise-website/tailwind.config.js
Normal file
@ -0,0 +1,21 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
content: [
|
||||
"./index.html",
|
||||
"./src/**/*.{js,ts,jsx,tsx}",
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
// Vous pouvez personnaliser vos couleurs ici
|
||||
},
|
||||
fontFamily: {
|
||||
// Personnalisation des polices
|
||||
}
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
require('@tailwindcss/forms'),
|
||||
require('@tailwindcss/typography'),
|
||||
],
|
||||
}
|
27
banquise-website/tsconfig.app.json
Normal file
27
banquise-website/tsconfig.app.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
"target": "ES2020",
|
||||
"useDefineForClassFields": true,
|
||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||
"module": "ESNext",
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx",
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"erasableSyntaxOnly": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
7
banquise-website/tsconfig.json
Normal file
7
banquise-website/tsconfig.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"files": [],
|
||||
"references": [
|
||||
{ "path": "./tsconfig.app.json" },
|
||||
{ "path": "./tsconfig.node.json" }
|
||||
]
|
||||
}
|
25
banquise-website/tsconfig.node.json
Normal file
25
banquise-website/tsconfig.node.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||
"target": "ES2022",
|
||||
"lib": ["ES2023"],
|
||||
"module": "ESNext",
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"erasableSyntaxOnly": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true
|
||||
},
|
||||
"include": ["vite.config.ts"]
|
||||
}
|
27
banquise-website/vite.config.ts
Normal file
27
banquise-website/vite.config.ts
Normal file
@ -0,0 +1,27 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import viteCompression from 'vite-plugin-compression'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
viteCompression({
|
||||
verbose: false,
|
||||
algorithm: 'gzip',
|
||||
ext: '.gz',
|
||||
}),
|
||||
],
|
||||
build: {
|
||||
minify: 'esbuild',
|
||||
cssMinify: true,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
react: ['react', 'react-dom'],
|
||||
router: ['react-router-dom'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
@ -1,24 +0,0 @@
|
||||
<svg width="1800" height="1000" viewBox="0 -300 1800 1000" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<!-- Mât du drapeau -->
|
||||
<rect x="910" y="-220" width="50" height="220" fill="#1F5078"/>
|
||||
<!-- Petit drapeau -->
|
||||
<polygon points="960,-220 1250,-110 960,0" fill="#F2F2F2" stroke="#1F5078" stroke-width="1"/>
|
||||
<!-- Fond + contour -->
|
||||
<polygon fill="#34A6FC" points="0,676 0,725 1779,725 1778,675 1470,675
|
||||
1380,600 1275,350 1273,346 1268,338 1263,335 1257,332 1245,338
|
||||
1239,341 1131,384 1080,300 1073,260 1020,120 956,15 957,14.7431
|
||||
950,6 950,3 935,0 923,0 915,10 913,15 850,200 796.5,256
|
||||
730,200 728,200 710,178 697,178 350,676" />
|
||||
<!-- Autres conversions en polygon identiques aux points du SVG d'origine -->
|
||||
<polygon fill="#F2F2F2" points="775,300 707.5,239.5 646,552.5 656.5,548.5 775,300" />
|
||||
<polygon fill="#F2F2F2" points="750.5,663 641.5,603.5 938.5,494.5 750.5,663" />
|
||||
<polygon fill="#F2F2F2" points="1271,576.5 1277,442 1391.5,637 1271,576.5" />
|
||||
<polygon fill="#F2F2F2" points="1366.5,675 1267.5,625.5 1303,675 1366.5,675" />
|
||||
<polygon fill="#76BEEE" points="644.5,316.5 592.5,570.5 398,645.5 644.5,316.5" />
|
||||
<polygon fill="#76BEEE" points="832,481.5 717.5,523.5 884.5,180.5 832,481.5" />
|
||||
<polygon fill="#76BEEE" points="1047.5,458.5 803.5,675 1036.5,675.5 1155.5,562.5 1047.5,458.5" />
|
||||
<polygon fill="#76BEEE" points="1230.5,395 1205.5,404.833 1154.9,424.8 1152.5,426 1206.5,543 1227.5,553.5 1230.5,395" />
|
||||
<polygon fill="#A0ECF9" points="1021.5,412.5 881.5,463.5 946.5,101.5 1113.5,458.5" />
|
||||
<polygon fill="#A0ECF9" points="584.5,622.5 443,676 677.5,676 584.5,622.5" />
|
||||
<polygon fill="#A0ECF9" points="1188,596.5 1161.17,621.667 1106.8,672.8 1104,676 1246,676 1188,596.5" />
|
||||
</svg>
|
Before Width: | Height: | Size: 1.7 KiB |
@ -1,31 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>La Banquise</title>
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1 class="title">La Banquise</h1>
|
||||
<div class="grid-container">
|
||||
|
||||
<a class="grid-item" href="localhost">
|
||||
<object data="assets/iceberg.svg" type="image/svg+xml"></object>
|
||||
<p class="item-name">Placeholder</p>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="wave hidden">
|
||||
<svg viewBox="0 0 1200 120" preserveAspectRatio="none">
|
||||
<path d="M0,0 C600,100 600,100 1200,0 V120 H0 V0 Z" class="shape-fill"></path>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
<script src="./script.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,22 +0,0 @@
|
||||
const tile = document.querySelectorAll(".grid-container > *")[0];
|
||||
const parent = tile.parentNode;
|
||||
tile.remove();
|
||||
|
||||
const tiles = [
|
||||
{ name: "Notre wiki", href: "https://wiki.la-banquise.fr" },
|
||||
{ name: "Notre git", href: "https://git.la-banquise.fr" },
|
||||
{ name: "Panel jeux", href: "https://panel.la-banquise.fr" },
|
||||
{ name: "Discord", href: "https://discord.gg/QQWwzX5ptY" },
|
||||
{ name: "Login", href: "https://auth.la-banquise.fr" },
|
||||
{ name: "Change password", href: "https://ssp.la-banquise.fr" },
|
||||
]
|
||||
|
||||
tiles.forEach((info) => {
|
||||
const newTile = tile.cloneNode(true);
|
||||
newTile.querySelectorAll(".item-name").forEach((el) => {
|
||||
el.innerText = info.name;
|
||||
});
|
||||
newTile.href = info.href;
|
||||
parent.appendChild(newTile);
|
||||
});
|
||||
|
@ -1,136 +0,0 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: Roboto, sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 30px;
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(45deg, #001e6c, #5dadc2, #001e6c);
|
||||
background-size: 400% 400%;
|
||||
animation: gradient 100s ease infinite;
|
||||
}
|
||||
|
||||
@keyframes gradient {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
|
||||
50% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
h1.title {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/* Style de la vague en bas de page */
|
||||
.wave {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.wave svg {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: calc(100% + 1.3px);
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
.wave .shape-fill {
|
||||
fill: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
/* En-tête du site */
|
||||
header {
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
/* Container en flexbox pour agencer les éléments dans une "grid" */
|
||||
.grid-container {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: stretch;
|
||||
gap: 20px;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
/* Chaque élément de la grid */
|
||||
.grid-item {
|
||||
background: rgba(255, 255, 255, 0);
|
||||
padding: 2px;
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
/* Permet de s'étendre sur au moins 300px et de grandir si besoin */
|
||||
flex: 0 1 calc(10% - 40px);
|
||||
/* 3 items par ligne avec 20px de gap */
|
||||
max-width: calc(10% - 40px);
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0);
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
.grid-item:hover {
|
||||
transform: scale(1.05);
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.grid-item img,
|
||||
.grid-item object {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
margin: 0 auto 10px;
|
||||
/* Pour donner une vue isométrique */
|
||||
transform: rotateX(0deg) rotateZ(0deg);
|
||||
transform-origin: center;
|
||||
}
|
||||
|
||||
.grid-item p {
|
||||
font-size: 1.5rem;
|
||||
margin-top: 0rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.grid-item {
|
||||
flex: 0 1 calc(25% - 40px);
|
||||
max-width: calc(25% - 40px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.grid-item {
|
||||
flex: 0 1 calc(50% - 40px);
|
||||
max-width: calc(50% - 40px);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user