diff --git a/assets/sass/_custom.sass b/assets/sass/_custom.sass index 50207f9..d9c6085 100644 --- a/assets/sass/_custom.sass +++ b/assets/sass/_custom.sass @@ -43,23 +43,73 @@ display: bloc width: 20em +.nav_header + height: 100px + background-color: #1b3c6c + .nav_body justify-content: flex-end - -.nav_body .follow - flex: unset + gap: 50px .nav_item text-decoration: none color: inherit -.nav_item[title="Main EDRLab website"] +.nav_item[title="EDRLab website"] border: 1px solid white border-radius: 5px color: white - background-color: #002538 + background-color: #1b3c6c font-weight: bold +.footer + height: fit-content + background-color: #f4f8fe + + +.footer_inner + display: flex + align-items: flex-start + justify-content: space-around + margin: 0 40px + max-width: unset + height: 100% + color: #1b3c6c + div + flex: 1 + max-width: 300px + h6 + margin-bottom: 15px + svg + fill: #1b3c6c + background-color: white + padding: 10px + border-radius: 50% + height: 20px + width: 20px + box-sizing: content-box + +.readium_container + max-width: 250px + +.address, .mail + display: flex + align-items: center + gap: 10px + margin-bottom: 20px + address, a + font-style: unset + color: #1b3c6c + text-decoration: none + +.follow + justify-content: flex-start +.copyright + position: absolute + bottom: 0 + display: flex + align-items: center + .post_link text-decoration: none color: inherit @@ -86,6 +136,9 @@ @media screen and (max-width: 900px) .grid-inverse grid-column-gap: 1rem + .footer_inner + flex-direction: column + align-items: center @media screen and (max-width: 769px) .jsopen .nav_body diff --git a/config/_default/menus/menu.en.toml b/config/_default/menus/menu.en.toml index 2338ebe..0f66d98 100644 --- a/config/_default/menus/menu.en.toml +++ b/config/_default/menus/menu.en.toml @@ -47,7 +47,7 @@ # Submenus are done this way: parent -> identifier [[main]] - name = "Main EDRLab website" + name = "EDRLab website" url = "https://www.edrlab.org/about/" identifier = "edrlaborg" weight = 170 diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html new file mode 100644 index 0000000..9c639e6 --- /dev/null +++ b/layouts/partials/contact.html @@ -0,0 +1,21 @@ +
+
+ + + + + +
15 Rue de la Bûcherie,
75005 Paris, France
+
+
+ + + + contact@edrlab.org +
+
\ No newline at end of file diff --git a/layouts/partials/follow.html b/layouts/partials/follow.html new file mode 100644 index 0000000..7151de0 --- /dev/null +++ b/layouts/partials/follow.html @@ -0,0 +1,22 @@ +{{- $base := absURL "" }} +{{- $items := .Site.Data.social }} +{{- $social := .Site.Menus.social }} +{{- with $social }} + {{- $items = . }} +{{- end }} +
+ {{- range $items }} + {{- $url := .URL }} + {{- $label := lower .Name }} + {{- if eq $social nil }} + {{ $url = .url }} + {{ $label = lower .item }} + {{- end }} + {{- if and (eq (hasPrefix $url $base) false) (eq (hasPrefix $url "http") false) }} + {{ $url = absLangURL $url }} + {{- end }} + + {{ partial "sprite" (dict "icon" $label) }} + + {{- end }} +
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..9b0d348 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,32 @@ +{{- $s := .Site.Params }} +{{- $c := default .Site.Title .Site.Copyright }} +{{- if or .Params.enableMathNotation $s.enableMathNotation }} + {{ partialCached "math" . }} +{{- end }} +{{- $iconsDir := default "icons/" .Site.Params.iconsDir }} +{{- $defaultFooterLogo := printf "%s%s" $iconsDir "apple-touch-icon.png"}} + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..a76c3e8 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,35 @@ +{{- $params := .Site.Params }} +{{- $centerLogo := $params.centerLogo }} +{{ $logo := $params.logo }} + \ No newline at end of file