modified header, font-sizes and colors; …

This commit is contained in:
Vrifox 2020-10-06 21:47:47 +02:00
parent a4e8d08579
commit 0fa103f9d0
6 changed files with 62 additions and 51 deletions

View file

@ -2,17 +2,18 @@
@import '../partials/nav'; @import '../partials/nav';
@import '../partials/footer'; @import '../partials/footer';
header { .section.header {
align-items: center; align-items: center;
background: rgb(60, 60, 90); background: rgb(70, 70, 105);
border-radius: 5px;
display: flex; display: flex;
height: 200px; height: 150px;
margin: 40px 0; margin: 0 0 40px 0;
text-align: center; text-align: center;
h1 { header {
font-size: 2em; h1 {
margin: auto; font-size: 1.8em;
margin: auto;
}
} }
} }
@ -41,16 +42,16 @@ header {
img { img {
background: rgb(80, 80, 120); background: rgb(80, 80, 120);
border-radius: 5px 5px 0px 0px; border-radius: 5px 5px 0px 0px;
margin: -20px -20px 20px -20px; margin: -20px -20px 15px -20px;
max-height: 250px; max-height: 250px;
max-width: calc(100% + 40px); max-width: calc(100% + 40px);
object-fit: cover; object-fit: cover;
order: -1; order: -1;
} }
h1 { h1 {
font-size: 1.2em; font-size: 18px;
font-weight: 400; font-weight: 400;
margin-top: 0px; margin: 0 0 10px 0;
} }
a { a {
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
@ -59,7 +60,7 @@ header {
} }
} }
.meta { .meta {
font-size: .8em; font-size: 14px;
margin: 0; margin: 0;
} }
.author { .author {

View file

@ -1,17 +1,18 @@
@import 'partials/main'; @import 'partials/main';
@import 'partials/nav'; @import 'partials/nav';
header { .section.header {
align-items: center; align-items: center;
background: rgb(60, 60, 90); background: rgb(70, 70, 105);
border-radius: 5px;
display: flex; display: flex;
height: 200px; height: 150px;
margin: 40px 0; margin: 0 0 40px 0;
text-align: center; text-align: center;
h1 { header {
font-size: 2em; h1 {
margin: auto; font-size: 1.8em;
margin: auto;
}
} }
} }
@ -55,19 +56,19 @@ header {
img { img {
background: rgb(80, 80, 120); background: rgb(80, 80, 120);
border-radius: 5px 5px 0px 0px; border-radius: 5px 5px 0px 0px;
margin: -20px -20px 10px -20px; margin: -20px -20px 15px -20px;
max-height: 250px; max-height: 250px;
max-width: calc(100% + 40px); max-width: calc(100% + 40px);
object-fit: cover; object-fit: cover;
order: -1; order: -1;
} }
h1 { h1 {
font-size: 20px; font-size: 18px;
font-weight: 400; font-weight: 400;
margin: 0; margin: 0 0 10px 0;
} }
.meta { .meta {
font-size: 15px; font-size: 14px;
margin: 0; margin: 0;
} }
.author { .author {

View file

@ -1,17 +1,18 @@
@import '../partials/main'; @import '../partials/main';
@import '../partials/nav'; @import '../partials/nav';
header { .section.header {
align-items: center; align-items: center;
background: rgb(60, 60, 90); background: rgb(70, 70, 105);
border-radius: 5px;
display: flex; display: flex;
height: 200px; height: 150px;
margin: 40px 0; margin: 0 0 40px 0;
text-align: center; text-align: center;
h1 { header {
font-size: 2em; h1 {
margin: auto; font-size: 1.8em;
margin: auto;
}
} }
} }
@ -41,20 +42,23 @@ header {
img { img {
background: rgb(80, 80, 120); background: rgb(80, 80, 120);
border-radius: 5px 5px 0px 0px; border-radius: 5px 5px 0px 0px;
margin: -20px -20px 20px -20px; margin: -20px -20px 15px -20px;
max-height: 250px; max-height: 250px;
max-width: calc(100% + 40px); max-width: calc(100% + 40px);
object-fit: cover; object-fit: cover;
order: -1; order: -1;
} }
h1 { h1 {
margin-top: 0; font-size: 18px;
font-weight: 400;
margin: 0 0 10px 0;
} }
p { .meta {
font-size: 14px;
margin: 0; margin: 0;
} }
.status { .status {
color: rgb(200, 200, 230); color: rgb(215, 215, 245);
font-style: italic; font-style: italic;
} }
} }

View file

@ -4,14 +4,15 @@
{{ define "main" }} {{ define "main" }}
<main> <main>
<div class="container"> <section class="section header">
<section> <div class="container">
<header> <header>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<span class="subtitle">{{.Params.subheading}}</span> <span class="subtitle">{{.Params.subheading}}</span>
</header> </header>
{{ .Content }} </div>
</section> </section>
<div class="container">
<section class="section-articles"> <section class="section-articles">
{{ range .Pages }} {{ range .Pages }}
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">

View file

@ -4,15 +4,17 @@
{{ define "main" }} {{ define "main" }}
<main> <main>
<div class="container"> <section class="section header">
<section> <div class="container">
<header> <header>
<h1>{{ .Params.heading }}</h1> <h1>{{ .Params.heading }}</h1>
<span class="subtitle">{{.Params.subheading}}</span> <span class="subtitle">{{.Params.subheading}}</span>
</header> </header>
{{.Content}} </div>
</section> </section>
<span class="section-header">latest <div class="container">
<span class="section-header">
latest
<a href="{{ "/blog" | relURL }}">posts</a> <a href="{{ "/blog" | relURL }}">posts</a>
</span> </span>
<section class="section-articles"> <section class="section-articles">
@ -34,7 +36,8 @@
</a> </a>
{{ end }} {{ end }}
</section> </section>
<span class="section-header">latest <span class="section-header">
latest
<a href="{{ "/projects" | relURL }}">projects</a> <a href="{{ "/projects" | relURL }}">projects</a>
</span> </span>
<section class="section-projects"> <section class="section-projects">

View file

@ -4,20 +4,21 @@
{{ define "main" }} {{ define "main" }}
<main> <main>
<div class="container"> <section class="section header">
<section> <div class="container">
<header> <header>
<h1>{{ .Params.heading }}</h1> <h1>{{ .Params.heading }}</h1>
<span class="subtitle">{{.Params.subheading}}</span> <span class="subtitle">{{.Params.subheading}}</span>
</header> </header>
{{ .Content }} </div>
</section> </section>
<div class="container">
<section class="section-articles"> <section class="section-articles">
{{ range .Pages }} {{ range .Pages }}
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
<article> <article>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<p class="" title="last change: {{ .Date.Format "2 Jan 2006" }}"> <p class="meta" title="last change: {{ .Date.Format "2 Jan 2006" }}">
{{ with .Params.activetime }}<span class="date">{{ . }}</span>{{ end }} {{ with .Params.activetime }}<span class="date">{{ . }}</span>{{ end }}
{{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }} {{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}
</p> </p>