Skip to content

Commit fd514b6

Browse files
authored
Merge pull request #47 from ungdev/roadbook
Roadbook redirection
2 parents 2a20356 + 7e22435 commit fd514b6

File tree

8 files changed

+105
-8
lines changed

8 files changed

+105
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
- dev
88

99
jobs:
10-
1110
deploy-api:
1211
runs-on: self-hosted
1312

@@ -59,5 +58,7 @@ jobs:
5958
VITE_API_URL=${{ github.ref == 'refs/heads/prod' && 'https://integration.utt.fr/api' || 'https://integration.dev.uttnetgroup.fr/api' }}
6059
VITE_SERVICE_URL=${{ github.ref == 'refs/heads/prod' && 'https://integration.utt.fr/' || 'https://integration.dev.uttnetgroup.fr/' }}
6160
VITE_ANALYTICS_WEBSITE_ID=${{ github.ref == 'refs/heads/prod' && secrets.ANALYTICS_WEBSITE_ID_PROD || secrets.ANALYTICS_WEBSITE_ID_DEV }}
61+
VITE_ROADBOOK_URL_FRENCH=${{ secrets.ROADBOOK_URL_FRENCH }}
62+
VITE_ROADBOOK_URL_ENGLISH=${{ secrets.ROADBOOK_URL_ENGLISH }}
6263
tags: |
63-
${{ secrets.REGISTRY_URL }}/integration/front:${{ github.ref == 'refs/heads/prod' && 'prod' || 'dev' }}
64+
${{ secrets.REGISTRY_URL }}/integration/front:${{ github.ref == 'refs/heads/prod' && 'prod' || 'dev' }}

frontend/package-lock.json

Lines changed: 14 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@
5454
"typescript-eslint": "^8.24.1",
5555
"vite": "^6.2.0"
5656
}
57-
}
57+
}

frontend/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import PrivateRoute from './components/utils/privateroute';
3636
import { GamesPage } from './pages/games';
3737
import { FoodPage } from './pages/food';
3838
import { PlanningsPage } from './pages/plannings';
39+
import { Roadbook } from './pages/roadbook';
3940

4041

4142
const App: React.FC = () => {
@@ -61,6 +62,7 @@ const App: React.FC = () => {
6162
<Route path="/" element={<LoginPage />} />
6263
<Route path="/Register" element={<RegisterPage />} />
6364
<Route path="/ResetPassword" element={<ResetPasswordPage />} />
65+
<Route path="/roadbook" element={<Roadbook />} />
6466

6567
{/* Utilisateurs connectés */}
6668
<Route path="/Home" element={<ProtectedRoute><HomePage /></ProtectedRoute>} />

frontend/src/components/home/infosSection.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { Swiper, SwiperSlide } from "swiper/react";
22
import { Pagination, Autoplay } from "swiper/modules";
3+
import { Button } from "../ui/button";
4+
import { Link } from "react-router-dom";
35
import "swiper/swiper-bundle.css";
46

57
export const Infos = () => {
@@ -79,6 +81,20 @@ export const Infos = () => {
7981
C'est ici que tu trouveras toutes les informations nécessaires au déroulement de la semaine d'inté. Par exemple, tu pourras prendre ta place pour le WEI ou regarder quelle faction est la plus proche de la victoire.
8082
</p>
8183
</section>
84+
85+
<section className="text-center lg:text-center">
86+
<h3 className="text-2xl sm:text-3xl md:text-4xl font-bold mb-6 text-blue-700">
87+
Le Roadbook de l'inté
88+
</h3>
89+
<p className="text-center sm:text-lg leading-relaxed text-gray-700 max-w-3xl mx-auto mb-4">
90+
Retrouve ici toutes les informations de l’intégration ! Les plannings, la prévention, les activités, les menus… Tout pour passer des moments incroyables !
91+
</p>
92+
<Button asChild className="bg-pink-600 hover:bg-pink-800">
93+
<Link to="/roadbook">
94+
Accéder au Roadbook
95+
</Link>
96+
</Button>
97+
</section>
8298
</div>
8399
</div>
84100

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import { Button } from "../ui/button";
2+
import { Card } from "../ui/card";
3+
import { Link } from "react-router-dom";
4+
5+
export const RoadBookCard = () => {
6+
7+
return (
8+
<div className="flex flex-col items-center px-4 py-8 space-y-8 max-w-full min-h-screen mx-auto">
9+
<Card className="w-full p-6 rounded-2xl shadow-md space-y-4">
10+
<h2 className="text-3xl font-bold text-center">
11+
<span role="img" aria-label="rocket">📖</span>{" "}
12+
<span>Roadbook de l'intégration</span>{" "}
13+
<span role="img" aria-label="backpack">🚗</span>
14+
</h2>
15+
16+
17+
<div className="text-center text-gray-700 space-y-1">
18+
<p>
19+
C'est dans ce livret, que vous pourrez retrouver les informations les plus importantes pour naviguer au travers de l'Intégration. Vous y trouverez les <strong>contacts</strong> des super-orgas, de l'équipe prévention, de l'infirmerie ainsi que du <strong>téléphone d'astreinte</strong>, que vous pourrez appeler en cas de problème.
20+
<br />
21+
Un texte résumant toute la <strong>prévention</strong> et les bons gestes à adopter se trouve à l'intérieur.
22+
<br />
23+
Il y aura de même à votre disposition les <strong>plannings</strong> pour être toujours à l'heure, ainsi qu'une super description de chaque activité.
24+
<br /><br />
25+
On vous rappelle que <strong>LES ACTIVITES NE SONT PAS OBLIGATOIRES</strong>.
26+
<br /><br />
27+
Bonne Intégration à tous !
28+
</p>
29+
</div>
30+
31+
<div className="flex flex-col items-center space-y-4">
32+
<Link to={import.meta.env.VITE_ROADBOOK_URL_FRENCH}>
33+
<Button className="cursor-pointer">
34+
<span role="img" aria-label="lien" className="mr-2">🔗</span>
35+
Accéder à la version Française
36+
</Button>
37+
</Link>
38+
{/* <Link to={import.meta.env.VITE_ROADBOOK_URL_ENGLISH}>
39+
<Button variant="link" className="cursor-pointer">
40+
English Version
41+
</Button>
42+
</Link> */}
43+
<p className="text-destructive">An english version will be available soon !</p>
44+
</div>
45+
</Card>
46+
</div>
47+
);
48+
};
49+

frontend/src/pages/roadbook.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from "react";
2+
import { RoadBookCard } from "../components/roadbook/roadbookCard";
3+
4+
export const Roadbook: React.FC = () => {
5+
return (
6+
<div>
7+
<div className="bg-gray-100 min-h-screen py-6 px-4 sm:px-6 lg:px-8">
8+
<div className="max-w-7xl mx-auto space-y-8">
9+
<RoadBookCard />
10+
</div>
11+
</div>
12+
<br /><br />
13+
<footer className="bg-gray-800 text-white p-4 text-center">
14+
<p>&copy; 2025 Semaine d'Intégration UTT</p>
15+
</footer>
16+
</div>
17+
);
18+
};

frontend/src/vite-env.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ VITE_SERVICE_URL = "https://integration.utt.fr/"
33
VITE_CAS_LOGIN_URL = "https://cas.utt.fr/cas/login"
44
VITE_API_URL = "http://localhost:4001/api"
55
VITE_ANALYTICS_WEBSITE_ID = ""
6+
VITE_ROADBOOK_URL_FRENCH = ""
7+
VITE_ROADBOOK_URL_ENGLISH = ""

0 commit comments

Comments
 (0)