This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Home page PHP/CSS + clean Database (#66)
Add the complete home page and clean the database
- Loading branch information
Showing
3 changed files
with
225 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
.box { | ||
display:flex; | ||
flex-direction: row; | ||
justify-content: space-around; | ||
padding: 2%; | ||
line-height: 150%; | ||
} | ||
|
||
.box2 { | ||
width: 60%; | ||
} | ||
|
||
.sign { | ||
background-image: url("../img/signtropstylezebi.png"); | ||
width: 20%; | ||
padding: 2.5%; | ||
margin-left: 2%; | ||
border: solid; | ||
border-color: black; | ||
border-width: 6px; | ||
} | ||
|
||
.subsign { | ||
background-image: url("../img/signtropstylezebi.png"); | ||
height: 33.8%; | ||
margin-bottom: 5%; | ||
padding: 2.5%; | ||
border: solid; | ||
border-color: black; | ||
border-width: 6px; | ||
text-align: justify; | ||
} | ||
|
||
.slider { | ||
width: 100%; | ||
position: relative; | ||
} | ||
|
||
.slider-viewport { | ||
width: 100%; | ||
height: 400px; | ||
overflow: hidden; | ||
} | ||
|
||
.slider-content { | ||
display: grid; | ||
grid-auto-flow: column; | ||
justify-content: center; | ||
align-items: center; | ||
-webkit-transition: 1s all; | ||
transition: 1s all; | ||
} | ||
|
||
.slider-content img { | ||
max-width: 100%; | ||
height: 400px; | ||
} | ||
|
||
.slider-nav { | ||
position: absolute; | ||
width: 100%; | ||
bottom: -30px; | ||
margin-top: 10px; | ||
text-align: center; | ||
} | ||
|
||
.slider-nav a { | ||
-webkit-box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 0.3); | ||
box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 0.3); | ||
display: inline-block; | ||
background-color: #adafbc; | ||
width: 15px; | ||
height: 15px; | ||
margin: 0 3px; | ||
} | ||
|
||
.slider-nav a:hover { | ||
background-color: #fff; | ||
-webkit-box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 0.8); | ||
box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 0.8); | ||
} | ||
|
||
#title { | ||
font-size: x-large; | ||
padding-bottom: 10px; | ||
} | ||
|
||
.button { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
margin-top: 15px; | ||
} | ||
|
||
button { | ||
background-image: url("../img/widget.png"); | ||
background-size: 100% 100%; | ||
font-family: 'Minecraft', sans-serif; | ||
cursor: pointer; | ||
color: white; | ||
border : solid; | ||
border-color: black; | ||
border-width: 1px; | ||
padding: 2%; | ||
padding-left: 6%; | ||
padding-right: 6%; | ||
margin-top: 2.5%; | ||
margin-left: 10%; | ||
margin-right: 10%; | ||
} | ||
|
||
.button input { | ||
width: 40%; | ||
padding: 10px; | ||
} | ||
|
||
button:hover{ | ||
background-image: url("../img/widgetclicked.png"); | ||
border-color: white; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,105 @@ | ||
<h1>Minceraft</h1> | ||
<p>Bienvenue ! Hmmm huurrrr hrm huh.</p> | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<div class="box"> | ||
<div class="box2"> | ||
<div class="subsign"> | ||
<div id="title">Bienvenue</div> | ||
<hr/> | ||
<div>Créé par La Ligue des Villageois et Marchands Humains (LVMH), HurrShop est le site de référence pour l'achat rapide d'objets disponibles dans les villages. Retrouvez vos produits favoris issus de l'Overworld, du Nether ou de l'Ender à moindre prix. | ||
</div> | ||
</div> | ||
<div class="subsign"> | ||
<div id="title">Votre profil :</div> | ||
<hr/> | ||
<div class="button"> | ||
<button onclick="window.location.href = '/profile'">Votre profil</button> | ||
<button onclick="window.location.href = '/login'">Se connecter</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="sign"> | ||
<div id="title">Catalogue :</div> | ||
<hr/> | ||
<div class="slider"> | ||
<div class="slider-viewport"> | ||
<div id="img1" class="slider-content"> | ||
<a href="/catalog?category=10"> | ||
<img src="../category/Alambic.webp"> | ||
</a> | ||
</div> | ||
<div id="img2" class="slider-content"> | ||
<a href="/catalog?category=11"> | ||
<img src="../category/Chaudron_plein.webp"> | ||
</a> | ||
</div> | ||
<div id="img3" class="slider-content"> | ||
<a href="/catalog?category=5"> | ||
<img src="../category/Composteur_rempli.webp"> | ||
</a> | ||
</div> | ||
<div id="img4" class="slider-content"> | ||
<a href="/catalog?category=3"> | ||
<img src="../category/Fumoir_allume.webp"> | ||
</a> | ||
</div> | ||
<div id="img5" class="slider-content"> | ||
<a href="/catalog?category=0"> | ||
<img src="../category/Haut_fourneau_allume.webp"> | ||
</a> | ||
</div> | ||
<div id="img6" class="slider-content"> | ||
<a href="/catalog?category=1"> | ||
<img src="../category/Metier_a_tisser.webp"> | ||
</a> | ||
</div> | ||
<div id="img8" class="slider-content"> | ||
<a href="/catalog?category=2"> | ||
<img src="../category/Pupitre.webp"> | ||
</a> | ||
</div> | ||
<div id="img9" class="slider-content"> | ||
<a href="/catalog?category=6"> | ||
<img src="../category/Table_d_archerie.webp"> | ||
</a> | ||
</div> | ||
<div id="img10" class="slider-content"> | ||
<a href="/catalog?category=4"> | ||
<img src="../category/Table_de_cartographie.webp"> | ||
</a> | ||
</div> | ||
<div id="img11" class="slider-content"> | ||
<a href="/catalog?category=7"> | ||
<img src="../category/Table_de_forgeron.webp"> | ||
</a> | ||
</div> | ||
<div id="img12" class="slider-content"> | ||
<a href="/catalog?category=8"> | ||
<img src="../category/Tailleur_de_pierre.webp"> | ||
</a> | ||
</div> | ||
<div id="img13" class="slider-content"> | ||
<a href="/catalog?category=9"> | ||
<img src="../category/Tonneau_ouvert.webp"> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="slider-nav"> | ||
<a href="#img1"></a> | ||
<a href="#img2"></a> | ||
<a href="#img3"></a> | ||
<a href="#img4"></a> | ||
<a href="#img5"></a> | ||
<a href="#img6"></a> | ||
<a href="#img8"></a> | ||
<a href="#img9"></a> | ||
<a href="#img10"></a> | ||
<a href="#img11"></a> | ||
<a href="#img12"></a> | ||
<a href="#img13"></a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |