diff --git a/php/assets/bandeau.png b/php/assets/bandeau.png new file mode 100644 index 0000000..ba1261e Binary files /dev/null and b/php/assets/bandeau.png differ diff --git a/php/assets/logo.png b/php/assets/logo.png new file mode 100644 index 0000000..d272825 Binary files /dev/null and b/php/assets/logo.png differ diff --git a/php/css/accueil.css b/php/css/accueil.css index b8516c3..31aa5bd 100755 --- a/php/css/accueil.css +++ b/php/css/accueil.css @@ -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); *{ - margin: 0; - padding: 0; box-sizing: border-box; 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; - justify-content: center; - align-items: center; - min-height: 100vh; - background: #fff; -} - -input{ - position: relative; - outline: none; - padding: 10px 20px; - border-radius: 10px; - letter-spacing: 1px; - font-size: 0.85em; - background-color: #00DBFF; + +.title-banner { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + background-color: rgba(0, 0, 0, 0.5); + color: #fff; + padding: 10px; + border-radius: 5px; +} + +.title-banner .title{ + font-size: 35px; + color: #00DBFF; + font-weight: bold; +} + +.title-banner .subtitle{ + font-size: 20px; + color: #fff; +} + +.title-banner .description{ + font-size: 15px; color: #fff; - cursor: pointer; - text-transform: uppercase; - font-weight: 600; - margin-top: 10px; - border: none; } \ No newline at end of file diff --git a/php/css/menu.css b/php/css/menu.css new file mode 100644 index 0000000..11e012e --- /dev/null +++ b/php/css/menu.css @@ -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; +} \ No newline at end of file diff --git a/php/vues/accueil.html b/php/vues/accueil.html index 3a70364..a12e759 100755 --- a/php/vues/accueil.html +++ b/php/vues/accueil.html @@ -6,19 +6,31 @@ Alica - Accueil - - -

Accueil

-

Vous êtes sur la page d'accueil

-

Vous pouvez vous connecter ou vous inscrire

-

Vous pouvez aussi consulter les articles

-

Vous pouvez aussi consulter les annonces

-

Connexion :

-
- -
+ {% include 'menu.html' %} +
+ +

Accueil

+

Vous êtes sur la page d'accueil

+

Vous pouvez vous connecter ou vous inscrire

+

Vous pouvez aussi consulter les articles

+

Vous pouvez aussi consulter les annonces

+
+ diff --git a/php/vues/menu.html b/php/vues/menu.html new file mode 100644 index 0000000..f567b1a --- /dev/null +++ b/php/vues/menu.html @@ -0,0 +1,30 @@ + + + + + + + \ No newline at end of file