Add parallax to post header
This commit is contained in:
parent
f2ae9269fb
commit
bfdcfbc3ea
2 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
@import url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@5b7cc42/all.css') layer(framework);
|
@import url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@74e5799/all.css') layer(framework);
|
||||||
@import url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@5b7cc42/drop-in.css') layer(framework);
|
@import url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@74e5799/drop-in.css') layer(framework);
|
||||||
|
|
||||||
blog-post[hidden] {
|
blog-post[hidden] {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
@ -33,6 +33,8 @@ breadcrumb = (href) -> li a :href, href\match('[^/]+$'), tabindex: 0
|
||||||
if src := post.head.cover_image
|
if src := post.head.cover_image
|
||||||
slots.top pageHero cover: 60
|
slots.top pageHero cover: 60
|
||||||
* img :src, style: 'opacity: .4', class: "parallax"
|
* img :src, style: 'opacity: .4', class: "parallax"
|
||||||
|
* flexColumn
|
||||||
|
* class: "parallax"
|
||||||
* h1(post.head.title, style: "view-transition-name: #{post.head.slug}")
|
* h1(post.head.title, style: "view-transition-name: #{post.head.slug}")
|
||||||
slots.head
|
slots.head
|
||||||
* meta property: "og:image", content: src
|
* meta property: "og:image", content: src
|
||||||
|
|
Loading…
Reference in a new issue