header styling

This commit is contained in:
Set Hallstrom 2020-09-18 11:15:11 +02:00
parent 742772ab6c
commit 113e2433dc
3 changed files with 47 additions and 40 deletions

View file

@ -4,36 +4,36 @@
<div class="imagecontainer">
<h4>{{ page.title }}</h4>
</div>
<section class="splash">
<div class="container">
<div class="splash-logo">
<img src="{{ site.logo }}" width="240px" alt="{{ site.title }} Logo" />
</div>
<div class="description" {% unless page.url == '/' %}style="padding: 0;"{% endunless %}>
<h1>{{ page.title }}</h1>
{% if page.category == 'releases' %}
{% for album in site.albums %}
{% if album.slug == page.album %}
<h4>by <strong>{{ album.artists }}</strong></h4>
{% endif %}
{% endfor %}
{% endif %}
<p>{{ page.description }}</p>
</div>
</div>
</section>
</header>
<section class="splash">
<div class="container">
<div class="splash-logo" {% unless page.url == '/' %}style="display: none;"{% endunless %}>
<img src="{{ site.logo }}" width="240px" alt="{{ site.title }} Logo" />
</div>
<div {% unless page.url == '/' %}style="padding: 0;"{% endunless %}>
<h1>{{ page.title }}</h1>
{% if page.category == 'releases' %}
{% for album in site.albums %}
{% if album.slug == page.album %}
<h4>by <strong>{{ album.artists }}</strong></h4>
{% endif %}
{% endfor %}
{% endif %}
<p>{{ page.description }}</p>
</div>
</div>
</section>

View file

@ -303,12 +303,13 @@ a:hover {
}
}
.front-section:first-of-type {
.front-section:nth-of-type(2) {
margin-top: 40px;
}
.splash {
background-color: transparent;
.container {
display: flex;
flex-wrap: wrap;
@ -316,6 +317,12 @@ a:hover {
align-items: flex-start;
max-width: var(--max-width);
margin: auto;
.description {
border-radius: var(--border-radius);
background: var(--bg-alt);
background: linear-gradient(90deg, transparent 0%, var(--bg) 91%);
}
h1, h2 {
font-size: 2em;
}

View file

@ -12,21 +12,21 @@ video_path: /videos/pingu.mp4
<div class="imagecontainer">
<h4>{{ page.title }}</h4>
</div>
<section class="splash">
<div class="container">
<div class="splash-logo">
<img src="{{ site.icon }}" width="240px" alt="{{ site.title }} Logo" />
</div>
<div class="description">
<h1>{{ site.title }}</h1>
<p>{{ page.description }}</p>
</div>
</div>
</section>
</header>
<section class="splash">
<div class="container">
<div class="splash-logo">
<img src="{{ site.icon }}" width="240px" alt="{{ site.title }} Logo" />
</div>
<div>
<h1>{{ site.title }}</h1>
<p>{{ page.description }}</p>
</div>
</div>
</section>
{% for post in site.posts limit: 3 %}
{% if post.category == 'ramblings' %}
<section class="front-section">