resto-epi/views/index.ejs

207 lines
No EOL
5.7 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>LEPICURIEN</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>