Skip to content

Instantly share code, notes, and snippets.

@kouameYao
Last active April 24, 2024 08:23
Show Gist options
  • Save kouameYao/22a510cb9b06c2937b6033afc614d007 to your computer and use it in GitHub Desktop.
Save kouameYao/22a510cb9b06c2937b6033afc614d007 to your computer and use it in GitHub Desktop.
pratique-react-roteur
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Foodio</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap" rel="stylesheet">
</head>
<body>
<nav>
<div class="container">
<a href="#" class="logo">Foodio</a>
<ul class="nav-links">
<li><a href="#">Accueil</a></li>
<li><a href="#">Menu</a></li>
<li><a href="#">À propos</a></li>
<li><a href="#">Réservation</a></li>
<li><a href="#">Nous contacter</a></li>
</ul>
<button class="btn-login">Se connecter</button>
</div>
</nav>
<main>
</main>
</body>
</html>
body {
font-family: Montserrat, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
nav {
background-color: #fff;
padding: 20px 0;
}
.container {
max-width: 1000px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 24px;
font-weight: 900;
color: #000;
text-decoration: none;
}
.logo:after {
content: '.';
color: #F54748;
margin-left: 3px;
}
.nav-links {
list-style: none;
margin: 0;
padding: 0;
}
.nav-links li {
display: inline-block;
margin-right: 20px;
}
.nav-links a {
text-decoration: none;
color: #778899;
font-weight: bold;
font-size: 15px;
}
.nav-links a.active {
color: #F54748;
border-bottom: 3px solid #F54748;
}
.nav-links a:hover {
color: #F54748;
}
.btn-login {
background-color: transparent;
color: #778899;
font-size: 15px;
padding: 10px 20px;
border-radius: 30px;
cursor: pointer;
}
.btn-login:hover {
border-color: transparent;
background-color: #F54748;
color: #fff;
}
main {
padding: 20px;
}
footer {
background-color: #333;
color: #fff;
padding: 20px 0;
text-align: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment