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"> <div class="imagecontainer">
<h4>{{ page.title }}</h4> <h4>{{ page.title }}</h4>
</div> </div>
</header>
<section class="splash"> <section class="splash">
<div class="container"> <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" /> <img src="{{ site.logo }}" width="240px" alt="{{ site.title }} Logo" />
</div> </div>
<div {% unless page.url == '/' %}style="padding: 0;"{% endunless %}> <div class="description" {% unless page.url == '/' %}style="padding: 0;"{% endunless %}>
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
{% if page.category == 'releases' %} {% if page.category == 'releases' %}
@ -35,5 +32,8 @@
</section> </section>
</header>

View file

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

View file

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