Verified Commit 0ec7b6ae authored by Thibaut Broggi's avatar Thibaut Broggi
Browse files

Start html page

      Full-CSS tabs system
      Links between tabs (to next/previous tab)
parent 551c05e5
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./style.css" />
<title>Soutenez La Quadrature du Net !</title>
</head>
<body>
<nav>
<span>LQDN</span>
<label for="step1">1</label>
<label for="step2">2</label>
<label for="step3">3</label>
<label for="step4">4</label>
<label for="step5">5</label>
</nav>
<div id="inputs">
<input type="radio" name="step" id="step1" checked/>
<div>
<h2>Choisissez 2 couleurs</h2>
<div class="navButtons">
<label for="step2" class="nextButton">ÉTAPE SUIVANTE &rsaquo;</label>
</div>
</div>
</input>
<input type="radio" name="step" id="step2" />
<div>
<h2>Remplissez le texte à trou</h2>
<div class="navButtons">
<label for="step1" class="prevButton">&lsaquo;</label>
<label for="step3" class="nextButton">ÉTAPE SUIVANTE &rsaquo;</label>
</div>
</div>
<input type="radio" name="step" id="step3" />
<div>
<h2>Choisissez votre police</h2>
<div class="navButtons">
<label for="step2" class="prevButton">&lsaquo;</label>
<label for="step4" class="nextButton">ÉTAPE SUIVANTE &rsaquo;</label>
</div>
</div>
<input type="radio" name="step" id="step4" />
<div>
<h2>Choisissez votre icône</h2>
<div class="navButtons">
<label for="step3" class="prevButton">&lsaquo;</label>
<label for="step5" class="nextButton">ÉTAPE SUIVANTE &rsaquo;</label>
</div>
</div>
<input type="radio" name="step" id="step5" />
<div>
<h2>Signez votre création ! (optionnel)</h2>
<div class="navButtons">
<label for="step4" class="prevButton">&lsaquo;</label>
<label class="nextButton">GÉNÉRER &rsaquo;</label>
</div>
</div>
</div>
<main>
</main>
</body>
</html>
html, body {
height: 100vh;
width: 100vw;
}
body {
margin: 0;
}
nav {
display: block;
width: 7vw;
height: 100%;
float: left;
background-color: #2f5188;
color: white;
text-align: center;
font-size: 6vw;
}
nav > * {
display: inline-block;
width: 7vw;
height: 7vw;
}
div#inputs {
width: 30vw;
float: left;
background-color: white;
height: 100%;
}
div#inputs > input[type=radio],
div#inputs > input[type=radio] + div {
display: none;
}
#inputs > input[type=radio]:checked + div {
display: block;
}
div.navButtons {
float: right;
margin-right: 20px;
}
div.navButtons > label {
display: inline-block;
cursor: pointer;
height: 50px;
line-height: 50px;
text-align: center;
}
label.nextButton {
color: white;
background-color: #497ed5;
width: 200px;
}
label.prevButton {
width: 50px;
border: 1px solid #497ed5;
}
main {
background-color: #dde5f1;
height: 100%;
width: 100%;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment