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,18 +4,15 @@
<div class="imagecontainer">
<h4>{{ page.title }}</h4>
</div>
<section class="splash">
<div class="container">
</header>
<section class="splash">
<div class="container">
<div class="splash-logo" {% unless page.url == '/' %}style="display: none;"{% endunless %}>
<div class="splash-logo">
<img src="{{ site.logo }}" width="240px" alt="{{ site.title }} Logo" />
</div>
<div {% unless page.url == '/' %}style="padding: 0;"{% endunless %}>
<div class="description" {% unless page.url == '/' %}style="padding: 0;"{% endunless %}>
<h1>{{ page.title }}</h1>
{% if page.category == 'releases' %}
@ -31,9 +28,12 @@
<p>{{ page.description }}</p>
</div>
</div>
</div>
</section>
</header>
</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>
</header>
<section class="splash">
<div class="container">
<section class="splash">
<div class="container">
<div class="splash-logo">
<img src="{{ site.icon }}" width="240px" alt="{{ site.title }} Logo" />
</div>
<div>
<div class="description">
<h1>{{ site.title }}</h1>
<p>{{ page.description }}</p>
</div>
</div>
</section>
</div>
</section>
</header>
{% for post in site.posts limit: 3 %}
{% if post.category == 'ramblings' %}
<section class="front-section">