Skip to content

Commit

Permalink
added calligrams
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivia206 committed Sep 19, 2024
1 parent 50a2c7e commit 442e704
Show file tree
Hide file tree
Showing 8 changed files with 285 additions and 13 deletions.
1 change: 1 addition & 0 deletions assets/sass/_configuration.sass
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ $h3-size: pxToRem(25)
$h3-size-desktop: pxToRem(35)
$h3-weight: normal
$lead-sidebar-font-family: $h1-font-family
$lead-font-family: $h1-font-family

$meta-font-family: $heading-font-family

Expand Down
49 changes: 38 additions & 11 deletions assets/sass/_style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,27 @@ body:not(.page__home, .projects__section, .projects__page)

// Footer
footer#document-footer
@include media-breakpoint-up(desktop)
.footer-banner
display: flex
justify-content: center
gap: var(--grid-gutter)
position: relative
width: 100%
ul
display: flex
gap: var(--grid-gutter)
a
@include meta
ul:not(.dropdown-menu)
&, &.footer-social.site-links
li + li
margin-top: 0
.calligram
&.portrait
max-height: pxToRem(200)
&.landscape
max-width: columns(8)
@include media-breakpoint-up(desktop)
.footer-expertises
display: block
ul
Expand All @@ -114,21 +130,32 @@ footer#document-footer
+ ul
justify-content: space-around
margin-top: $spacing-6
.footer-social
display: flex
justify-content: space-between
gap: var(--column-width)
width: 100%
li
&:first-child::after
.footer-banner
ul
position: absolute
.nav-social
left: var(--grid-gutter)
li:nth-child(2)::after
display: none
&:nth-child(2)
margin-left: auto
&:not(:first-child)
.footer-social
right: var(--grid-gutter)
li
flex-direction: row-reverse
&::after
margin-left: 0
margin-right: $spacing-2
.calligram.landscape
max-width: columns(3)
@include media-breakpoint-down(desktop)
.footer-banner
gap: $spacing-4
flex-direction: column
align-items: center
.footer-social
justify-content: space-between
width: 100%
.calligram
order: -1

// Blocks
.block-chapter--accent_background
Expand Down
10 changes: 10 additions & 0 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ paginate: 18
enableRobotsTXT: true
removePathAccents: true
params:
footer:
images:
- url: "/assets/images/calligrammes/calligramme-1.svg"
orientation: "landscape"
- url: "/assets/images/calligrammes/calligramme-2.svg"
orientation: "portrait"
- url: "/assets/images/calligrammes/calligramme-3.svg"
orientation: "landscape"
- url: "/assets/images/calligrammes/calligramme-4.svg"
orientation: "landscape"
summary:
position: content
search:
Expand Down
26 changes: 24 additions & 2 deletions layouts/partials/footer/footer-simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,28 @@
</ul>
</ul>
</div>
<div class="container footer-social">
{{ partial "footer/social.html" }}
<div class="container footer-banner">
{{ $menu := partial "GetMenu" "social" }}
{{ if $menu }}
{{ partial "commons/menu.html"
(dict
"kind" "social"
"level" 1
"class" "nav-social"
)}}
{{ end }}

{{ $images := site.Params.footer.images }}
{{ $shuffledImages := shuffle $images }}
{{ $calligram := index $shuffledImages 0 }}
<img class="calligram {{ $calligram.orientation }}" src="{{ $calligram.url }}" alt="" />

{{ with (or site.Params.social site.Data.website.social) }}
{{ $site_social_links := . }}
{{ if $site_social_links }}
<ul class="footer-social site-links">
{{ partial "commons/socials" . }}
</ul>
{{ end }}
{{ end }}
</div>
59 changes: 59 additions & 0 deletions static/assets/images/calligrammes/calligramme-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions static/assets/images/calligrammes/calligramme-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 442e704

Please sign in to comment.