From 2c1fa652c577cbc145abea573991afe4d5cebbfd Mon Sep 17 00:00:00 2001 From: Mike Pixel Dev <86058062+mikepixeldev@users.noreply.github.com> Date: Sun, 24 Sep 2023 08:31:36 +0200 Subject: [PATCH 01/13] Create .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..9bea4330 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.DS_Store From 57776bb95a05a9d15c4c72b00e62bcac74caabfa Mon Sep 17 00:00:00 2001 From: Mike Pixel Dev <86058062+mikepixeldev@users.noreply.github.com> Date: Sun, 24 Sep 2023 09:17:50 +0200 Subject: [PATCH 02/13] Update Index --- index.html | 205 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 118 insertions(+), 87 deletions(-) diff --git a/index.html b/index.html index 53512c75..1688430f 100644 --- a/index.html +++ b/index.html @@ -1,96 +1,127 @@ - - - - + + + Booki - - - - - - + + + + + + - +
-
-
-
- + +
+ + - - - \ No newline at end of file + + From a49eff901a98d003f9d5bcb64ddf2a63939752c3 Mon Sep 17 00:00:00 2001 From: Mike Pixel Dev <86058062+mikepixeldev@users.noreply.github.com> Date: Sun, 24 Sep 2023 09:34:50 +0200 Subject: [PATCH 03/13] Update Header Ajout logo --- index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 1688430f..e6c18db2 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,10 @@
- logo Booki + + logo Booki
From 54ea70d74def22a2ad1b72f3e6715fe6f2673904 Mon Sep 17 00:00:00 2001 From: Mike Pixel Dev <86058062+mikepixeldev@users.noreply.github.com> Date: Sun, 24 Sep 2023 09:40:18 +0200 Subject: [PATCH 04/13] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index e6c18db2..0b246199 100644 --- a/index.html +++ b/index.html @@ -24,7 +24,7 @@
logo Booki
From 1fb31aab9987014c0c8430444db878133410e626 Mon Sep 17 00:00:00 2001 From: Mike Pixel Dev <86058062+mikepixeldev@users.noreply.github.com> Date: Mon, 25 Sep 2023 14:55:01 +0200 Subject: [PATCH 05/13] Header in progress --- css/style.css | 171 +++++++++++++++++++++++++++----------------------- index.html | 2 +- 2 files changed, 93 insertions(+), 80 deletions(-) diff --git a/css/style.css b/css/style.css index f6c96c4d..b0b6bece 100644 --- a/css/style.css +++ b/css/style.css @@ -1,167 +1,180 @@ /****** General ***********/ * { - font-family: 'Raleway', sans-serif; + font-family: "Raleway", sans-serif; } :root { - --main-color: #0065FC; - --main-bg-color: #F2F2F2; - --filter-bg-color: #DEEBFF; + --main-color: #0065fc; + --main-bg-color: #f2f2f2; + --filter-bg-color: #deebff; } .fa-solid { - color: var(--main-color); + color: var(--main-color); } body { - display: flex; - justify-content: center; + display: flex; + justify-content: center; } .main-container { - width: 100%; - max-width: 1440px; - padding: 0 50px; - box-sizing: border-box; + width: 100%; + max-width: 1440px; + padding: 0 50px; + box-sizing: border-box; +} + +/* ajout des attributs du header */ + +header { + width: 100%; + max-width: 1440px; + max-height: 79px; + padding-bottom: 10px; +} + +/* ajout des attributs du logo */ +#logo { + padding: 30px 50px; + max-width: 100%; + max-height: 59.05px; } a { - color: inherit; - text-decoration: none; + color: inherit; + text-decoration: none; } .section-title { - margin: 0; - font-size: 22px; + 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)); + background-color: white; + border-radius: 20px; + padding: 5px; + filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1)); } .card img { - object-fit: cover; + object-fit: cover; } .card-title { - font-size: 16px; + font-size: 16px; } .euro { - font-weight: 700; + font-weight: 700; } .neutral-star { - color: var(--main-bg-color) + color: var(--main-bg-color); } /****** Hebergements And Populaires ***********/ .hebergements-and-populaires { - display: flex; - justify-content: space-between; + display: flex; + justify-content: space-between; } .hebergements-and-populaires section { - background-color: var(--main-bg-color); - border-radius: 20px; - padding: 30px; - box-sizing: border-box; + background-color: var(--main-bg-color); + border-radius: 20px; + padding: 30px; + box-sizing: border-box; } /****** Hebergements ***********/ .hebergements { - width: 65%; + width: 65%; } /****** Populaires ***********/ .populaires { - width: 32%; + width: 32%; } .populaires-title { - display: flex; - justify-content: space-between; - align-items: center; + display: flex; + justify-content: space-between; + align-items: center; } .populaires-cards .card { - display: flex; - margin-top: 33px; + display: flex; + margin-top: 33px; } .populaires-cards img { - width: 33%; - height: 136px; - border-top-left-radius: 20px; - border-bottom-left-radius: 20px; + width: 33%; + height: 136px; + border-top-left-radius: 20px; + border-bottom-left-radius: 20px; } .populaires-cards .card-content { - width: 67%; - padding-left: 15px; - display: flex; - flex-direction: column; - justify-content: space-between; - box-sizing: border-box; + width: 67%; + padding-left: 15px; + display: flex; + flex-direction: column; + justify-content: space-between; + box-sizing: border-box; } .populaires-cards .card-title { - margin-top: 10px; - margin-bottom: 4px; + margin-top: 10px; + margin-bottom: 4px; } .populaires-cards .card-subtitle { - margin: 0; + margin: 0; } .populaires-cards .card-rating { - margin-bottom: 5px; + margin-bottom: 5px; } - - - /* Le code ci-dessous correspond à la version responsive uniquement */ /****** Media queries ***********/ /* Medium devices (tablets, less/equal than 1024px) */ @media (max-width: 1024px) { - .hebergements-and-populaires { - flex-direction: column; - } + .hebergements-and-populaires { + flex-direction: column; + } - .hebergements { - width: 100%; - } + .hebergements { + width: 100%; + } - .populaires { - width: 100%; - margin-top: 50px; - } + .populaires { + width: 100%; + margin-top: 50px; + } - .populaires-cards { - display: flex; - flex-direction: row; - justify-content: space-between; - } + .populaires-cards { + display: flex; + flex-direction: row; + justify-content: space-between; + } - .populaires-cards a { - width: 30%; - } + .populaires-cards a { + width: 30%; + } - .populaires-cards .card-title { - font-size: 14px; - } + .populaires-cards .card-title { + font-size: 14px; + } - .populaires-cards .card-subtitle { - font-size: 13px; - } + .populaires-cards .card-subtitle { + font-size: 13px; + } } /* Small devices (phones, less than 768px) */ @media (max-width: 767.98px) { - /* ... */ -} \ No newline at end of file + /* ... */ +} diff --git a/index.html b/index.html index 0b246199..26f124c1 100644 --- a/index.html +++ b/index.html @@ -26,7 +26,7 @@ - logo Booki +
From a8b7405a45ae7561510c0b9955ffd50e5725056b Mon Sep 17 00:00:00 2001 From: Mike Pixel Dev <86058062+mikepixeldev@users.noreply.github.com> Date: Mon, 25 Sep 2023 19:52:01 +0200 Subject: [PATCH 06/13] Ajout Menu --- css/style.css | 19 ++++++++++++++++--- index.html | 9 ++++++++- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/css/style.css b/css/style.css index b0b6bece..c0ef72c5 100644 --- a/css/style.css +++ b/css/style.css @@ -16,6 +16,7 @@ body { display: flex; justify-content: center; + max-width: 1440px; } .main-container { @@ -29,16 +30,28 @@ body { header { width: 100%; - max-width: 1440px; - max-height: 79px; padding-bottom: 10px; + display: flex; + justify-content: space-between; } /* ajout des attributs du logo */ #logo { padding: 30px 50px; max-width: 100%; - max-height: 59.05px; + height: 19px; +} + +/* ajout menu */ + +nav { + display: flex; +} + +ul { + display: flex; + list-style-type: none; + gap: 69px; } a { diff --git a/index.html b/index.html index 26f124c1..2010f6e6 100644 --- a/index.html +++ b/index.html @@ -24,10 +24,17 @@
+
+
From de35af204dc75550c99cd023decba0c559748b44 Mon Sep 17 00:00:00 2001 From: Mike Pixel Dev <86058062+mikepixeldev@users.noreply.github.com> Date: Tue, 17 Oct 2023 09:41:38 +0200 Subject: [PATCH 07/13] =?UTF-8?q?Ajout=20filtre,=20footer=20et=20d=C3=A9bu?= =?UTF-8?q?t=20section=20H=C3=A9bergement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/style.css | 260 +++++++++++++++++++++++++++++++++++++++++++++++++- index.html | 260 +++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 506 insertions(+), 14 deletions(-) diff --git a/css/style.css b/css/style.css index c0ef72c5..b0732a4c 100644 --- a/css/style.css +++ b/css/style.css @@ -19,6 +19,28 @@ body { max-width: 1440px; } +/************ Ajout des balise h1 à h3 ****************/ + +h1 { + font-size: 22px; + font-weight: 700; +} + +h2 { + font-size: 18px; + font-weight: 700; +} + +h3 { + font-size: 16px; + font-weight: 700; +} + +p { + font-size: 16px; + font-weight: 400; +} + .main-container { width: 100%; max-width: 1440px; @@ -49,9 +71,33 @@ nav { } ul { + list-style: none; +} + +.menu-ul { display: flex; - list-style-type: none; - gap: 69px; + gap: 68px; +} + +.menu { + display: flex; + gap: 68px; +} + +/* menu avec survol */ + +/* CORRIGER LA BORDURE */ +.menu:hover::before { + content: ""; + position: absolute; + top: 0; + width: 100%; + height: 20px; + background-color: var(--main-color); +} + +.menu:hover { + color: var(--main-color); } a { @@ -59,6 +105,116 @@ a { text-decoration: none; } +/************ Ajout de l'Info Group ****************/ + +.recherche-filtre { + margin: 0px 35px 50px; + max-width: 1340px; +} + +.conteneur-headline, +.conteneur-recherche, +.conteneur-filtres, +.conteneur-informations { + margin-bottom: 35px; +} + +.search-bar, +.search-bar button:first-child, +.search-bar input, +.search-bar button:last-child { + box-sizing: border-box; +} + +.search-bar { + display: flex; + width: 377px; + height: 49px; + border-radius: 15px; + border: 1px solid var(--main-bg-color); + align-items: center; + gap: 24px; +} + +.search-bar button:first-child { + font-size: 18px; + display: flex; + justify-content: center; + align-items: center; + background-color: var(--main-bg-color); + border-radius: 15px 0 0 15px; + border: none; + flex-grow: 1; + min-width: 50px; + height: 49px; +} + +.search-bar input { + background-color: white; + border: none; + color: black; + text-align: center; + flex-grow: 1; + border-radius: 0; + min-width: 151px; +} + +input::placeholder { + color: black; + font-size: 18px; + font-weight: 700; + text-align: center; +} + +.search-bar button:last-child { + background-color: var(--main-color); + color: white; + font-size: 18px; + font-style: normal; + font-weight: 700; + padding: 15px 16px; + border: none; + border-radius: 0 15px 15px 0; + flex-grow: 1; + display: flex; + justify-content: center; + align-items: center; + height: 49px; +} + +.conteneur-filtres { + display: flex; + align-items: center; + gap: 15px; +} + +.boutons-filtre { + display: flex; + height: 50px; + align-items: center; + gap: 15px; +} + +.boutons-filtre h3 { + margin: 0; +} + +.boutons-filtre button { + display: flex; + align-items: center; + gap: 10px; + font-size: 18px; + height: 42px; + padding: 4px 19px; + border-radius: 25px; + border: 2px solid var(--filter-bg-color); + background-color: #ffff; + color: black; + cursor: pointer; +} + +/*********** *****************/ + .section-title { margin: 0; font-size: 22px; @@ -100,11 +256,67 @@ a { box-sizing: border-box; } -/****** Hebergements ***********/ +/****** Hebergements en chantier ***********/ + .hebergements { width: 65%; + float: left; + margin-right: 2%; +} + +.hebergements-title, +.hebergements-cards { + margin-bottom: 35px; +} + +.hebergements-title { + display: flex; + justify-content: space-between; + align-items: center; +} + +.hebergements-cards { + display: flex; + flex-wrap: wrap; + gap: 30px; +} + +.hebergements-cards .card { + box-sizing: border-box; + max-width: 250px; +} + +.hebergements-cards img { + width: 100%; + height: 124px; + border-radius: 20px; + object-fit: cover; +} + +.hebergements-cards .card-content { + width: 100%; + padding: 15px; + display: flex; + flex-direction: column; + justify-content: space-between; + box-sizing: border-box; } +.afficher-plus { + display: inline-block; + margin-top: 20px; + text-align: left; + width: 100%; + height: auto; + text-decoration: none; +} + +.afficher-plus:hover { + text-decoration: none; +} + +/****** Fin Hebergements ***********/ + /****** Populaires ***********/ .populaires { width: 32%; @@ -150,6 +362,48 @@ a { margin-bottom: 5px; } +/********************* ajout du footer *********************/ + +footer { + background-color: var(--main-bg-color); + margin: 50px; +} + +.footer-content { + display: flex; + justify-content: space-between; +} + +.footer-menu { + flex: 1; + padding: 20px; +} + +.footer-menu:last-child { + margin-right: 0; +} + +h2 { + margin-bottom: 15px; +} + +.footer-col { + padding: 0; +} + +.link-footer { + margin-bottom: 15px; +} + +a { + text-decoration: none; + transition: color 0.3s; +} + +a:hover { + color: var(--main-color); +} + /* Le code ci-dessous correspond à la version responsive uniquement */ /****** Media queries ***********/ diff --git a/index.html b/index.html index 2010f6e6..6c0124a0 100644 --- a/index.html +++ b/index.html @@ -10,13 +10,10 @@ href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700&display=swap" rel="stylesheet" /> - + > @@ -28,16 +25,226 @@ --> + +
+ +
+

Trouvez votre hébergement pour des vacances de rêve

+

En plein centre-ville ou en pleine nature

+
+ +
+ +
+ +
+

Filtres

+
+ + + + +
+
+ +
+

+ Plus de 500 logements sont + disponibles dans cette ville +

+
+
+
-
+ + +
From 69aced2093ff34ee96e8da961618f9f4fb248c2f Mon Sep 17 00:00:00 2001 From: Mike Pixel Dev <86058062+mikepixeldev@users.noreply.github.com> Date: Mon, 23 Oct 2023 07:55:04 +0200 Subject: [PATCH 08/13] =?UTF-8?q?Deskop=20presque=20termin=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajout de toutes les sections - optimisation du CSS - correction de petits décalages Mais il reste encore des détails à améliorer et corriger --- css/style.css | 170 ++++++++++++++++++++++++++++++++++--------------- index.html | 171 ++++++++++++++++++++++++++++++-------------------- 2 files changed, 225 insertions(+), 116 deletions(-) diff --git a/css/style.css b/css/style.css index b0732a4c..c928cb9e 100644 --- a/css/style.css +++ b/css/style.css @@ -15,11 +15,25 @@ body { display: flex; - justify-content: center; + padding-bottom: 60.5px; +} + +.main-container { + width: 100%; max-width: 1440px; + box-sizing: border-box; } -/************ Ajout des balise h1 à h3 ****************/ +main { + display: flex; + padding: 0px 50px; + flex-direction: column; + gap: 35px; + align-items: flex-start; + align-self: stretch; +} + +/************ Texte & titres ****************/ h1 { font-size: 22px; @@ -41,14 +55,19 @@ p { font-weight: 400; } -.main-container { - width: 100%; - max-width: 1440px; - padding: 0 50px; - box-sizing: border-box; +p.normal { + font-weight: 400; } -/* ajout des attributs du header */ +.bold { + font-weight: 700; +} + +p.big-text { + font-size: 18px; +} + +/* Header */ header { width: 100%; @@ -57,14 +76,14 @@ header { justify-content: space-between; } -/* ajout des attributs du logo */ +/* Logo */ #logo { padding: 30px 50px; max-width: 100%; height: 19px; } -/* ajout menu */ +/* Menu */ nav { display: flex; @@ -105,20 +124,16 @@ a { text-decoration: none; } -/************ Ajout de l'Info Group ****************/ +/************ Info Group ****************/ .recherche-filtre { - margin: 0px 35px 50px; + display: flex; + flex-direction: column; + gap: 35px; + margin: 0px 35px; max-width: 1340px; } -.conteneur-headline, -.conteneur-recherche, -.conteneur-filtres, -.conteneur-informations { - margin-bottom: 35px; -} - .search-bar, .search-bar button:first-child, .search-bar input, @@ -184,27 +199,24 @@ input::placeholder { .conteneur-filtres { display: flex; + height: 50px; align-items: center; gap: 15px; } .boutons-filtre { display: flex; - height: 50px; align-items: center; gap: 15px; } -.boutons-filtre h3 { - margin: 0; -} +/*********** Régler problème taille icon *****************/ .boutons-filtre button { display: flex; align-items: center; gap: 10px; - font-size: 18px; - height: 42px; + font-size: 17px; padding: 4px 19px; border-radius: 25px; border: 2px solid var(--filter-bg-color); @@ -243,7 +255,7 @@ input::placeholder { color: var(--main-bg-color); } -/****** Hebergements And Populaires ***********/ +/****** Hebergements & Populaires ***********/ .hebergements-and-populaires { display: flex; justify-content: space-between; @@ -256,17 +268,14 @@ input::placeholder { box-sizing: border-box; } -/****** Hebergements en chantier ***********/ +/****** Hebergements ***********/ .hebergements { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 30px; width: 65%; - float: left; - margin-right: 2%; -} - -.hebergements-title, -.hebergements-cards { - margin-bottom: 35px; } .hebergements-title { @@ -277,38 +286,66 @@ input::placeholder { .hebergements-cards { display: flex; + flex-direction: row; + justify-content: space-between; flex-wrap: wrap; gap: 30px; } +a.cards-prop { + display: flex; +} + .hebergements-cards .card { + display: flex; + padding-bottom: 15px; + margin: 0; + flex-direction: column; + align-items: center; + gap: 4px; box-sizing: border-box; - max-width: 250px; + min-width: 250px; } .hebergements-cards img { width: 100%; height: 124px; - border-radius: 20px; + border-radius: 20px 20px 0px 0px; object-fit: cover; } .hebergements-cards .card-content { width: 100%; - padding: 15px; + padding: 0px 15px; + margin: 0; display: flex; flex-direction: column; + align-items: flex-start; + gap: 8px; + align-items: stretch; justify-content: space-between; box-sizing: border-box; } +.card-content .card-txt { + margin: 0; + display: flex; + flex-direction: column; + gap: 8px; + align-self: stretch; +} + +.card-content .card-title { + margin: 0; +} + +.card-content .card-subtitle { + margin: 0; +} + .afficher-plus { display: inline-block; - margin-top: 20px; - text-align: left; - width: 100%; - height: auto; - text-decoration: none; + margin: 0; } .afficher-plus:hover { @@ -362,16 +399,55 @@ input::placeholder { margin-bottom: 5px; } -/********************* ajout du footer *********************/ +/********************* Activités *********************/ + +#section-activites { + width: 1280px; + padding: 30px; + + display: flex; + flex-direction: column; + gap: 30px; +} + +#section-activites h2 { + align-self: flex-start; +} + +#cards-activites { + display: flex; + gap: 30px; +} + +.card-activites { + width: 299px; + height: 439px; + border-radius: 20px; + overflow: hidden; + box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.1); +} + +.card-activites img { + width: 100%; + height: 380px; + object-fit: cover; +} + +.card-text { + padding: 20px 19px; +} + +/********************* Footer *********************/ footer { + display: flex; + justify-content: space-between; + width: 100%; background-color: var(--main-bg-color); - margin: 50px; } .footer-content { display: flex; - justify-content: space-between; } .footer-menu { @@ -383,10 +459,6 @@ footer { margin-right: 0; } -h2 { - margin-bottom: 15px; -} - .footer-col { padding: 0; } diff --git a/index.html b/index.html index 6c0124a0..6a470609 100644 --- a/index.html +++ b/index.html @@ -20,9 +20,7 @@
- +
- -
- -
-

Trouvez votre hébergement pour des vacances de rêve

-

En plein centre-ville ou en pleine nature

-
- -
- From a40616249c6381e6c397df72716a10d85a19281b Mon Sep 17 00:00:00 2001 From: Mike Pixel Dev <86058062+mikepixeldev@users.noreply.github.com> Date: Fri, 10 Nov 2023 18:04:21 +0100 Subject: [PATCH 09/13] Ajout des versions responsive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ajout de la version tablette - ajout de la version mobile - correction de la partie desktop pour être responsive - ajout du background lors du survol des boutons de filtres - optimisation en cours du code - et autres ajustements --- css/style-mobile.css | 280 +++++++++++++++++++++++++++++++++++++++++++ css/style-tablet.css | 57 +++++++++ css/style.css | 137 ++++++++++----------- index.html | 90 +++++++------- 4 files changed, 452 insertions(+), 112 deletions(-) create mode 100644 css/style-mobile.css create mode 100644 css/style-tablet.css diff --git a/css/style-mobile.css b/css/style-mobile.css new file mode 100644 index 00000000..6afc2400 --- /dev/null +++ b/css/style-mobile.css @@ -0,0 +1,280 @@ +/****** Media queries ***********/ +/* Small devices (phones, less than 768px) */ +@media (max-width: 767.98px) { + body, + .main-container, + header, + .menu-ul, + .hebergements-and-populaires, + .populaires-cards .card, + .footer-menu { + margin: 0; + padding: 0; + } + header { + flex-direction: column; + align-items: center; + } + + /*********************** Header **********************/ + + header { + flex-direction: column; + align-items: center; + } + + /* Logo */ + + #logo { + padding: 30px; + margin-bottom: 15px; + } + + /* Menu */ + + nav, + .menu-ul { + width: 100%; + padding: 0; + margin: 0; + } + + nav { + box-sizing: border-box; + } + + .menu-ul { + display: flex; + flex-direction: row; + justify-content: space-around; + list-style-type: none; + } + + .menu-nav { + display: flex; + flex: 1; + padding-bottom: 15px; + } + + /************ Info Group ****************/ + + /* Recherche */ + + .search-bar { + max-width: 335px; + } + + .search-bar .search-text { + display: none; + } + + .search-bar .search-icon { + display: block; + font-size: 17px; + } + + .search-bar button:last-child { + display: inline-flex; + height: 49px; + padding: 15px 16px; + align-items: center; + gap: 10px; + border-radius: 15px; + border: 1px solid var(--main-color); + background: var(--main-color); + box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); + flex-shrink: 0; + flex-grow: 0; + } + + .search-bar button:last-child .search-text { + display: none; + } + + .search-bar button:last-child .search-icon { + display: block; + color: white; + } + + /* Filtres */ + + .recherche-filtre, + .boutons-filtre { + flex-wrap: wrap; + } + + .recherche-filtre { + display: flex; + flex-direction: column; + gap: 35px; + padding: 0px 20px; + } + + .conteneur-filtres { + display: flex; + flex-direction: column; + justify-content: center; + align-items: flex-start; + gap: 15px; + align-self: stretch; + } + + .conteneur-filtres, + .conteneur-recherche { + flex-grow: 1; + flex-basis: 100%; + } + + .boutons-filtre { + justify-content: space-around; + } + + .boutons-filtre button { + flex-basis: calc(50% - 15px); + flex-grow: 0; + flex-shrink: 0; + + padding: 2px 15px; + font-size: 15px; + } + + /****** Hebergements & Populaires ***********/ + + .hebergements-and-populaires { + display: flex; + flex-direction: column; + justify-content: center; + align-items: flex-start; + gap: 15px; + align-self: stretch; + background-color: white; + margin: 0; + } + + .hebergements-and-populaires section { + border-radius: 0px; + padding: 20px; + box-sizing: border-box; + } + + .populaires { + order: 1; + display: flex; + padding: 30px 20px; + margin-top: 0; + flex-direction: column; + gap: 15px; + align-self: stretch; + background-color: var(--main-bg-color); + } + + .populaires-cards { + display: flex; + flex-direction: column; + gap: 15px; + max-width: 100%; + height: auto; + padding-right: 0; + justify-content: center; + align-self: stretch; + width: 100%; + } + + .populaires-cards .card { + display: flex; + width: 100%; + } + + .populaires-cards a { + display: flex; + width: 100%; + } + + .populaires-cards img { + width: 33.3333%; + height: 146px; + } + + .hebergements { + order: 2; + display: flex; + padding: 20px; + flex-direction: column; + align-items: flex-start; + gap: 15px; + align-self: stretch; + background-color: white; + } + + .hebergements-cards { + display: flex; + padding-bottom: 0px; + flex-direction: column; + align-items: center; + gap: 15px; + align-self: stretch; + max-width: 100%; + width: 100%; + } + + a.cards-prop { + display: flex; + width: 100%; + } + + .hebergements-cards img { + height: 124px; + align-self: stretch; + width: 100%; + } + + /********************* Activités *********************/ + + #section-activites { + display: flex; + flex-direction: column; + gap: 15px; + padding: 30px; + width: 100%; + max-width: 315px; + } + + #cards-activites { + display: flex; + flex-direction: column; + gap: 15px; + width: 100%; + } + + .card-activites { + width: 100%; + height: 200px; + border-radius: 20px; + overflow: hidden; + box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.1); + } + + .card-activites img { + width: 100%; + height: 141px; + object-fit: cover; + } + + /********************* Footer *********************/ + + footer { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 50px; + padding: 30px; + width: 100%; + box-sizing: border-box; + } + + .footer-menu { + display: flex; + flex-direction: column; + align-items: flex-start; + } +} diff --git a/css/style-tablet.css b/css/style-tablet.css new file mode 100644 index 00000000..9480b5c9 --- /dev/null +++ b/css/style-tablet.css @@ -0,0 +1,57 @@ +/****** Media queries ***********/ +/* Medium devices (tablets, less/equal than 1024px) */ +@media (max-width: 1024px) { + .conteneur-filtres { + display: flex; + flex-direction: column; + justify-content: center; + align-items: flex-start; + gap: 15px; + } + + .hebergements-and-populaires { + flex-direction: column; + } + + .hebergements, + .populaires { + width: 100%; + background-color: var(--main-bg-color); + } + + .populaires { + margin-top: 50px; + } + + .populaires-cards { + display: flex; + flex-direction: row; + justify-content: space-between; + } + + .populaires-cards a { + width: 30%; + } + + .populaires-cards .card-title { + font-size: 14px; + } + + .populaires-cards .card-subtitle { + font-size: 13px; + } + + .card-activites { + width: 25%; + height: 270px; + border-radius: 20px; + overflow: hidden; + filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1)); + } + + .card-activites img { + width: 100%; + height: 200px; + object-fit: cover; + } +} diff --git a/css/style.css b/css/style.css index c928cb9e..d46e7c13 100644 --- a/css/style.css +++ b/css/style.css @@ -15,18 +15,18 @@ body { display: flex; - padding-bottom: 60.5px; + justify-content: center; } .main-container { width: 100%; max-width: 1440px; + margin: 0px 50px; box-sizing: border-box; } main { display: flex; - padding: 0px 50px; flex-direction: column; gap: 35px; align-items: flex-start; @@ -65,20 +65,20 @@ p.normal { p.big-text { font-size: 18px; + margin: 0; } /* Header */ header { width: 100%; - padding-bottom: 10px; display: flex; justify-content: space-between; } /* Logo */ #logo { - padding: 30px 50px; + padding: 30px 50px 30px 0; max-width: 100%; height: 19px; } @@ -98,25 +98,28 @@ ul { gap: 68px; } -.menu { +.menu-nav { display: flex; gap: 68px; + position: relative; + padding-top: 2px; } -/* menu avec survol */ - -/* CORRIGER LA BORDURE */ -.menu:hover::before { +.menu-nav::before { content: ""; position: absolute; - top: 0; - width: 100%; - height: 20px; - background-color: var(--main-color); + top: -24px; + left: 0; + width: 0; + height: 2px; + background: transparent; + transition: width 0.3s ease-in-out, background-color 0.3s ease; + flex-shrink: 0; } -.menu:hover { - color: var(--main-color); +.menu-nav:hover::before { + width: 100%; + background: var(--main-color); } a { @@ -126,11 +129,12 @@ a { /************ Info Group ****************/ +/* Recherche */ + .recherche-filtre { display: flex; flex-direction: column; gap: 35px; - margin: 0px 35px; max-width: 1340px; } @@ -143,7 +147,7 @@ a { .search-bar { display: flex; - width: 377px; + max-width: 377px; height: 49px; border-radius: 15px; border: 1px solid var(--main-bg-color); @@ -197,8 +201,19 @@ input::placeholder { height: 49px; } +.search-bar .search-text { + display: block; +} + +.search-bar .search-icon { + display: none; +} + +/* Filtres */ + .conteneur-filtres { display: flex; + flex-direction: row; height: 50px; align-items: center; gap: 15px; @@ -206,12 +221,12 @@ input::placeholder { .boutons-filtre { display: flex; - align-items: center; + flex-wrap: nowrap; gap: 15px; + align-items: center; + justify-content: flex-start; } -/*********** Régler problème taille icon *****************/ - .boutons-filtre button { display: flex; align-items: center; @@ -223,9 +238,31 @@ input::placeholder { background-color: #ffff; color: black; cursor: pointer; + height: 42px; + box-sizing: border-box; } -/*********** *****************/ +.boutons-filtre i, +.boutons-filtre p { + margin: 0; +} + +.boutons-filtre p { + line-height: 1; +} + +.boutons-filtre button:hover { + background-color: var(--filter-bg-color); + border: 2px solid var(--grey-tint-2, #d9d9d9); +} + +.conteneur-informations { + display: flex; + align-items: center; + gap: 10px; +} + +/****** Hebergements & Populaires ***********/ .section-title { margin: 0; @@ -255,14 +292,12 @@ input::placeholder { color: var(--main-bg-color); } -/****** Hebergements & Populaires ***********/ .hebergements-and-populaires { display: flex; justify-content: space-between; } .hebergements-and-populaires section { - background-color: var(--main-bg-color); border-radius: 20px; padding: 30px; box-sizing: border-box; @@ -276,6 +311,7 @@ input::placeholder { align-items: flex-start; gap: 30px; width: 65%; + background-color: var(--main-bg-color); } .hebergements-title { @@ -294,6 +330,7 @@ input::placeholder { a.cards-prop { display: flex; + width: 30%; } .hebergements-cards .card { @@ -304,7 +341,7 @@ a.cards-prop { align-items: center; gap: 4px; box-sizing: border-box; - min-width: 250px; + width: 100%; } .hebergements-cards img { @@ -357,6 +394,7 @@ a.cards-prop { /****** Populaires ***********/ .populaires { width: 32%; + background-color: var(--main-bg-color); } .populaires-title { @@ -402,12 +440,10 @@ a.cards-prop { /********************* Activités *********************/ #section-activites { - width: 1280px; - padding: 30px; - display: flex; flex-direction: column; gap: 30px; + padding: 30px; } #section-activites h2 { @@ -420,11 +456,11 @@ a.cards-prop { } .card-activites { - width: 299px; + width: 25%; height: 439px; border-radius: 20px; overflow: hidden; - box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.1); + filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1)); } .card-activites img { @@ -443,6 +479,7 @@ footer { display: flex; justify-content: space-between; width: 100%; + margin-top: 35px; background-color: var(--main-bg-color); } @@ -475,45 +512,3 @@ a { a:hover { color: var(--main-color); } - -/* Le code ci-dessous correspond à la version responsive uniquement */ - -/****** Media queries ***********/ -/* Medium devices (tablets, less/equal than 1024px) */ -@media (max-width: 1024px) { - .hebergements-and-populaires { - flex-direction: column; - } - - .hebergements { - width: 100%; - } - - .populaires { - width: 100%; - margin-top: 50px; - } - - .populaires-cards { - display: flex; - flex-direction: row; - justify-content: space-between; - } - - .populaires-cards a { - width: 30%; - } - - .populaires-cards .card-title { - font-size: 14px; - } - - .populaires-cards .card-subtitle { - font-size: 13px; - } -} - -/* Small devices (phones, less than 768px) */ -@media (max-width: 767.98px) { - /* ... */ -} diff --git a/index.html b/index.html index 6a470609..0f82dde3 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,8 @@ crossorigin="anonymous" > + + @@ -25,9 +27,9 @@ @@ -41,13 +43,17 @@

Trouvez votre hébergement pour des vacances de rêve

En plein centre-ville ou en pleine nature

-
- -
+
+ +
+

Filtres

@@ -72,8 +78,9 @@

Trouvez votre hébergement pour des vacances de rêve

+

- Plus de 500 logements sont + Plus de 500 logements sont disponibles dans cette ville

@@ -375,38 +382,39 @@

Activités à Marseille

- - - - +
+ +
+ + From ade158c28405e2067939e1210d61e324d0290fc2 Mon Sep 17 00:00:00 2001 From: Mike Pixel <86058062+mikepixeldev@users.noreply.github.com> Date: Thu, 16 Nov 2023 14:35:26 +0100 Subject: [PATCH 10/13] Create LICENSE --- LICENSE | 201 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. From a2530a877b6597b587739c499a35935ecdd6b1f7 Mon Sep 17 00:00:00 2001 From: Mike Pixel Dev <86058062+mikepixeldev@users.noreply.github.com> Date: Thu, 16 Nov 2023 14:37:43 +0100 Subject: [PATCH 11/13] Dubug menu & footer --- css/style-mobile.css | 17 +++++++++++++++-- css/style.css | 34 ++++++++++++++-------------------- 2 files changed, 29 insertions(+), 22 deletions(-) diff --git a/css/style-mobile.css b/css/style-mobile.css index 6afc2400..6b1a1c1f 100644 --- a/css/style-mobile.css +++ b/css/style-mobile.css @@ -50,9 +50,22 @@ list-style-type: none; } + li { + text-align: center; + width: 50%; + } + + li a { + align-items: center; + width: 100%; + } + + .menu-ul li:hover { + border-top: none; + border-bottom: 2px solid var(--main-color); + } + .menu-nav { - display: flex; - flex: 1; padding-bottom: 15px; } diff --git a/css/style.css b/css/style.css index d46e7c13..2edbc15e 100644 --- a/css/style.css +++ b/css/style.css @@ -16,6 +16,7 @@ body { display: flex; justify-content: center; + margin: 0; } .main-container { @@ -65,7 +66,6 @@ p.normal { p.big-text { font-size: 18px; - margin: 0; } /* Header */ @@ -91,6 +91,7 @@ nav { ul { list-style: none; + margin: 0; } .menu-ul { @@ -98,28 +99,17 @@ ul { gap: 68px; } -.menu-nav { +.menu-ul li { display: flex; - gap: 68px; - position: relative; - padding-top: 2px; + align-items: center; } -.menu-nav::before { - content: ""; - position: absolute; - top: -24px; - left: 0; - width: 0; - height: 2px; - background: transparent; - transition: width 0.3s ease-in-out, background-color 0.3s ease; - flex-shrink: 0; +.menu-ul li:hover { + border-top: 2px solid var(--main-color); } -.menu-nav:hover::before { - width: 100%; - background: var(--main-color); +.menu-nav { + padding-bottom: 10px; } a { @@ -372,10 +362,14 @@ a.cards-prop { align-self: stretch; } -.card-content .card-title { +.card-content { margin: 0; } +.card-title { + margin-bottom: 0; +} + .card-content .card-subtitle { margin: 0; } @@ -460,7 +454,7 @@ a.cards-prop { height: 439px; border-radius: 20px; overflow: hidden; - filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1)); + box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.1); } .card-activites img { From 9a17fa019234a1be7de801a5851941d8e3c157a6 Mon Sep 17 00:00:00 2001 From: Mike Pixel Dev <86058062+mikepixeldev@users.noreply.github.com> Date: Thu, 16 Nov 2023 14:48:19 +0100 Subject: [PATCH 12/13] Update README.md --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cf39555f..5e77899e 100644 --- a/README.md +++ b/README.md @@ -1 +1,43 @@ -# booki-starter-pack +# Booki - Exercice d'Intégration HTML & CSS (OpenClassRooms) + +## Description + +Le projet Booki est un exercice pratique proposé par OpenClassRooms. Il s'agit d'un site web de réservation d'hôtels fictif, développé pour apprendre et pratiquer l'intégration d'une maquette en HTML et CSS. Ce projet met l'accent sur l'utilisation de techniques responsive pour s'adapter aux différentes tailles d'écran (desktop, tablette, mobile). + +## Objectifs Pédagogiques + +- Intégrer une maquette en HTML & CSS. +- Appliquer des techniques de design responsive. +- Utiliser des feuilles de style CSS distinctes pour différentes tailles d'écran. + +## Structure du Projet + +``` +Booki/ +│ +├── css/ +│ ├── style.css # Feuille de style pour desktop +│ ├── style-mobile.css # Feuille de style pour mobile +│ └── style-tablet.css # Feuille de style pour tablette +│ +├── images/ # Dossier contenant les images du site (fictif) +│ └── ... +│ +└── index.html # Fichier HTML principal +``` + +## Utilisation + +Ce projet est à usage éducatif et n'est pas fonctionnel en tant que site de réservation. Pour voir le rendu, ouvrez `index.html` dans un navigateur web. + +## Contexte du Projet + +Ce projet fait partie d'un cours sur le développement web et est conçu pour aider les étudiants à comprendre les principes de base de l'intégration web en utilisant HTML et CSS. + +## Licence + +Ce projet est sous licence Apache 2.0. + +## Contact + +Pour des questions liées à cet exercice ou des suggestions, contactez hello@mikepixel.dev. From f67da55ef650fbafa846590afaab05465d3a59fb Mon Sep 17 00:00:00 2001 From: Mike Pixel Dev <86058062+mikepixeldev@users.noreply.github.com> Date: Sun, 19 Nov 2023 18:52:15 +0100 Subject: [PATCH 13/13] Corrections et optimisations --- css/style-mobile.css | 11 +++-- css/style.css | 41 +++++++--------- index.html | 110 +++++++++++++++++++++++-------------------- 3 files changed, 82 insertions(+), 80 deletions(-) diff --git a/css/style-mobile.css b/css/style-mobile.css index 6b1a1c1f..294ad557 100644 --- a/css/style-mobile.css +++ b/css/style-mobile.css @@ -11,10 +11,6 @@ margin: 0; padding: 0; } - header { - flex-direction: column; - align-items: center; - } /*********************** Header **********************/ @@ -289,5 +285,12 @@ display: flex; flex-direction: column; align-items: flex-start; + width: 100%; + } + + .link-footer a { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } } diff --git a/css/style.css b/css/style.css index 2edbc15e..93d5ebbc 100644 --- a/css/style.css +++ b/css/style.css @@ -113,8 +113,9 @@ ul { } a { - color: inherit; text-decoration: none; + color: inherit; + transition: color 0.3s; } /************ Info Group ****************/ @@ -176,19 +177,19 @@ input::placeholder { } .search-bar button:last-child { - background-color: var(--main-color); - color: white; - font-size: 18px; - font-style: normal; - font-weight: 700; - padding: 15px 16px; - border: none; - border-radius: 0 15px 15px 0; - flex-grow: 1; display: flex; justify-content: center; align-items: center; + flex-grow: 1; height: 49px; + padding: 15px 16px; + border: none; + border-radius: 0 15px 15px 0; + background-color: var(--main-color); + color: white; + font-size: 18px; + font-weight: 700; + font-style: normal; } .search-bar .search-text { @@ -237,10 +238,6 @@ input::placeholder { margin: 0; } -.boutons-filtre p { - line-height: 1; -} - .boutons-filtre button:hover { background-color: var(--filter-bg-color); border: 2px solid var(--grey-tint-2, #d9d9d9); @@ -272,6 +269,7 @@ input::placeholder { .card-title { font-size: 16px; + margin-bottom: 0; } .euro { @@ -354,6 +352,11 @@ a.cards-prop { box-sizing: border-box; } +.hebergements-cards .card-title { + margin-top: 4px; + margin-bottom: 4px; +} + .card-content .card-txt { margin: 0; display: flex; @@ -366,10 +369,6 @@ a.cards-prop { margin: 0; } -.card-title { - margin-bottom: 0; -} - .card-content .card-subtitle { margin: 0; } @@ -420,7 +419,6 @@ a.cards-prop { .populaires-cards .card-title { margin-top: 10px; - margin-bottom: 4px; } .populaires-cards .card-subtitle { @@ -498,11 +496,6 @@ footer { margin-bottom: 15px; } -a { - text-decoration: none; - transition: color 0.3s; -} - a:hover { color: var(--main-color); } diff --git a/index.html b/index.html index 0f82dde3..cb0bb921 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,11 @@ Booki - + - - + + @@ -43,46 +55,43 @@

Trouvez votre hébergement pour des vacances de rêve

En plein centre-ville ou en pleine nature

-
- -
- +
+ +
+

Filtres

-

- Plus de 500 logements sont - disponibles dans cette ville -

+

Plus de 500 logements sont disponibles dans cette ville

@@ -95,8 +104,8 @@

Hébergements à Marseille

- -
+ +
Image de l'hôtel du portHébergements à Marseille Note de 4 sur 5
- + -
+
Image de l'hôtel Chez AminaHébergements à Marseille Note de 4 sur 5
-
+
-
+
Image de l'hôtel Les mouettesHébergements à Marseille Note de 4 sur 5
-
+
- -
+ +
Image de l'hôtel de la merHébergements à Marseille Note de 4 sur 5
-
+ - -
+ +
Image de l'Auberge La CanebièreHébergements à Marseille Note de 4 sur 5
-
+ - -
+ +
Image de l'Auberge Le PanierHébergements à Marseille Note de 4 sur 5
-
+

@@ -261,7 +270,7 @@

Les plus populaires

-
+
Image de la chambre d'hôtel montrant un litHôtel Le soleil du matin Note de 4 sur 5
- + -
+
Image de la chambre d'hôtel montrant un lit Note de 4 sur 5
-
+
-
+
Image de la chambre d'hôtel montrant un litHôtel Bleu et Blanc Note de 4 sur 5
-
+
@@ -357,7 +366,7 @@

Activités à Marseille

src="/images/activites/reno-laithienne.jpg" alt="Vieux-Port" /> -
Vieux-Port

+
Vieux-Port
Activités à Marseille
- - - - - -