1
0
Fork 0

Revert "changement design"

This reverts commit 96948d693c.
This commit is contained in:
Ethanell 2019-12-15 00:10:52 +01:00
parent b4170fbaff
commit d481a748af
7 changed files with 972 additions and 106 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 322 KiB

After

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 487 KiB

After

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 273 KiB

After

Width:  |  Height:  |  Size: 217 KiB

View file

@ -1,117 +1,578 @@
body{
/*204, 25, 25*/
/*==========================================================================================*/
/*BODY + GENERAL*/
body {
background-color: rgb(0, 0, 0);
background-image: linear-gradient(rgba(107, 6, 6, 0.5) 2px, transparent 2px), linear-gradient(90deg, rgba(80, 7, 7, 0.5) 2px, transparent 2px), linear-gradient(rgba(61, 61, 61, 0.28) 1px, transparent 1px), linear-gradient(90deg, rgba(63, 63, 63, 0.28) 1px, transparent 1px);
background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background-color: #bbb;
font-family: 'Roboto', sans-serif;
}
#content {
margin-left: 8vw;
margin-right: 8vw;
}
h1 {
font-size: 2vw;
color: white;
}
body>#bienvenue>h1 {
font-size: 2vw;
color: white;
text-align: center;
}
body>#bienvenue>h2 {
font-size: 1.5vw;
color: lightgrey;
text-align: center;
}
button#hautPage {
position: fixed;
z-index: 1;
left: 95%;
top: 90%;
padding: 1vw 1vw;
background-color: rgba(0, 0, 0, 0.5);
border: 0.1vw solid rgb(204, 25, 25);
color: white;
}
button#hautPage>img {
width: 2vw;
}
/*=====================================*/
/*NAVBAR*/
a{
color: black;
a#kyflo {
font-size: 3vw;
color: rgb(204, 25, 25);
padding: 0.5vw 1vw;
transform: none;
border: none;
}
.header{
background-color: white;
width: 100%;
z-index: 3;
box-shadow: 1px 1px 4px 0 rgba(0,0,0,0.1);
a#nous {
border-right: 0.15vw solid rgb(204, 25, 25);
border-left: 0.15vw solid rgb(204, 25, 25);
}
.header ul{
margin: 0;
padding : 0;
list-style: none;
overflow: hidden;
background-color: white;
#panier {
float: right;
width: 9%;
padding: 1.2vw 1vw;
border-left: 0.15vw solid rgb(204, 25, 25);
margin-right: -6%;
}
.header ul a{
a#panier>h3{
margin-top :0.5vw;
margin-bottom: 0;
color: white;
}
#loupe {
float: right;
display: block;
padding: 20px;
border-right: 1px solid #aaa;
color: rgb(255, 255, 255);
text-align: center;
margin-top: 1.2vw;
margin-right: 2vw;
padding: 0.5vw;
border: 0.1vw solid rgb(204, 25, 25);
text-decoration: none;
font-size: 1vw;
font-weight: bold;
transform: none;
border-left: none;
background-color: rgb(204, 25, 25);
}
.header ul a:hover{
background-color: #ddd;
#loupe:hover {
color: rgb(0, 0, 0);
transition-duration: 0.2s;
}
.header .logo {
.topnav {
overflow: hidden;
background-color: rgba(22, 22, 22, 0.61);
border-bottom: 0.15vw solid rgb(204, 25, 25);
}
.topnav a {
float: left;
display: block;
font-size: 2em;
color: rgb(255, 255, 255);
text-align: center;
padding: 1.8vw 1.4vw;
text-decoration: none;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
padding: 10px 20px;
font-size: 1vw;
border-right: 0.15vw solid rgb(204, 25, 25);
font-weight: bold;
transform: skew(-0.2rad);
}
.header .menu {
clear: both;
max-height: 0;
transition: max-height 0.3s ease-out;
.topnav a:hover {
background-color: rgb(204, 25, 25);
color: rgb(0, 0, 0);
}
.header .menu-icon{
padding: 28px 20px;
position: relative;
.topnav a#nous:hover,
a#contactN:hover {
padding: 1.8vw 2.5vw;
}
.topnav a#kyflo:hover {
color: white;
background-color: rgb(22, 22, 22);
}
.topnav a#panier:hover {
background-color: black;
margin-right: -2%;
}
.topnav input[type=text] {
float: right;
cursor: pointer;
padding: 0.5vw;
width: 40%;
border: 0.1vw solid rgb(204, 25, 25);
font-size: 1vw;
margin-top: 1.2vw;
background-color: rgb(22, 22, 22);
}
.header .menu-icon .nav-icon{
background: #333;
display: block;
height: 2px;
width: 18px;
position: relative;
transition: background 0.2s ease-out;
/*======================================*/
/*FOOTER*/
footer {
margin-top: 8vw;
bottom: 0;
}
.header .menu-icon .nav-icon:before{
background: #333;
content:"";
display: block;
height: 100%;
position: absolute;
footer>div>table {
width: 100%;
top: 5px;
transition: all 0.2s ease-out;
border-top: 0.1vw solid rgb(204, 25, 25);
background-color: rgb(27, 27, 27);
margin: auto;
padding: 0vw 8vw;
}
.header .menu-icon .nav-icon:after{
background: #333;
content:"";
display: block;
height: 100%;
position: absolute;
a {
text-decoration: none;
color: grey;
}
a:hover {
color: rgb(204, 25, 25);
transition-duration: 0.4s;
}
tr {
border-bottom: 0.2vw solid red;
color: white;
height: 5vw;
}
th {
font-size: 2vw;
text-align: left;
border-bottom: 0.1vw solid white;
}
th#line {
border: none;
}
button#contactB {
margin: auto;
display: flex;
justify-content: center;
padding: 1.5vw 4vw;
font-size: 1.5vw;
color: lightgrey;
background-color: rgb(27, 27, 27);
border: 0.1vw solid rgb(204, 25, 25);
transform: skew(-.312rad);
margin-bottom: 2vw;
}
button#contactB:hover {
background-color: rgb(204, 25, 25);
transition-duration: 0.5s;
border-radius: 1vw;
}
td {
width: 20%;
font-size: 1.5vw;
}
td#contact {
width: 100%;
transition: all 0.2s ease-out;
top: -5px;
}
.header .menu-btn{
display: none;
/*======================================*/
/*FLEX CONTAINER*/
.flex-container {
display: flex;
flex-wrap: wrap;
}
.header .menu-btn:checked ~ .menu{
max-height: 240px;
.flex-container>div {
background-color: rgba(59, 59, 59, 0.5);
width: 30%;
margin: 1vw;
text-align: center;
line-height: 3vw;
font-size: 30px;
}
.header .menu-btn:checked ~ .menu-icon .nav-icon{
background-color: transparent;
.flex-container>div>a>h3 {
text-align: left;
font-size: 2vw;
margin-left: 35%;
color: lightgrey;
}
.header .menu-btn:checked ~ .menu-icon .nav-icon:before{
transform: rotate(-45deg);
top: 0;
.flex-container>div>a>h4 {
text-align: left;
font-size: 1.5vw;
margin-left: 35%;
color: lightgrey;
}
.header .menu-btn:checked ~ .menu-icon .nav-icon:after{
transform: rotate(45deg);
top: 0;
.flex-container>div>a>img {
width: 30%;
margin-top: 10%;
}
/*========================================*/
/*==========================================*/
/*CONFIRMATION COMMENTAIRE*/
#Merci>h1 {
font-size: 2.8vw;
color: white;
text-align: center;
margin-top: 7%;
}
#Merci>h2 {
font-size: 2vw;
text-align: center;
margin-top: 5%;
}
#Merci>h2>a {
color: lightgrey;
text-decoration: none;
}
#Merci>h2>a:hover {
color: rgb(204, 25, 25);
}
#Merci>img {
display: block;
margin-left: auto;
margin-right: auto;
width: 10%;
margin-top: 5%;
float: none;
}
/*==========================================*/
/*==========================================*/
/* CSS DESCRIPTION PRODUIT */
/*EN TETE PRODUIT*/
#Produit {
margin-top: 5%;
}
#Produit>h1 {
text-align: left;
font-size: 4vw;
margin-left: 25%;
}
#Produit>h2#barre {
text-decoration: line-through;
}
#Produit>h2 {
text-align: left;
font-size: 3vw;
margin-left: 25%;
color: red;
}
#Produit>h2#barre {
text-decoration: line-through;
}
#Produit>h3 {
text-align: left;
font-size: 1.5vw;
margin-left: 25%;
color: lightgrey;
}
#Produit>img {
width: 20%;
float: left;
border: 0.2vw solid rgb(204, 25, 25);
border-radius: 10px;
background-color: rgba(0, 0, 0, 0.5);
}
#Produit>button {
background-color: rgba(0, 0, 0, 0.5);
padding: 1vw 1vw;
float: right;
text-align: center;
font-size: 2vw;
margin-right: 10%;
color: white;
border: 0.1vw solid rgb(204, 25, 25);
}
#Produit>button:hover {
color: white;
background-color: rgba(204, 25, 25, 0.5);
transition-duration: 0.5s;
border-radius: 2vw;
}
/*=====================*/
/* MOSAIQUE PRODUITS*/
#produits {
border: 0.1vw solid red;
background-color: rgba(0, 0, 0, 0.5);
margin-top: 3vw;
padding: 2vw 2vw;
}
img {
width: 30%;
float: left;
}
h3,
h4 {
color: white;
}
h3:hover {
color: rgb(204, 25, 25);
transition-duration: 0.2s;
}
/*================================================*/
/*CARACTERISTIQUES PRODUIT*/
#Carac {
width: 100%;
border-top: 0.2vw solid rgb(204, 25, 25);
margin-top: 8%;
}
#Carac>h1 {
font-size: 3vw;
color: white;
}
#Carac>h2 {
font-size: 1.5vw;
color: lightgrey;
}
/*================================================*/
/*COMMENTAIRES CLIENT*/
#Client {
width: 100%;
margin-left: 5%;
}
#Client>div>h1 {
font-size: 2vw;
color: white;
margin-left: 8%;
}
#Client>div>h2 {
font-size: 1vw;
color: yellow;
margin-left: 8%;
}
#Client>div>h3 {
font-size: 1.5vw;
color: lightgrey;
margin-left: 8%;
}
#Client>div>img {
float: left;
width: 7%;
border-radius: 50%;
}
#Client>div {
margin-bottom: 3%;
border-bottom: 0.1vw solid rgb(134, 134, 134);
margin-right: 8%;
}
/*================================================*/
/*ESPACE LAISSER COMMENTAIRE*/
#Coms {
width: 95%;
border-top: 0.2vw solid rgb(204, 25, 25);
margin-top: 5%;
padding: 2vw 2vw;
}
#Coms>h1 {
font-size: 3vw;
color: white;
}
#Coms>h2 {
font-size: 3vw;
color: white;
border-top: 0.2vw dashed rgb(204, 25, 25);
text-align: center;
}
#Coms {
background-color: rgba(0, 0, 0, 0.5);
border: 0.1vw solid rgb(204, 25, 25);
}
#Coms>form>h1 {
font-size: 1.5vw;
color: white;
}
input,
select {
width: 20%;
padding: 1vw 1vw;
font-size: 1.5vw;
background-color: rgb(27, 27, 27);
color: white;
border: 0.1vw solid rgba(255, 255, 255, 0.5);
border-radius: 3vw;
}
input:hover {
border-radius: 0vw;
transition-duration: 0.5s;
}
input:valid {
border-radius: 0vw;
transition-duration: 0.5s;
border: 0.1vw solid rgb(8, 170, 8);
}
input[placeholder=Commentaire],
select,
input[placeholder="Question, suggestion, remarque"],
select {
width: 60%;
padding: 1vw 1vw;
font-size: 1.5vw;
}
input[type=submit],
select {
width: 20%;
padding: 1vw 1vw;
font-size: 1.5vw;
background-color: rgba(0, 0, 0, 0.5);
border: 0.15vw solid rgb(204, 25, 25);
color: white;
display: block;
margin-left: auto;
margin-right: auto;
}
input[type=submit]:hover {
color: rgb(255, 255, 255);
background-color: rgba(204, 25, 25, 0.5);
transition-duration: 0.5s;
border: 0.15vw solid rgb(0, 0, 0);
border-radius: 2vw;
}
h1#valider {
text-align: center;
}
table>tr>td>input {
border: 0vw solid white;
background-color: rgba(255, 255, 255, 0);
}
/*================================================*/
/*==========================================================================================*/
/*Slide des promotions*/
@ -143,15 +604,33 @@ div#slider {
}
@keyframes slidy {
0% {left: 0%;}
20% {left: 0%;}
25% {left: -100%;}
45% {left: -100%;}
50% {left: -200%;}
70% {left: -200%;}
75% {left: -300%;}
95% {left: -300%;}
100% {left: -400%;}
0% {
left: 0%;
}
20% {
left: 0%;
}
25% {
left: -100%;
}
45% {
left: -100%;
}
50% {
left: -200%;
}
70% {
left: -200%;
}
75% {
left: -300%;
}
95% {
left: -300%;
}
100% {
left: -400%;
}
}
div#slider figure {
@ -164,4 +643,123 @@ div#slider figure {
text-align: left;
animation: 16s slidy infinite;
}
/*==========================================================================================*/
/*Panier*/
form[action="commande.html"]>h1 {
font-size: 1.5vw;
}
form[action="commande.html"]>input[type=text],
select {
width: 50%;
padding: 1vw 1vw;
font-size: 1.5vw;
}
#livraison {
background-color: rgba(0, 0, 0, 0.5);
border: 0.1vw solid rgb(204, 25, 25);
margin-top: 5vw;
}
input[type=number],
select {
border: 0.1vw solid white;
}
table#basket {
margin-top: 5vw;
background-color: rgba(0, 0, 0, 0.5);
text-align: center;
border: 0.1vw solid rgb(204, 25, 25);
}
tr#cent>th {
text-align: center;
}
td#total {
text-align: right;
color: rgb(204, 25, 25);
font-size: 2vw;
font-weight: bold;
padding: 0vw 2vw;
}
/*=================================*/
/*CONTACT*/
#content>h1 {
text-align: center;
font-size: 3vw;
}
#content>form>h2 {
font-size: 1.5vw;
color: lightgrey;
}
table#reseaux {
width: 70%;
margin: auto;
}
tr#res>td {
text-align: center;
}
tr#res>td>a>img {
float: none;
}
/*===========================*/
/*QUI SOMMES NOUS*/
#content>h1 {
margin-top: 3vw;
}
#content>h2 {
font-size: 2vw;
color: white;
text-align: left;
margin-top: 5vw;
}
#content>ul>li>h3 {
font-size: 1.5vw;
color: lightgrey;
}
table#equipe {
width: 100%;
}
tr#equ>td {
text-align: center;
}
tr#equ>td>img {
float: none;
width: 20%;
border: 0.2vw solid rgb(204, 25, 25);
}
/*=========================*/
/*====================================*/

View file

@ -1,22 +1,216 @@
@media (min-width:48em){
.header{
position: fixed;
@media screen and (max-width: 900px) {
/*===========GENERAL===========*/
h1{
font-size: 3vw;
}
.header li{
float: left;
body>#bienvenue>h1 {
font-size: 3vw;
}
.header li a{
padding: 20px 30px;
body>#bienvenue>h2 {
font-size: 2vw;
}
.header .menu{
clear: none;
float: right;
max-height: none;
}
.header .menu-icon{
button#hautPage{
display:none;
}
/*===========NAVBAR===========*/
.topnav{
position: static;
}
.topnav input[type=text] {
float: none;
display: block;
text-align: left;
width: 76.5%;
margin: 0;
padding: 2vw;
border: none;
transform: none;
font-size: 3vw;
}
.topnav a {
float: none;
display: block;
text-align: left;
width: 100%;
margin: 0;
padding: 2vw;
border: none;
transform: none;
font-size: 3vw;
}
.topnav a#kyflo{
font-size: 8vw;
text-align: center;
}
.topnav a#panier,
a#nous {
border: none;
}
.topnav a#panier{
width: 20%;
margin-right: -14%;
}
.topnav a#panier:hover{
margin-right: -14%;
}
.topnav a#nous:hover,
a#contactN:hover {
padding: 2vw 2vw;
}
.topnav a#loupe {
width: 5%;
padding: 1vw;
font-size: 3vw;
border-left: 0.1vw solid rgb(204, 25, 25)
}
.topnav input[type=text] {
border: 1px solid rgb(190, 73, 73);
}
.topnav a#panier>h3{
display:none;
}
/*===========FLEX CONTAINER===========*/
.flex-container>div {
width: 85%;
margin-left: auto;
margin-right: auto;
}
.flex-container>div>a>img {
width: 20%;
margin-top: 3%;
margin-left: 10%;
}
.flex-container>div>a>h3,
.flex-container>div>a>h4 {
margin-left: 50%;
}
#content {
margin-left: 2vw;
margin-right: 2vw;
}
/*========FOOTER=========*/
tr {
border-bottom: 0.2vw solid red;
color: white;
height: 5vw;
}
th {
font-size: 2.5vw;
}
th#line {
border: none;
}
button#contactB {
margin: auto;
display: flex;
justify-content: center;
padding: 1.5vw 4vw;
font-size: 2vw;
color: lightgrey;
background-color: rgb(27, 27, 27);
border: 0.1vw solid rgb(204, 25, 25);
transform: skew(-.312rad);
margin-bottom: 2vw;
}
button#contactB:hover {
background-color: rgb(204, 25, 25);
transition-duration: 0.5s;
border-radius: 1vw;
}
td {
width: 20%;
font-size: 2vw;
}
td#contact {
width: 100%;
}
/*=======FLEX CONTAINER========*/
.flex-container {
justify-content: center;
}
.flex-container>div {
width: 80%;
margin: 1vw;
line-height: 5vw;
}
.flex-container>div>a>h3 {
font-size: 3vw;
}
.flex-container>div>a>h4 {
font-size: 2.5vw;
}
.flex-container>div>a>img {
width: 20%;
margin-top: 5%;
}
/*=====Produits=======*/
#Produit>h3 {
font-size: 2vw;
}
#Carac>h2 {
font-size: 2vw;
color: lightgrey;
}
#Client>div>h1 {
font-size: 2.8vw;
}
#Client>div>h3 {
font-size: 1.5vw;
}
input, select {
font-size: 2.5vw;
}
input[placeholder=Commentaire],
select,
input[placeholder="Question, suggestion, remarque"],
select {
width: 60%;
padding: 1vw 1vw;
font-size: 2.5vw;
}
input[type=submit],
select {
font-size: 2.5vw;
}
#Coms>form>h1 {
font-size: 2.5vw;
}
#content>h1 {
margin-top: 3vw;
font-size: 3vw;
}
#content>h2 {
font-size: 2.5vw;
}
#content>ul>li>h3 {
font-size: 2vw;
}
}

View file

@ -13,16 +13,23 @@
</head>
<body>
<header class="header">
<a href="/" class="logo">KYFLO</a>
<input class="menu-btn" type="checkbox" id="menu-btn"/>
<label class="menu-icon" for="menu-btn"><span class="nav-icon"></span></label>
<ul class="menu">
<li><a href="#">A propos</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Panier</a></li>
</ul>
</header>
<nav>
<div class="topnav">
<a id="kyflo" class="active" href="index.html">KyFlo</a>
<a id="nous" href="Assets/Pages/Autres/nous.html">A propos</a>
<a id="contactN" href="Assets/Pages/Autres/contact.html">Contact</a>
<a id="panier" href="Assets/Pages/Autres/checkout.html"><img src="Assets/Images/Icones/cart.png" alt><h3>Panier</h3></a>
<a id="loupe" href="Assets/Pages/Autres/search_result.html">GO</a>
<input type="text" placeholder="Rechercher sur tout le site...">
</div>
</nav>
<div id="bienvenue">
<h1>Bienvenue sur le site de KyFlo !</h1>
<h2>Vendeur de robot depuis 2010 !</h2>
</div>
<div id="slider">
<figure>
<a href="Assets/Pages/Produits/nao.html"><img src="Assets/Images/Promotions/promo1.png" alt></a>
@ -32,6 +39,73 @@
<a href="Assets/Pages/Produits/nao.html"><img src="Assets/Images/Promotions/promo1.png" alt></a>
</figure>
</div>
<button id="hautPage" onclick="window.location.href='#kyflo'"><img src="Assets/Images/Icones/arrow.png" alt></button>
<div id="content">
<div id="produits">
<h1>Tout nos produits :</h1>
<div class="flex-container">
<div>
<a href="#produits"><img src="Assets/Images/Produits/soldat.png" alt>
<h3>Robot soldat</h3>
<h4>Rupture de stock</h4>
</a>
</div>
<div>
<a href="Assets/Pages/Produits/nao.html"><img src="Assets/Images/Produits/nao.png" alt>
<h3>Robot Nao</h3>
<h4>5 000€</h4>
</a>
</div>>
<div>
<a href="Assets/Pages/Produits/r2d2.html"><img src="Assets/Images/Produits/r2d2.png" alt>
<h3>Robot r2d2</h3>
<h4>500€</h4>
</a>
</div>
<div>
<a href="#produits"><img src="Assets/Images/Produits/valkyrie.png" alt>
<h3>Robot valkyrie</h3>
<h4>Rupture de stock</h4>
</a>
</div>
<div>
<a href="Assets/Pages/Produits/pepper.html"><img src="Assets/Images/Produits/pepper.png" alt>
<h3>Robot Pepper</h3>
<h4>15 000€</h4>
</a>
</div>
<div>
<a href="Assets/Pages/Produits/terminator.html"><img src="Assets/Images/Produits/terminator.png" alt>
<h3>Terminator</h3>
<h4>50 000€</h4>
</a>
</div>
</div>
</div>
</div>
<footer>
<div id="acces">
<table>
<tbody>
<tr>
<th>Accès rapide</th>
<th id="line"></th>
<th>Une question ?</th>
</tr>
<tr>
<td><a href="index.html">Accueil</a></td>
<td><a href="index.html#slider">Nos Promotions</a></td>
<td></td>
</tr>
<tr>
<td><a href="index.html#produits">Nos Produits</a></td>
<td><a href="Assets/Pages/Autres/checkout.html">Votre panier</a></td>
<td id="contact"><button onclick="window.location.href='Assets/Pages/Autres/contact.html'" id="contactB">Nous contacter</button></td>
</tr>
</tbody>
</table>
</div>
</footer>
</body>