Code propre

This commit is contained in:
Simon CATANESE 2023-01-05 20:52:06 +01:00
parent 92edea2329
commit 528e0c3a68
6 changed files with 95 additions and 307 deletions

View File

@ -1,47 +0,0 @@
main{
margin-top: 10%;
}
article{
margin-top: auto;
border: solid;
border-width: 1%;
border-radius: 5%;
background-color: pink;
}
article h2{
text-align: center;
}
.caramels{
float:left;
width:40%;
margin:2%;
}
.sirops{
float:left;
width:40%;
margin:2%;
}
.pubimg{
float:left;
width:40%;
margin:2%;
}
.PD{
float:left;
width:40%;
margin:2%;
}
.Product{
float:left;
margin : 3%;
}
.Product p, .Product h3{
margin-top: -5px;
width:150px;
}

View File

@ -1,3 +1,5 @@
header{ header{
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
@ -6,6 +8,12 @@ header{
text-align: center; text-align: center;
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
background-color: rgb(134, 196, 221); background-color: rgb(134, 196, 221);
grid-column-start: 1;
grid-column-end: 4;
grid-row-start: 1;
grid-row-end: 1;
position: static;
} }
.Titre { .Titre {
grid-column-start:2; grid-column-start:2;
@ -15,6 +23,7 @@ header{
margin-top:2%; margin-top:2%;
z-index:2; z-index:2;
} }
.rotate{ .rotate{
position: absolute; position: absolute;
margin-left: auto; margin-left: auto;
@ -25,6 +34,7 @@ header{
margin-top: -30%; margin-top: -30%;
z-index:1; z-index:1;
animation: rotation 50s infinite linear; animation: rotation 50s infinite linear;
pointer-events: none;
} }
@keyframes rotation { @keyframes rotation {
from { from {
@ -45,6 +55,7 @@ header{
margin-top: -15%; margin-top: -15%;
z-index:1; z-index:1;
animation: rotation2 10s infinite linear; animation: rotation2 10s infinite linear;
pointer-events: none;
} }
@keyframes rotation2 { @keyframes rotation2 {
from { from {

View File

@ -1,81 +1,43 @@
.text-intro{ :root{
width:80%; --meme-wsize: 50vw;
margin:auto; --meme-vsize: 26vw;
border: solid;
border-width: 5px;
background-color: darkorange;
} }
.content{ .page{
display:grid; background:linear-gradient(rgb(189, 211, 255), rgb(55, 15, 141));
grid-template-columns: auto auto; z-index:2;
grid-template-rows: auto auto;
margin-left: 8%;
} }
@media only screen and (min-width: 600px) { .Liste{
.content{ width:100%;
margin-left: 8%; height:100vh;
} overflow: scroll;
}
article{
border: solid;
border-width: 1%;
border-radius: 45px;
background-color: rosybrown;
}
article h2{
text-align: center;
}
.NewsLetter{
grid-column-start: 1;
grid-column-end: 1;
grid-row-start: 1;
grid-row-end: 1;
width:35%;
margin:2%;
}
@media only screen and (max-width: 600px) {
.NewsLetter{
margin-left:-8%;
width:45%;
}
}
.Vedette{
grid-column-start: 1;
grid-column-end: 2;
grid-row-start: 1;
grid-row-end: 1;
width:58%;
margin:2%;
margin-left: 40%;
} }
.Product{ .Product{
float:left; float:left;
margin : 1.5%; margin : 5%;
width: 80%;
} }
.Product p, .Product h3{ .Product p, .Product h3{
margin-top: -5px; margin-top: -5px;
width:150px;
} }
.Product .desc{
font-size: 10px; .memeContainer {
} position: absolute;
.Pack{ width:25wh;
grid-column-start: 1; padding-bottom: 25%;
grid-column-end: 2;
grid-row-start: 2;
grid-row-end: 2;
width:96%;
margin:2%;
}
.Pack .Product{
float: left; float: left;
margin : 5%;
height: 0;
}
.meme{
width: inherit;
height: inherit;
position: absolute;
left: 0;
} }

View File

@ -1,108 +0,0 @@
main{
display: grid;
grid-template-columns: 1fr, 1fr;
}
.Liste{
grid-column-start: 1;
grid-row-start:1;
background-color: rgba(226, 180, 127, 0.3);
border:solid;
border-color: brown;
border-width:15px;
width:100%;
height:100vh;
overflow: scroll;
}
.Product{
float:left;
margin : 3%;
width:25%;
}
.Product p, .Product h3{
margin-top: -5px;
width:150px;
}
#panier1{
grid-column-start: 2;
grid-row-start:1;
width:80%;
margin:auto;
}
#panier2{
grid-column-start: 1;
grid-column-end: 2;
grid-row-start:1;
width:80%;
height: 100%;
margin:auto;
}
#panier2 form div{
margin:4%;
margin-left: 35%;
}
#panier2 button{
margin:4%;
margin-left: 35%;
}
#panier2 form{
border:solid;
border-color:tan;
margin:4%;
}
#panier3{
height:100vh;
}
.panier h1{
text-align: center;
font-weight: bold;
}
.panier p{
font-weight: bold;
}
.panier li{
margin-left:15%;
}
.panier h1{
text-align: center;
}
.panier button{
position: center;
width:20%;
}
.Ariane{
margin:auto;
margin-left: 25%;
}
.ligne{
width:21%;
height: 2px;
background-color: black;
float:left;
margin-left:2%;
margin-right:2%;
margin-bottom: 10%;
margin-top: 10%;
}
.point{
width:10px;
height:10px;
background-color: white;
border:solid;
border-color: black;
border-width:1px;
border-radius: 50%;
float: left;
margin-bottom: 10%;
margin-top: 10%;
}
#active{
background-color: crimson;
}

View File

@ -1,8 +1,5 @@
:root{
--meme-wsize: 50vw;
--meme-vsize: 26vw;
}
html{ html{
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
@ -14,39 +11,23 @@ html{
body{ body{
display: grid; display: grid;
width:100%; width:100%;
grid-template-columns: 5% 1fr 5%; grid-template-columns: 10vw 80vw 10vw;
grid-template-rows: auto auto auto; grid-template-rows: auto auto auto;
grid-auto-rows: minmax(auto, auto); grid-auto-rows: minmax(auto, auto);
background:linear-gradient(lightgray, sandybrown); background:linear-gradient(lightgray, #775cff);
} }
header{
grid-column-start: 1; main{
grid-column-end: 4; grid-column-start: 2;
grid-row-start: 1; grid-column-end: 2;
grid-row-end: 1; grid-row-start: 2;
position: static; grid-row-end: 2;
width: 100%;
background: rgba(255, 0, 0, 0.1);
z-index:3;
} }
.rotate{
z-index:1;
pointer-events: none;
}
.rotate2{
z-index:1;
pointer-events: none;
}
.page{
grid-column-start: 1;
grid-column-end: 4;
background:linear-gradient(rgb(189, 184, 184), sandybrown);
z-index:2;
display: grid;
grid-template-columns: 10vw, 80vw, 10vw;
grid-template-rows: 5%, auto, 5%;
grid-auto-rows: minmax(auto, auto);
}
.pubG{ .pubG{
grid-column-start : 1; grid-column-start : 1;
grid-column-end: 1; grid-column-end: 1;
@ -54,7 +35,7 @@ header{
grid-row-end: 2; grid-row-end: 2;
z-index:3; z-index:3;
background-color: red; background-color: red;
margin:4%; margin:1%;
} }
.pubD{ .pubD{
grid-column-start : 3; grid-column-start : 3;
@ -63,21 +44,8 @@ header{
grid-row-end: 2; grid-row-end: 2;
z-index:3; z-index:3;
background-color: green; background-color: green;
margin-top: 4%; }
padding-right: 4%;
}
main{
grid-column-start: 2;
grid-column-end: 3;
grid-row-start: 2;
grid-row-end: 2;
width: 97%;
background: rgba(255, 0, 0, 0.1);
margin-left:1.5%;
margin-right:1.5%;
z-index:3;
}
@media only screen and (max-width: 600px) { @media only screen and (max-width: 600px) {

View File

@ -12,62 +12,64 @@
<link rel="stylesheet" href="css/header.css" > <link rel="stylesheet" href="css/header.css" >
<link rel="stylesheet" href="css/style.css" > <link rel="stylesheet" href="css/style.css" >
<link rel="stylesheet" href="css/index.css" > <link rel="stylesheet" href="css/index.css" >
<link rel="stylesheet" href="css/cat_all.css" >
</head> </head>
<body> <body>
<?php include("header.php");?> <?php include("header.php");?>
<div class=pubG>
<div class="page"> <a href="https://dwarves.iut-fbleau.fr/~catanese/SAE_WEB_2022/index.html" >
<a class=pubG href="https://dwarves.iut-fbleau.fr/~catanese/SAE_WEB_2022/index.html" >
<img src="img/sodaramel.png" alt="" height="100px" width="100px" > <img src="img/sodaramel.png" alt="" height="100px" width="100px" >
<h5>Une glycémie trop basse venez voir notre boutique de sodaramel</h5> <h5>Une glycémie trop basse venez voir notre boutique de sodaramel</h5>
</a> </a>
</div>
<main> <main>
<div class="page">
<section class=Liste> <section class=Liste>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/bouton.jpg" class=meme height="500vw" width="100%"> <img src="img/meme/bouton.jpg" class=meme>
</div> </div>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/DecouvreSodaraMeme.jpg" class=meme height="500vw" width="500vw"> <img src="img/meme/DecouvreSodaraMeme.jpg" class=meme>
</div> </div>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/insulit.jpg" class=meme height="500vw" width="500vw"> <img src="img/meme/insulit.jpg" class=meme height="500vw" width="500vw">
</div> </div>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/matrix.jpg" class=meme height="500vw" width="500vw"> <img src="img/meme/matrix.jpg" class=meme height="500vw" width="500vw">
</div> </div>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/megamindSoda.jpg" class=meme height="500vw" width="500vw"> <img src="img/meme/megamindSoda.jpg" class=meme height="500vw" width="500vw">
</div> </div>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/mort.jpg" class=meme height="500vw" width="500vw"> <img src="img/meme/mort.jpg" class=meme height="500vw" width="500vw">
</div> </div>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/shitting.jpg" class=meme height="500vw" width="500vw"> <img src="img/meme/shitting.jpg" class=meme height="500vw" width="500vw">
</div> </div>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/sodarameme.jpg" class=meme height="500vw" width="500vw"> <img src="img/meme/sodarameme.jpg" class=meme height="500vw" width="500vw">
</div> </div>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/sodaramemev3.jpg" class=meme height="500vw" width="500vw"> <img src="img/meme/sodaramemev3.jpg" class=meme height="500vw" width="500vw">
</div> </div>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/SodaSupHaribo.png" class=meme height="500vw" width="500vw"> <img src="img/meme/SodaSupHaribo.png" class=meme height="500vw" width="500vw">
</div> </div>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/toiletramel.jpg" class=meme alt="" height="500vw" width="500vw"> <img src="img/meme/toiletramel.jpg" class=meme alt="" height="500vw" width="500vw">
</div> </div>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/uno.jpg" class=meme height="500vw" width="500vw"> <img src="img/meme/uno.jpg" class=meme height="500vw" width="500vw">
</div> </div>
<div class="Product"> <div class="memeContainer">
<img src="img/meme/sodabaguette.png" class=meme height="500vw" width="500vw"> <img src="img/meme/sodabaguette.png" class=meme height="500vw" width="500vw">
</div> </div>
</section> </section>
</div>
</main> </main>
<a class=pubD href="https://dwarves.iut-fbleau.fr/~catanese/SAE_WEB_2022/index.html" > <div class=pubD>
<img src="img/sodaramel.png" height="100px" width="100px" > <a href="https://dwarves.iut-fbleau.fr/~catanese/SAE_WEB_2022/index.html" >
<img src="img/sodaramel.png" alt="" height="100px" width="100px" >
<h5>Une glycémie trop basse venez voir notre boutique de sodaramel</h5> <h5>Une glycémie trop basse venez voir notre boutique de sodaramel</h5>
</a> </a>
</div> </div>