Les début d'un nouveau style
This commit is contained in:
parent
b22b514574
commit
2c5f529e89
45
src/main/resources/static/css/form.css
Normal file
45
src/main/resources/static/css/form.css
Normal file
@ -0,0 +1,45 @@
|
||||
/* Common to all the answer buttons*/
|
||||
button.squared-button {
|
||||
border: 0;
|
||||
border-radius: 5px;
|
||||
color: #1F1A25;
|
||||
font-family: "Muli", Arial, sans-serif;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
padding: 1rem 2rem;
|
||||
font-size: 1rem;
|
||||
background-color: #78E0DC;
|
||||
box-shadow: 0 8px #2dc5bf;
|
||||
|
||||
margin-bottom: 12px;
|
||||
width: 145px;
|
||||
height: 65px;
|
||||
}
|
||||
|
||||
button.squared-button:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button.squared-button:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
button.squared-button:hover, button.squared-button:focus {
|
||||
background-color: #4fd6d1;
|
||||
}
|
||||
|
||||
button.squared-button:active {
|
||||
transform: translateY(4px);
|
||||
box-shadow: 0 3px #2dc5bf;
|
||||
}
|
||||
|
||||
/*@import url("https://fonts.googleapis.com/css?family=Muli:400,700,800&display=swap");
|
||||
|
||||
body {
|
||||
background: #1F1A25;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
}
|
||||
*/
|
||||
@ -2,6 +2,7 @@
|
||||
<html lang="fr" dir="ltr">
|
||||
<head>
|
||||
<div th:replace="~{html-head}"/>
|
||||
<link rel="stylesheet" th:href="@{/css/form.css}"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@ -10,28 +11,29 @@
|
||||
<main>
|
||||
<span id="question-text"></span>
|
||||
<span id="question-counter">0/0</span>
|
||||
<div id="answers">
|
||||
<div id="answer-select">
|
||||
<button id="answer-select-duo">Duo</button>
|
||||
<button id="answer-select-carre">Carré</button>
|
||||
<button id="answer-select-cache">Cache</button>
|
||||
<button class="squared-button" id="answer-select-duo">Duo</button>
|
||||
<button class="squared-button" id="answer-select-carre">Carré</button>
|
||||
<button class="squared-button" id="answer-select-cache">Cache</button>
|
||||
</div>
|
||||
<div id="answer-cache">
|
||||
<input id="answer-cache-input" type="text"/>
|
||||
<button id="answer-cache-button">Envoyer la réponse</button>
|
||||
<button class="squared-button" id="answer-cache-button">Envoyer la réponse</button>
|
||||
</div>
|
||||
<div id="answer-duo">
|
||||
<button id="answer-duo-button-1"></button>
|
||||
<button id="answer-duo-button-2"></button>
|
||||
<button class="squared-button" id="answer-duo-button-1"></button>
|
||||
<button class="squared-button" id="answer-duo-button-2"></button>
|
||||
</div>
|
||||
<div id="answer-carre">
|
||||
<button id="answer-carre-button-1"></button>
|
||||
<button id="answer-carre-button-2"></button>
|
||||
<button id="answer-carre-button-3"></button>
|
||||
<button id="answer-carre-button-4"></button>
|
||||
<button class="squared-button" id="answer-carre-button-1"></button>
|
||||
<button class="squared-button" id="answer-carre-button-2"></button>
|
||||
<button class="squared-button" id="answer-carre-button-3"></button>
|
||||
<button class="squared-button" id="answer-carre-button-4"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<span id="error-textbox" style="color: red"></span>
|
||||
<button id="question-button">Poser la question</button>
|
||||
<button class="squared-button" id="question-button">Poser la question</button>
|
||||
<script th:inline="javascript">
|
||||
/*<![CDATA[*/
|
||||
var qid = /*[[${formid}]]*/ -1;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>Misael</title>
|
||||
<link rel="stylesheet" th:href="@{/css/style.css}">
|
||||
<link rel="stylesheet" th:href="@{/css/style.css}"/>
|
||||
<!-- Fontawesome CDN Link -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
Loading…
x
Reference in New Issue
Block a user