F0001 - US00100 - Afficher les restos suggérés suivant l'ensemble des notes, du nombre de visites sur les pages des restos
This commit is contained in:
parent
d7bb3edcaa
commit
5f66740be2
1 changed files with 207 additions and 0 deletions
207
views/index.ejs
Normal file
207
views/index.ejs
Normal file
|
|
@ -0,0 +1,207 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>L'EPICURIEN</title>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
background: #fff;
|
||||||
|
color: #cb8d37;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
background: #8e68aa;
|
||||||
|
color: white;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar {
|
||||||
|
flex-grow: 1;
|
||||||
|
margin: 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar input {
|
||||||
|
width: 100%;
|
||||||
|
padding: 5px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.account {
|
||||||
|
background: #666;
|
||||||
|
padding: 6px 12px;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: white;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
padding: 20px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
main h2 {
|
||||||
|
font-size: 2rem;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sections {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 30px;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section h3 {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background: #ddd;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 15px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-info {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-info h4 {
|
||||||
|
margin: 0 0 5px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-photo {
|
||||||
|
background: #8e68aa;
|
||||||
|
width: 120px;
|
||||||
|
height: 80px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: #555;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
background: #8e68aa;
|
||||||
|
text-align: center;
|
||||||
|
padding: 10px;
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer a {
|
||||||
|
margin: 0 10px;
|
||||||
|
text-decoration: none;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<!-- HEADER -->
|
||||||
|
<header>
|
||||||
|
<h1>L'EPICURIEN</h1>
|
||||||
|
<div class="search-bar">
|
||||||
|
<input type="text" placeholder="Rechercher un restaurant" />
|
||||||
|
</div>
|
||||||
|
<div class="account">Mon compte</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- MAIN CONTENT -->
|
||||||
|
<main>
|
||||||
|
<h2>L’EPICURIEN</h2>
|
||||||
|
<div class="sections">
|
||||||
|
<!-- Restaurants proches -->
|
||||||
|
<div class="section">
|
||||||
|
<h3>Restaurants les plus proches</h3>
|
||||||
|
<div class="cards">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-info">
|
||||||
|
<h4>Nom restaurant</h4>
|
||||||
|
<p>Adresse</p>
|
||||||
|
<p>Avis général</p>
|
||||||
|
</div>
|
||||||
|
<img alt="Photo du restaurant" src="" />
|
||||||
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-info">
|
||||||
|
<h4>Nom restaurant</h4>
|
||||||
|
<p>Adresse</p>
|
||||||
|
<p>Avis général</p>
|
||||||
|
</div>
|
||||||
|
<img alt="Photo du restaurant" src="" />
|
||||||
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-info">
|
||||||
|
<h4>Nom restaurant</h4>
|
||||||
|
<p>Adresse</p>
|
||||||
|
<p>Avis général</p>
|
||||||
|
</div>
|
||||||
|
<img alt="Photo du restaurant" src="" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Restaurants populaires -->
|
||||||
|
<div class="section">
|
||||||
|
<h3>Restaurants les plus populaires</h3>
|
||||||
|
<div class="cards">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-info">
|
||||||
|
<h4>Nom restaurant</h4>
|
||||||
|
<p>Adresse</p>
|
||||||
|
<p>Avis général</p>
|
||||||
|
</div>
|
||||||
|
<img alt="Photo du restaurant" src="" />
|
||||||
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-info">
|
||||||
|
<h4>Nom restaurant</h4>
|
||||||
|
<p>Adresse</p>
|
||||||
|
<p>Avis général</p>
|
||||||
|
</div>
|
||||||
|
<img alt="Photo du restaurant" src="" />
|
||||||
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-info">
|
||||||
|
<h4>Nom restaurant</h4>
|
||||||
|
<p>Adresse</p>
|
||||||
|
<p>Avis général</p>
|
||||||
|
</div>
|
||||||
|
<img alt="Photo du restaurant" src="" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<!-- FOOTER -->
|
||||||
|
<footer>
|
||||||
|
<a href="#">Mentions légales</a> |
|
||||||
|
<a href="#">Politique de confidentialité</a> |
|
||||||
|
<a href="#">CGU</a>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
Loading…
Add table
Reference in a new issue