menu et banniere accueil

vues
Alexis Feron 1 year ago
parent 58d4eaa1b8
commit 34996bd157

Binary file not shown.

After

Width:  |  Height:  |  Size: 842 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

@ -1,30 +1,53 @@
@import url(https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Share+Tech+Mono&display=swap); @import url(https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Share+Tech+Mono&display=swap);
*{ *{
margin: 0;
padding: 0;
box-sizing: border-box; box-sizing: border-box;
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
margin: 0;
}
.main {
color: #212121;
font-size: 1rem;
padding-top: 70px;
}
.title-banner{
text-align: center;
}
.banner-img{
width: 100%;
height: 250px;
object-fit: cover;
}
.banner {
position: relative; /* La classe parente doit avoir une position relative */
} }
body{
display: inline; .title-banner {
justify-content: center; position: absolute;
align-items: center; top: 50%;
min-height: 100vh; left: 50%;
background: #fff; transform: translate(-50%, -50%);
} background-color: rgba(0, 0, 0, 0.5);
color: #fff;
input{ padding: 10px;
position: relative; border-radius: 5px;
outline: none; }
padding: 10px 20px;
border-radius: 10px; .title-banner .title{
letter-spacing: 1px; font-size: 35px;
font-size: 0.85em; color: #00DBFF;
background-color: #00DBFF; font-weight: bold;
}
.title-banner .subtitle{
font-size: 20px;
color: #fff;
}
.title-banner .description{
font-size: 15px;
color: #fff; color: #fff;
cursor: pointer;
text-transform: uppercase;
font-weight: 600;
margin-top: 10px;
border: none;
} }

@ -0,0 +1,143 @@
a {
text-decoration: none;
}
.navbar-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 2rem;
width: 100%;
height: 70px;
background: #fff;
color: #212121;
position: fixed;
top: 0;
}
.navbar-container .logo-container a {
font-size: 1.5rem;
font-weight: 500;
font-family: 'Kanit', sans-serif;
text-transform: uppercase;
cursor: pointer;
color: #212121;
max-height: 70px;
}
.navbar-container .nav-items {
display: flex;
align-items: center;
gap: 3rem;
list-style: none;
}
.navbar-container .nav-items .nav-link a {
color: #212121;
padding: 10px;
text-transform: uppercase;
transition: 0.2s;
}
.navbar-container .nav-items .nav-link:after {
content: '';
display: block;
border-top: 3px solid #00DBFF;
transform: scaleX(0);
transition: transform 250ms ease-in-out;
}
.navbar-container .nav-items .nav-link:hover:after {
transform: scaleX(0.8);
}
.navbar-container .nav-items .login-register {
display: flex;
flex-direction: row;
gap: 1rem;
}
.navbar-container .nav-items .login-register .button {
color: #00DBFF;
padding: 5px 20px;
text-transform: uppercase;
border-radius: 15px;
border: #fff 2px solid;
}
.navbar-container .nav-items .login-register .button2{
background: #00DBFF;
color: #fff;
border-radius: 15px;
}
.navbar-container .nav-items .login-register .button:hover {
border: #00DBFF 2px solid;
}
.navbar-container .nav-items .login-register .button2:hover {
border: #00A4FF 2px solid;
}
@media(max-width: 1030px) {
.navbar-container {
padding: 0 1rem;
}
.navbar-container .nav-items {
gap: 0.1rem;
}
.navbar-container .nav-items .nav-link a,
.navbar-container .nav-items .login-register .button {
font-size: 0.9rem;
}
}
@media(max-width: 915px) {
.navbar-container .nav-items {
flex-direction: column;
position: fixed;
top: 70px;
right: -100%;
width: 100vw;
height: 100vh;
padding: 1rem 0;
z-index: 99;
background: #fff;
transition: 0.2s ease-in;
}
.bars {
width: 22px;
height: auto;
cursor: pointer;
}
.bars .bar {
width: 100%;
height: 2px;
background: #212121;
margin: 5px;
}
.navbar-container .nav-items {
gap: 3rem;
}
.navbar-container .nav-items .login-register {
width: 50%;
text-align: center;
flex-direction: column;
gap: 2rem;
}
.navbar-container .nav-items .login-register .button {
padding: 1rem 0;
}
}
.navbar-container .nav-items.active {
right: 0;
}

@ -6,19 +6,31 @@
<link rel="stylesheet" type="text/css" href="css/accueil.css"> <link rel="stylesheet" type="text/css" href="css/accueil.css">
<title>Alica - Accueil</title> <title>Alica - Accueil</title>
</head> </head>
<body> <body>
<h1>Accueil</h1> {% include 'menu.html' %}
<p>Vous êtes sur la page d'accueil</p> <div class="main">
<p>Vous pouvez vous connecter ou vous inscrire</p> <div class="banner">
<p>Vous pouvez aussi consulter les articles</p> <img class="banner-img" src="assets/bandeau.png">
<p>Vous pouvez aussi consulter les annonces</p> <div class="title-banner">
<p>Connexion :</p> <div class="subtitle">Le réseau Alica te souhaite la bienvenue !</div>
<form action="index.php?action=connection" method="POST"> <div class="title">Alica Info</div>
<input type="submit" value="Se connecter"> <div class="description">Nous sommes danciens étudiants à lIUT dAubière qui aimerions créer un réseau d'anciens étudiants au travers d'un réseau alumni du département Informatique.</div>
</form> </div>
</div>
<h1>Accueil</h1>
<p>Vous êtes sur la page d'accueil</p>
<p>Vous pouvez vous connecter ou vous inscrire</p>
<p>Vous pouvez aussi consulter les articles</p>
<p>Vous pouvez aussi consulter les annonces</p>
</div>
</body> </body>
<script>
let bar = document.querySelector('.bars'), navItem = document.querySelector('.nav-items');
bar.addEventListener('click', () => {
navItem.classList.toggle('active');
});
</script>
</html> </html>

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<link rel="stylesheet" type="text/css" href="css/menu.css">
</head>
<nav class="navbar-container">
<div class="logo-container">
<a href="index.php">
<img src="assets/logo.png" alt="Logo" height="70px">
</a>
</div>
<div class="bars">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
<ul class="nav-items">
<li class="nav-link"><a href="#">A propos</a></li>
<li class="nav-link"><a href="#">Evenements</a></li>
<li class="nav-link"><a href="#">Offres</a></li>
<li class="nav-link"><a href="#">Nous contacter</a></li>
</ul>
<ul class="nav-items">
<div class="login-register">
<a href="index.php?action=connection" class="button">Connexion</a>
<a href="index.php?action=inscription" class="button button2">Inscription</a>
</div>
</ul>
</nav>
</html>
Loading…
Cancel
Save