diff --git a/public/css/general.css b/public/css/general.css index 8474153..23ea8f6 100644 --- a/public/css/general.css +++ b/public/css/general.css @@ -1,22 +1,4 @@ -.header { - width: 100%; - } -.headerMenu { - font-family: "Poppins"; - font-weight: 400; /*regular*/ - font-size: 1.25rem; /*20px*/ - color: #000; /*Noir pur*/ - display: flex; - flex-flow: row; - justify-content: space-around; - align-items: center; - } - -.headerMenuElement:hover { - border-bottom: 5px #FF563C solid; /*Orange Highlight*/ - cursor: pointer; - } .heading1 { font-family: "Poppins"; diff --git a/public/css/header.css b/public/css/header.css new file mode 100644 index 0000000..b947751 --- /dev/null +++ b/public/css/header.css @@ -0,0 +1,49 @@ +.header { + width: 100%; + } + +.headerMenu { + font-family: "Poppins"; + font-weight: 400; /*regular*/ + font-size: 1.25rem; /*20px*/ + color: #394596; /*Noir pur*/ + display: flex; + flex-flow: row; + justify-content: space-around; + align-items: center; + } + +.headerMenuElement:hover { + border-bottom: 5px #FF563C solid; /*Orange Highlight*/ + cursor: pointer; + } + + /* Le header s'affiche en menu hamburger pour les breakpoints téléphone et tablette */ +@media screen and (max-width: 576px) { + .headerMenuElement{ + display: none; + } + .hamburgerMenuIcon{ + display: block; + } + } + + @media screen and (min-width: 576px) { + .headerMenuElement{ + display: none; + } + .hamburgerMenuIcon{ + display: block; + } + } + + /* Les éléments du header s'affichent pour le breakpoint ordinateur */ + @media screen and (min-width: 1024px) { + .headerMenuElement{ + display: block; + } + .hamburgerMenuIcon{ + display: none; + } + } + diff --git a/public/icones/hamburger-menu.svg b/public/icones/hamburger-menu.svg new file mode 100644 index 0000000..795a610 --- /dev/null +++ b/public/icones/hamburger-menu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/html/header.gohtml b/templates/html/header.gohtml index 178ae4a..7473e88 100644 --- a/templates/html/header.gohtml +++ b/templates/html/header.gohtml @@ -2,6 +2,7 @@