parent
ad0aad0b1c
commit
06b17c2b1f
@ -0,0 +1,76 @@
|
|||||||
|
@import url(./style.css);
|
||||||
|
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Lemon&display=swap');
|
||||||
|
|
||||||
|
body, html {
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ====== DARK MODE ====== */
|
||||||
|
body.dark-mode h1, body.dark-mode h2, body.dark-mode p {
|
||||||
|
color: white;
|
||||||
|
font-family: "Lemon", serif;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ====== LIGHT MODE ====== */
|
||||||
|
body.light-mode h1, body.light-mode h2, body.light-mode p {
|
||||||
|
color: black;
|
||||||
|
font-family: "Lemon", serif;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ====== OTHER ====== */
|
||||||
|
|
||||||
|
.header {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
height: 17%;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav img {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo img {
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user img {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#form {
|
||||||
|
width: 80%;
|
||||||
|
height: 83%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark-mode #box {
|
||||||
|
background-color: #1b0048;
|
||||||
|
padding: 20px;
|
||||||
|
width: 50%;
|
||||||
|
margin: auto;
|
||||||
|
border-radius: 15px;
|
||||||
|
border: 1px solid #6100ff;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ====== DIVERS ====== */
|
||||||
|
#contentField, #characterField, #sourceField, #imageField {
|
||||||
|
}
|
||||||
|
|
||||||
|
#contentField p, #characterField p, #sourceField p, #imageField p {
|
||||||
|
}
|
||||||
|
|
||||||
|
#confirm {
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
namespace Enum;
|
||||||
|
|
||||||
|
enum TypeSourceEnum : string {
|
||||||
|
case Movie = 'movie';
|
||||||
|
case VideoGame = 'video-game';
|
||||||
|
case Anime = 'anime';
|
||||||
|
case TV = 'tv';
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Wiki Fantasy : Submit Quote</title>
|
||||||
|
<link id="favicon" rel="icon" href="../../images/iconeSombre.ico"> <!-- Par défaut sombre -->
|
||||||
|
<link rel="stylesheet" href="../../public/styles/styleSubmitQuote.css">
|
||||||
|
<script defer src="../../public/script/theme-toggle.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
{% include "bandeau.html.twig" %}
|
||||||
|
|
||||||
|
<h1>▶ Your quote has been submitted successfully ◀</h1>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
|
||||||
|
<div id="box">
|
||||||
|
|
||||||
|
<div id="contentField">
|
||||||
|
|
||||||
|
<p>Contenu *</p>
|
||||||
|
<h2>{{ content }}</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="characterField">
|
||||||
|
|
||||||
|
<p>Personnage *</p>
|
||||||
|
<h2>{{ character }}</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="sourceField">
|
||||||
|
|
||||||
|
<p>Source *</p>
|
||||||
|
<h2>{{ source }}</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<button onclick="window.location.href='/';"> Revenir à l'acceuil</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,63 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Wiki Fantasy : Submit Quote</title>
|
||||||
|
<link id="favicon" rel="icon" href="../../images/iconeSombre.ico"> <!-- Par défaut sombre -->
|
||||||
|
<link rel="stylesheet" href="../../public/styles/styleSubmitQuote.css">
|
||||||
|
<script defer src="../../public/script/theme-toggle.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
{% include "bandeau.html.twig" %}
|
||||||
|
|
||||||
|
<h1>▶ Submit a Quote ◀</h1>
|
||||||
|
|
||||||
|
<form id="form" method="post" action="/validsubmit">
|
||||||
|
|
||||||
|
<div id="box">
|
||||||
|
|
||||||
|
<div id="contentField">
|
||||||
|
|
||||||
|
<p>Contenu *</p>
|
||||||
|
<input type="text" id="content" name="content" placeholder="Entrez le contenu de la citation" required/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="characterField">
|
||||||
|
|
||||||
|
<p>Personnage *</p>
|
||||||
|
<input type="text" id="character" name="character" placeholder="Entrez le/la personnage de la citation" required/>
|
||||||
|
{% if errors[0] is defined and errors[0] is not empty %}
|
||||||
|
<p style="color: red">{{ errors[0] }}</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="sourceField">
|
||||||
|
|
||||||
|
<p>Source *</p>
|
||||||
|
<input type="text" id="source" name="source" placeholder="Entrez la source de la citation" required/>
|
||||||
|
{% if errors[1] is defined and errors[1] is not empty %}
|
||||||
|
<p style="color: red">{{ errors[1] }}</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="imageField">
|
||||||
|
|
||||||
|
<p>Image *</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="confirm">
|
||||||
|
<input type="submit" class="btn" name="action" value="Soumettre"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in new issue