Update css + add command and about pages, clear focus problem
This commit is contained in:
parent
f002c5374c
commit
3ed30ba826
4 changed files with 236 additions and 11 deletions
36
public_html/about.html
Normal file
36
public_html/about.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="./css/style.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="./assets/logo.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body id="background-image">
|
||||
<header>
|
||||
<nav>
|
||||
<label for="toggle" class="lab">☰</label>
|
||||
<input type="checkbox" id="toggle">
|
||||
<div class="menu">
|
||||
<img id="logo" src="./assets/logo.png" alt="background">
|
||||
<a href="index.html">Accueil</a>
|
||||
<a href="commands.html">Commandes</a>
|
||||
<a href="about.html">À Propos</a>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
<div class="box">
|
||||
<p id="about"> Ce site a été fait par RODRIGUEZ Leandro, LASSERRE Victor, Marty Killian , et REBILLARD Baptiste.</p>
|
||||
<p id="about"> Ce jeu a été fait dans le cadre de la formation de L'INSA Toulouse option IR.</p>
|
||||
<p id="about"> Ce projet a été fait dans le cadre du cours de Web, et est donc assez basique.</p>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<p>© 2023 - Grand Tabernacle Auto</p>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
43
public_html/commands.html
Normal file
43
public_html/commands.html
Normal file
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="./css/style.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="./assets/logo.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body id="background-image">
|
||||
<header>
|
||||
<nav>
|
||||
<label for="toggle" class="lab">☰</label>
|
||||
<input type="checkbox" id="toggle">
|
||||
<div class="menu">
|
||||
<img id="logo" src="./assets/logo.png" alt="background">
|
||||
<a href="index.html">Accueil</a>
|
||||
<a href="commands.html">Commandes</a>
|
||||
<a href="about.html">À Propos</a>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
<div class="box">
|
||||
<h3> Commandes : </h3>
|
||||
<ul>
|
||||
<li>Haut: Z ou fleche du haut</li>
|
||||
<li>Bas: S ou fleche du bas</li>
|
||||
<li>Gauche: Q ou fleche de gauche</li>
|
||||
<li>Droite: D ou fleche de droite</li>
|
||||
<li>Tirer: Clic Gauche </li>
|
||||
<li>Viser: Souris</li>
|
||||
<li>Ouvrir le telephone: P</li>
|
||||
</ul>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<p>© 2023 - Grand Tabernacle Auto</p>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -17,13 +17,15 @@ body {
|
|||
}
|
||||
|
||||
|
||||
footer{
|
||||
|
||||
|
||||
footer {
|
||||
color: rgb(180, 167, 167);
|
||||
font-weight: bold;
|
||||
|
||||
|
||||
}
|
||||
|
||||
header{
|
||||
header {
|
||||
display: block;
|
||||
width: 100vw;
|
||||
}
|
||||
|
@ -33,21 +35,127 @@ h1 {
|
|||
color: #ffffff;
|
||||
}
|
||||
|
||||
h2{
|
||||
h2 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#logo{
|
||||
display:none;
|
||||
#logo {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1200px) {
|
||||
#about{
|
||||
color: rgb(255, 255, 255);
|
||||
font-weight: bold;
|
||||
font-family:sans-serif,calibri;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 700px) { /*petit*/
|
||||
|
||||
|
||||
nav {
|
||||
height: 60px;
|
||||
background: #00000050;
|
||||
}
|
||||
|
||||
#toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
background: #00000050;
|
||||
height: 10vh;
|
||||
margin-top: 1.29vh;
|
||||
}
|
||||
|
||||
nav a {
|
||||
margin: 0.8vh;
|
||||
font-size: 1.5em;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
color: #dadd0f;
|
||||
}
|
||||
|
||||
.lab {
|
||||
width: 30px;
|
||||
display: flex;
|
||||
margin: 0 auto;
|
||||
font-size: 40px;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#toggle:checked+.menu {
|
||||
display: flex;
|
||||
font-weight: bold;
|
||||
}
|
||||
.box{
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width: 700px) { /*grand*/
|
||||
|
||||
.box{
|
||||
font-size: 2.5em;
|
||||
}
|
||||
.lab {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nav {
|
||||
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 9.5vh;
|
||||
display: flex;
|
||||
background: #00000050;
|
||||
}
|
||||
|
||||
|
||||
|
||||
nav a {
|
||||
width: 15%;
|
||||
margin-left: 1vw;
|
||||
margin-right: 1vw;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100px;
|
||||
text-decoration: none;
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
color: #dadd0f;
|
||||
}
|
||||
|
||||
nav .menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
#logo {
|
||||
display: block;
|
||||
width: 100px;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
display: block;
|
||||
/*background-color: rgba(255, 255, 255, 0.466);*/
|
||||
|
@ -83,8 +191,31 @@ main {
|
|||
}
|
||||
|
||||
|
||||
ul{
|
||||
color:rgb(255, 255, 255);
|
||||
font-weight: bold;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
|
||||
h3 {
|
||||
color: rgb(255, 255, 255);
|
||||
font-weight: bold ;
|
||||
text-decoration: underline;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 60vw;
|
||||
height: 60vh;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 20px;
|
||||
margin: 10px;
|
||||
padding: 10px;
|
||||
|
||||
}
|
||||
|
||||
#background-image {
|
||||
background-image: url('../assets/bg.webp');
|
||||
|
|
|
@ -10,7 +10,16 @@
|
|||
|
||||
<body id="background-image">
|
||||
<header>
|
||||
<img id="logo" src="./assets/logo.png" alt="background">
|
||||
<nav>
|
||||
<label for="toggle" class="lab">☰</label>
|
||||
<input type="checkbox" id="toggle">
|
||||
<div class="menu">
|
||||
<img id="logo" src="./assets/logo.png" alt="background">
|
||||
<a href="index.html">Accueil</a>
|
||||
<a href="commands.html">Commandes</a>
|
||||
<a href="about.html">À Propos</a>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
<h1>Grand Tabernacle Auto</h1>
|
||||
|
@ -23,7 +32,7 @@
|
|||
<label id="form_buttonLabel" for="checkbox">
|
||||
<button id="form_button" type="submit">Go!</button>
|
||||
</label>
|
||||
<label id="form_toggle" for="checkbox" data-title="Jouer"></label>
|
||||
<label id="form_toggle" for="checkbox" data-title="Jouer" onclick="moveFocus()"></label>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -40,4 +49,10 @@
|
|||
window.addEventListener('keyup', (event) => {
|
||||
document.cookie = "pseudo=" + pseudo.value
|
||||
})
|
||||
</script>
|
||||
|
||||
function moveFocus(){
|
||||
setTimeout(function () {
|
||||
document.getElementById('form_input').focus();
|
||||
}, 200)
|
||||
}
|
||||
</script>
|
Loading…
Reference in a new issue