Skip to content
Snippets Groups Projects
Commit 444d19cb authored by codecraft's avatar codecraft :crocodile:
Browse files

Make title to a ribbon

parent 62897bba
No related branches found
No related tags found
No related merge requests found
Pipeline #179087 failed
@use "./teckids";
.image.is-70p { .image.is-70p {
width: 70%; width: 70%;
height: 70%; height: 70%;
...@@ -36,6 +37,18 @@ figure.image>figcaption { ...@@ -36,6 +37,18 @@ figure.image>figcaption {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
.hero-body {
.container {
max-width: none !important;
opacity: 0.6;
bottom: -20vh;
.box {
color: black;
}
}
}
img.hero-background { img.hero-background {
position: absolute; position: absolute;
object-fit: cover; object-fit: cover;
......
<section class="hero is-fullheight-with-navbar {% if background_img %}has-background{% endif %}"> <section class="hero is-fullheight-with-navbar {% if background_img %}has-background{% endif %}">
{% if background_img %} {% if background_img %}
{% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ background_img, width=800, height=600) -%} {% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ background_img, width=800, height=600) -%}
<img class="hero-background {% if background_transparent %}is-transparent{% endif %}" src="{{ image.url }}" /> <img class="hero-background" src="{{ image.url }}" alt="">
{% endif -%} {% endif -%}
<div class="hero-body"> <div class="hero-body pl-0 pr-0">
<div class="container has-text-centered"> <div class="container has-text-centered">
<h1 class="title is-1 mb-5">{{ title | default(value=page.title) | safe }}</h1> <div class="box is-radiusless">
{% if body or page.description %}<p class="subtitle">{{ body | default(value=page.description) | safe }}</p>{% endif -%} <h1 class="title is-1 mb-5">{{ title | default(value=page.title) | safe }}</h1>
{% if body or page.description %}<p class="subtitle">{{ body | default(value=page.description) | safe }}</p>{% endif -%}
</div>
</div> </div>
</div> </div>
</section> </section>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment