+ Hôtel du port
+Nuit à partir de 52€
+diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..a45a0365 Binary files /dev/null and b/.DS_Store differ diff --git a/css/style.css b/css/style.css index f6c96c4d..bfd8a598 100644 --- a/css/style.css +++ b/css/style.css @@ -1,6 +1,7 @@ /****** General ***********/ * { font-family: 'Raleway', sans-serif; + margin-inline: 0; } :root { @@ -13,15 +14,184 @@ color: var(--main-color); } -body { + a:active { + color: #0065FC; +} + +.general-text { + font-size: 13px; +} + +.body { + max-width: 1440px ; + } + +h1 { +font-size: 18px; +} + +h2 { + font-size: 16px; + } + +/***** Header **********/ + +.topnav { + display: flex; + justify-content: space-between; + align-items: center; + padding: 10px 50px 20px; +} + +.logo { + width: 50px; +} + +.navigation a:hover { + color: #0065FC; + border-top: 2px solid #0065FC; +} + +#navbar-hebergements { + margin-left: auto; + font-size: 13px; + padding-top: 20px; + } + +#navbar-activites { + font-size: 13px; + padding: 0px 0px 20px; + padding-top: 20px; + margin-left: 40px; + } + + /* Search bar */ + +.recherche { + padding: 0px 50px; +} + +.barre-de-recherche { + display: flex; + padding: 15px 0px 0px; +} + +.location-icon { + display: flex; + align-items: center; + background-color: #F2F2F2; + padding: 15px 18px; + border-top-left-radius: 15px; + border-bottom-left-radius: 15px; +} + +.fa-location-dot { + font-size: 16px; + color: black; +} + +.research-text { + display: flex; + font-size: 15px; + align-items: center; + border-top: 1px solid #F2F2F2; + border-bottom: 1px solid #F2F2F2; +} + +#inputtext-location { + font-size: 15px; + align-items: center; + text-align: center; + border: 0; + outline: none; +} + +::placeholder { + color: black; + opacity: 1; /* Firefox */ + font-weight: 600; + } + + + /* Hide the search icon from 768px */ +.research-button-sm { + display: none; +} + +.research-button-md { + font-size: 15px; + color: white; + align-items: center; + padding-left: 20px; + padding-right: 20px; + background-color: #0065FC; + border-top-right-radius: 15px; + border-bottom-right-radius: 15px; +} + + /* Filtres */ + +.filtres { + padding: 10px 50px 15px; +} + +.info-nb-logements { display: flex; - justify-content: center; + align-items: center; +} + +.border-info { + display: flex; + align-items: center; + justify-content: center; /* Center content horizontally */ + margin-right: 10px; + border: 1px solid #F2F2F2; + border-radius: 50%; + width: 18px; + height: 18px; + color: black; +} + +.fa-info { + font-size: 9px; +} + +.filtres-title-buttons, +.filtres-buttons, .filtre { + display: flex; + flex-wrap: wrap; + align-items: center; } +.filtres-buttons { + margin: 0px 10px; +} + + +.filtre { + font-size: 18px; + border: 2px solid #F2F2F2; + border-radius: 50px; + padding: 0px 15px; + margin: 15px 6px; +} + +.filtre:hover { + background-color: #DEEBFF; +} + + +.fa-money-bill-wave, +.fa-person, .fa-heart, .fa-fire { + padding-right: 10px; +} + + + /* Main */ + .main-container { width: 100%; max-width: 1440px; - padding: 0 50px; box-sizing: border-box; } @@ -30,15 +200,9 @@ a { text-decoration: none; } -.section-title { - margin: 0; - font-size: 22px; -} - .card { background-color: white; border-radius: 20px; - padding: 5px; filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1)); } @@ -60,6 +224,7 @@ a { /****** Hebergements And Populaires ***********/ .hebergements-and-populaires { + padding: 0 50px; display: flex; justify-content: space-between; } @@ -67,21 +232,74 @@ a { .hebergements-and-populaires section { background-color: var(--main-bg-color); border-radius: 20px; - padding: 30px; + padding: 0px 30px; box-sizing: border-box; } + /****** Hebergements ***********/ .hebergements { width: 65%; } +.hebergements-title { + padding: 10px 0px; + display: flex; + justify-content: space-between; + align-items: center; +} + +.hebergements-cards { + justify-content: space-between; + display: flex; + margin-bottom: 20px; +} + +.hebergements-cards .card { + display: flex; + flex-direction: column; + background-color: white; + border-radius: 20px; + padding: 5px; + filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1)); +} + +.hebergements-cards a { + width: 30%; +} + +.hebergements-cards img { + height: 110px; + border-top-left-radius: 20px; + border-top-right-radius: 20px; +} + +.hebergements-cards .card-content { + padding-left: 10px; + box-sizing: border-box; +} + +.hebergements-cards .card-title { + margin-top: 5px; + margin-bottom: 5px; +} + +.hebergements-cards .card-subtitle { + margin-bottom: 5px; +} + +.hebergements-cards .card-rating { + margin-bottom: 5px; +} + /****** Populaires ***********/ + .populaires { width: 32%; } .populaires-title { + padding: 10px 0px; display: flex; justify-content: space-between; align-items: center; @@ -89,7 +307,11 @@ a { .populaires-cards .card { display: flex; - margin-top: 33px; + margin-bottom: 30px; + background-color: white; + border-radius: 20px; + padding: 5px; + filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1)); } .populaires-cards img { @@ -121,7 +343,64 @@ a { margin-bottom: 5px; } + /****** Activites ***********/ + +.activites-section { + padding: 40px 70px; +} +.activites-title { + margin-bottom: 30px; +} + +.activites-cards { + display: flex; + justify-content: space-between; +} + +.activites-cards .card { + display: flex; + flex-direction: column; +} + +.activites-cards a { + width: 24%; +} + +.activites-cards img { + height: 300px; + border-top-left-radius: 20px; + border-top-right-radius: 20px; +} + +.activites-cards .card-content { + height: 70px; + display: flex; + padding-left: 10px; + box-sizing: border-box; +} + +.activites-cards .card-title { + align-items: center; +} + +/****** Footer ***********/ + + +.footer { + background-color: #F2F2F2; + margin: 50px; + margin-bottom: 0; + padding: 10px 15px; +} + +.footer-text { + display: flex; +} + +#a-propos, #nos-hebergements { + padding-right: 200px; +} /* Le code ci-dessous correspond à la version responsive uniquement */ @@ -131,6 +410,7 @@ a { @media (max-width: 1024px) { .hebergements-and-populaires { flex-direction: column; + gap: 30px; } .hebergements { @@ -139,7 +419,6 @@ a { .populaires { width: 100%; - margin-top: 50px; } .populaires-cards { @@ -149,7 +428,7 @@ a { } .populaires-cards a { - width: 30%; + width: 32%; } .populaires-cards .card-title { @@ -162,6 +441,200 @@ a { } /* Small devices (phones, less than 768px) */ -@media (max-width: 767.98px) { - /* ... */ -} \ No newline at end of file +@media (max-width: 768px) { + /* Header */ + + /* Navbar */ + + .topnav { + display: flex; + flex-direction: column; + } + + .logo { + justify-content: center; + padding-bottom: 10px; + } + + .navigation { + display: flex; + justify-content: center; + } + + #navbar-hebergements { + font-size: 16px; + border-bottom: 2px solid #F2F2F2; + padding-inline: 80px; + } + + + #navbar-activites { + font-size: 16px; + border-bottom: 2px solid #F2F2F2; + padding-inline: 80px; + margin-left: 0; + } + + #navbar-hebergements:hover, + #navbar-activites:hover { + color: #0065FC; + border-top: none; + border-bottom: 2px solid #0065FC; + } + + /* Search bar */ + + .recherche { + padding: 15px; + } + + /* Hide the search button up to 768px */ + + .research-button-md { + display: none; + } + + .research-button-sm { + display: flex; + align-items: center; + padding-left: 15px; + padding-right: 15px; + background-color: #0065FC; + border-radius: 15px; + box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2); /* Add shadow */ + } + + .fa-magnifying-glass { + color: white; + font-size: 18px; + } + + .research-text { + display: flex; + width: 100%; + font-size: 15px; + align-items: center; + padding-left: 10px; + padding-right: 20px; + border-top: 1px solid #F2F2F2; + border-bottom: 1px solid #F2F2F2; + } + + #inputtext-location { + align-items: center; + border: 0; + outline: none; + } + + /* Filtres */ + + .filtres { + padding: 15px; + } + + .filtre { + font-size: 15px; + } + + /* Main */ + + + .hebergements-and-populaires { + flex-direction: column-reverse; + padding-inline: 0; + } + + .hebergements-and-populaires .hebergements { + background-color: white; + } + + .hebergements-and-populaires section { + border-radius: 0px; + } + + .populaires-cards { + flex-direction: column; + } + + .populaires-cards a { + width: 100%; + } + + .populaires-cards img { + width: 33%; + height: 136px; + border-top-left-radius: 20px; + border-bottom-left-radius: 20px; + } + + .populaires-cards .card-content { + width: 67%; + } + + .hebergements-cards { + display: flex; + flex-wrap: wrap; + gap: 20px; + } + + .hebergements-cards .card { + display: flex; + } + + .hebergements-cards a { + width: 100%; + } + + .activites-section { + margin-top: 30px; + padding: 0px 30px; + } + + .activites-cards { + flex-direction: column; + gap: 15px; + } + + .activites-cards a { + width: 100%; + } + + .activites-cards img { + height: 140px; + border-top-left-radius: 20px; + border-top-right-radius: 20px; + } + + .activites-cards .card-content { + height: 50px; + display: flex; + padding-left: 10px; + box-sizing: border-box; + } + + + /* Footer */ + + .footer section { + background-color: #F2F2F2; + } + + .footer { + margin: 0px; + margin-top: 50px; + margin-bottom: 0; + padding: 30px 30px; + } + + .footer-text { + display: flex; + flex-direction: column; + gap: 20px; + } + + #a-propos, #nos-hebergements { + padding-right: 0px; + } + +} + diff --git a/images/.DS_Store b/images/.DS_Store new file mode 100644 index 00000000..72987f02 Binary files /dev/null and b/images/.DS_Store differ diff --git a/index.html b/index.html index 53512c75..66f59d39 100644 --- a/index.html +++ b/index.html @@ -11,20 +11,217 @@ - + + + + +
-En plein centre-ville ou en pleine nature
+ +Plus de 500 logements sont disponibles dans cette ville
+
+ Nuit à partir de 52€
+
+ Nuit à partir de 96€
+
+ Nuit à partir de 76€
+
+ Nuit à partir de 46€
+
+ Nuit à partir de 25€
+
+ Nuit à partir de 23€
+