Upload files to "/"

This commit is contained in:
2025-09-24 17:58:29 +02:00
commit 0cbe64e30e
3 changed files with 273 additions and 0 deletions

104
Index.html Normal file
View File

@@ -0,0 +1,104 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dashboard</title>
<link rel="stylesheet" href="./stylegeneral.css">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<header>
<img class="logo" src="./logo.jpg" alt="logo">
<h1>DashBoardKooK
</h1>
<a href="./Connection.php">
<img class="connexion" src="./connexion" alt="connexion">
</a>
</header>
<main class="grid-container">
<div class="grid-item" id="long">
<a href="trucEnphp">
<article>
<h5>Ma recette 1</h5>
<img src="" alt="">
</article>
</a>
<a href="trucEnphp2">
<article>
<h5>Ma recette 2</h5>
<img src="" alt="">
</article>
</a>
<a href="trucEnphp3">
<article>
<h5>Ma recette 3</h5>
<img src="" alt="">
</article>
</a>
<a href="trucEnphp5">
<article>
<h5>Ma recette 4</h5>
<img src="" alt="">
</article>
</a>
<a href="trucEnphp4">
<article>
<h5>Ma recette 5</h5>
<img src="" alt="">
</article>
</a>
</div>
<div class="grid-item legendes" id="large">
<div class="legende">
<h5>Vues</h5>
<p>35 908</p>
<div class="couleur" style="background-color: green;"></div>
</div>
<div class="legende">
<h5>Likes</h5>
<p>7802</p>
<div class="couleur" style="background-color: rgb(255, 17, 0);"></div>
</div>
<div class="legende">
<h5>Republications</h5>
<p>3401</p>
<div class="couleur" style="background-color: rgb(0, 22, 164);"></div>
</div>
</div>
<div class="grid-item" id="cam">
<h3 class="titreA">Répartition des utilisateurs</h3>
<div class="camembert">
</div>
</div>
<div class="grid-item hist">
<div class="histogram">
<div class="bar" style="height: 50px;">50</div>
<div class="bar" style="height: 120px;">120</div>
<div class="bar" style="height: 80px;">80</div>
<div class="bar" style="height: 150px;">150</div>
</div>
</div>
<div class="grid-item ame" id="large">
<div class="ameliorations">
<h5>Augmentation Likes</h5>
<p style="color: rgb(35, 210, 35);">+7,9%</p>
</div>
<div class="ameliorations">
<h5>Augmentation Commentaires</h5>
<p style="color: rgb(35, 210, 35);">+10,3%</p>
</div>
<div class="ameliorations">
<h5>Augmentation Vues</h5>
<p style="color: rgb(210, 35, 35);">-1,9%</p>
</div>
<div class="ameliorations">
<h5>Augmentation Partages</h5>
<p style="color: rgb(35, 210, 35);">+3,9%</p>
</div>
</div>
</main>
</body>
</html>

131
style.css Normal file
View File

@@ -0,0 +1,131 @@
*{
padding: 0;
margin: 0;
}
.grid-container {
display: grid; /* active le mode grid */
grid-template-columns: 1fr 2fr 2fr ;
grid-template-rows: 1fr 3fr 1fr;
gap: 10px;
padding: 10px;
background: #eee;
height: 100vh;
}
.grid-item {
color: white;
}
#large{
grid-column: span 2;
}
#long{
grid-row: span 3;
overflow-y: auto;
overflow-x: hidden;
box-sizing: border-box;
}
.camembert{
width: 200px;
aspect-ratio: 1/1;
border-radius: 50%;
background: conic-gradient( /*donné par chat GPT*/
#4caf50 0% 40%, /* 40% vert */
#ff9800 40% 70%, /* 30% orange */
#2196f3 70% 100% /* 30% bleu */
);
}
.titreA{
position: absolute;
left: 50%;
top: 5%;
transform: translateX(-50%);
}
#cam{
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.legendes{
display: flex;
align-items: center;
position: relative;
justify-content: space-between;
}
.legende{
display: flex;
align-items: center;
position: relative;
justify-content: center;
flex-direction: column;
}
.hist{
position: relative;
}
.histogram {
position: absolute;
top: 20%;
width: 80%;
display: flex;
align-items: flex-end;
gap: 3%;
height: 200px;
padding: 10px;
}
.bar {
width: 10%;
background: steelblue;
color: white;
text-align: center;
}
.couleur{
width: 10%;
aspect-ratio: 1/1;
}
.ame{
display: flex;
align-items: center;
position: relative;
justify-content: space-between;
gap: 20px;
font-size: 1.5vw;
}
.ameliorations{
background-color: #747474;
}
@media screen and (max-width: 800px) {
.grid-container {
grid-template-columns: 1fr;
grid-template-rows: 2fr 3fr 3fr 3fr 2fr 2fr;
height: 200vh;
}
#large{
grid-column: span 1;
}
#long{
grid-row: span 1;
}
.titreA{
top: auto;
}
}

38
stylegeneral.css Normal file
View File

@@ -0,0 +1,38 @@
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=SUSE+Mono:ital,wght@0,100..800;1,100..800&display=swap');
*{
font-family: "SUSE Mono", sans-serif;
font-optical-sizing: auto;
font-weight: 500;
font-style: normal;
}
header{
width: 100%;
height: 10vh;
display: flex;
align-items: center;
position: relative;
background-color: rgb(224, 224, 224);
justify-content: space-between;
}
header>*{
margin: 15px;
}
div,article{
background-color: rgb(183, 183, 183);
padding: 20px;
text-align: center;
border-radius: 8px;
}
article{
height: 5vh;
background-color: rgb(145, 145, 145);
margin-bottom: 15% ;
}