feat: devweb - update index.html to index.jsp

This commit is contained in:
kmitresse
2024-06-12 18:38:45 +02:00
parent 59daaec37d
commit adbb673045
6 changed files with 51 additions and 116 deletions
@@ -1,23 +1,30 @@
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="uppa.project.Global" %>
<%@ page import="uppa.project.web.translation.Translator" %>
<%@ page import="java.text.MessageFormat" %>
<%@taglib prefix="layout" tagdir="/WEB-INF/tags/layouts" %>
<%@taglib prefix="component" tagdir="/WEB-INF/tags/components" %>
<%@taglib prefix="form" tagdir="/WEB-INF/tags/forms" %>
<% Translator translator =(Translator)session.getAttribute("translator");%>
<layout:base title="Accueil">
<component:hero>
<p class="title is-2 mb-4 has-text-white">Plongez dans l'excitation de ${Global.APP_NAME}!</p>
<p style="max-width: 30em;" class="mb-6 subtitle has-text-white">
Défiez votre réactivité et dominez le jeu avec des amis dans cette course effrénée aux cartes !
Rejoignez maintenant pour vivre l'adrénaline.
</p>
<jsp:attribute name="head">
<script defer type="module" src="${pageContext.request.contextPath}/static/js/rewriteUrl.js"></script>
</jsp:attribute>
<jsp:body>
<component:hero>
<p class="title is-2 mb-4 has-text-white">${MessageFormat.format(translator.translate('index_main_sentence'), Global.APP_NAME)}</p>
<p style="max-width: 30em;" class="mb-6 subtitle has-text-white">
${MessageFormat.format(translator.translate('index_description'), Global.APP_NAME)}
</p>
<div class="buttons">
<a class="button is-light is-primary is-large" href="${pageContext.request.contextPath}/register">${translator.translate('register_title')}</a>
<a class="button is-primary is-large has-text-white" href="${pageContext.request.contextPath}/login">
${translator.translate('login_title')}
</a>
</div>
</component:hero>
</jsp:body>
</layout:base>
<div class="buttons">
<a class="button is-light is-primary is-large" href="${pageContext.request.contextPath}/register">S'inscrire</a>
<a class="button is-primary is-large has-text-white" href="${pageContext.request.contextPath}/login">
Se connecter
</a>
</div>
</component:hero>
</layout:base>
@@ -13,7 +13,7 @@
<% } else { %>
<a class="navbar-item" href="${pageContext.request.contextPath}/">
<a class="navbar-item" href="${pageContext.request.contextPath}/index">
<img src="${pageContext.request.contextPath}/static/img/CardsRushLogoBlack.svg" height="260" alt="Logo">
</a>
@@ -1,11 +1,11 @@
{
"index_main" : {
"EN" : "Dive into the excitement of CardRush!",
"FR" : "Plongez dans l'excitation de CardRush!"
"index_main_sentence" : {
"EN": "Dive into the excitement of {0}!",
"FR" : "Plongez dans l''excitation de {0}!"
},
"index_description" : {
"EN": "Challenge your reactivity and dominate the game with friends in this fast-paced card race! Join now to experience the adrenaline.",
"FR": "Défiez votre réactivité et dominez le jeu avec des amis dans cette course effrénée aux cartes ! Rejoignez maintenant pour vivre l'adrénaline."
"EN": "Challenge your reactivity and dominate the game with friends in this fast-paced card race! Join now to experience the adrenaline of {0}.",
"FR": "Défiez votre réactivité et dominez le jeu avec des amis dans cette course effrénée aux cartes ! Rejoignez maintenant pour vivre l''adrénaline de {0}."
},
"navbar_login" : {
"EN": "Login",
@@ -23,6 +23,10 @@
"EN": "Profile",
"FR": "Profil"
},
"footer" : {
"EN": "<strong>{0}</strong> by Kevin Mitressé & Lucàs Vabre. UPPA M1-TI 2024",
"FR": "<strong>{0}</strong> par Kevin Mitressé & Lucàs Vabre. UPPA M1-TI 2024"
},
"user_username" : {
"EN": "Username",
"FR": "Nom d'utilisateur"
@@ -484,8 +488,8 @@
"FR": "Salle de jeu"
},
"game_room_players_list" : {
"EN": "Players list in the game",
"FR": "Liste des joueurs dans la partie"
"EN": "List of participants",
"FR": "Liste des participants"
},
"game_room_connected_users_list" : {
"EN": "List of connected users",