diff --git a/default.hbs b/default.hbs index 95bbcb5..8406019 100644 --- a/default.hbs +++ b/default.hbs @@ -46,7 +46,7 @@ Merci d'avoir scrollé jusqu'en bas ! diff --git a/partials/header-background.hbs b/partials/header-background.hbs new file mode 100644 index 0000000..1667220 --- /dev/null +++ b/partials/header-background.hbs @@ -0,0 +1,47 @@ +{{!-- +Wow what the hell is going on in here even? + +Ok so, several templates use this big header with a giant BG image. Nice idea, but big images +have a heavy impact on performance, so it's a good idea to make them responsive. Because we +can only get the image dynamically using Handlebars, and we can only set the image to properly +be a background image using CSS, we end up with a handful of inline styles. + +If the template in question has a background image, then we render responsive image styles +for it, and apply those styles to the
tag. Else, we just output a
tag +with a `no-image` class so we can style it accordingly. +--}} + +{{#if background}} + + +
+ +{{else}} + +
+ +{{/if}} \ No newline at end of file diff --git a/partials/icons/2019-membership-badge-2.png b/partials/icons/2019-membership-badge-2.png new file mode 100644 index 0000000..0ad7525 Binary files /dev/null and b/partials/icons/2019-membership-badge-2.png differ diff --git a/partials/site-header.hbs b/partials/site-header.hbs new file mode 100644 index 0000000..11e06f2 --- /dev/null +++ b/partials/site-header.hbs @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/partials/subscribe-form.hbs b/partials/subscribe-form.hbs new file mode 100644 index 0000000..dc3f8bd --- /dev/null +++ b/partials/subscribe-form.hbs @@ -0,0 +1,19 @@ + \ No newline at end of file