semantic tweaks

This commit is contained in:
Joseph Hutchinson
2018-04-15 21:23:45 -04:00
parent ee1834cf53
commit b2bfcab666
4 changed files with 54 additions and 69 deletions

View File

@@ -1,26 +1,21 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}" dir="ltr"> <html lang="{{ .Site.LanguageCode }}" dir="ltr">
{{ partial "head.html" . }} {{ partial "head.html" . }}
<body style="background-color: #f0f1f2;"> <body class="list-body">
{{ partial "header.html" . }} {{ partial "nav-bar.html" . }}
<div class="card-content-container"> <header class="list-header side-gutter">
<header class="list-header"> <h1 class="list-header-title">Sensors + Smarts</h1>
<h1 class="list-header-title">Sensors + Smarts</h1> <h2 class="list-header-subtext">There is so much actionable data that goes to waste. Let's put your data to work.</h2>
<h2 class="list-header-subtext">There is so much actionable data that goes to waste. Let's put your data to work.</h2> </header>
</header> <main class="card-columns side-gutter">
<main class="card-container"> {{ range .Paginator.Pages }}
{{.Content}} {{ .Render "li" }}
<section class="card-columns"> {{ end }}
{{ range .Paginator.Pages }} </main>
{{ .Render "li" }} <div class="pagination-nav">
{{ end }} <a href="#">&laquo; Older Posts</a>
</section> <div>Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</div>
</main> <a href="#">Newer Posts &raquo;</a>
<div class="pagination-nav">
<a href="#">&laquo; Older Posts</a>
<div>Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</div>
<a href="#">Newer Posts &raquo;</a>
</div>
</div> </div>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
{{ partial "scripts.html" . }} {{ partial "scripts.html" . }}

View File

@@ -1,27 +1,25 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}" dir="ltr"> <html lang="{{ .Site.LanguageCode }}" dir="ltr">
{{ partial "head.html" . }} {{ partial "head.html" . }}
<body> <body class="single-body">
{{ partial "header.html" . }} {{ partial "nav-bar.html" . }}
<div class="content-container"> <main class="content side-gutter">
<main class="content"> <article class="post">
<article class="post"> <header class="post-header">
<header class="post-header"> <h1 class="post-title">{{ .Title }}</h1>
<h1 class="post-title">{{ .Title }}</h1> <p class="post-date">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p>
<p class="post-date">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p> </header>
</header> {{ if isset .Params "featuredimage" }}
{{ if isset .Params "featuredimage" }} <figure class="post-figure">
<figure class="post-figure"> <img src="{{ .Site.BaseURL }}/{{.Params.featuredimage }}">
<img src="{{ .Site.BaseURL }}/{{.Params.featuredimage }}"> </figure>
</figure> {{ end }}
{{ end }} {{ .Content }}
{{ .Content }} </article>
</article> <!--
<!-- If you're going to use DISQUS comments, insert code here.
If you're going to use DISQUS comments, insert code here. -->
--> </main>
</main>
</div>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
{{ partial "scripts.html" . }} {{ partial "scripts.html" . }}
</body> </body>

View File

@@ -1,3 +0,0 @@
<nav class="nav-bar">
<h1 class="nav-header"><a href="/">mdd</a></h1>
</nav>

View File

@@ -13,6 +13,17 @@ strong {
font-family: 'LatoLatinWebHeavy'; font-family: 'LatoLatinWebHeavy';
font-weight: normal font-weight: normal
} }
.list-body {
background-color: #f0f1f2;
display: flex;
flex-direction: column;
align-items: center;
}
.single-body {
display: flex;
flex-direction: column;
align-items: center;
}
.nav-bar { .nav-bar {
position: fixed; position: fixed;
top: 0; top: 0;
@@ -59,20 +70,8 @@ img {
width: 100%; width: 100%;
height: auto height: auto
} }
.content-container {
display: flex;
justify-content: center;
padding: 0 1em;
}
.card-content-container {
display: flex;
flex-direction: column;
align-items: center;
padding: 0 0.7em;
}
.content { .content {
max-width: 700px; max-width: 40em;
width: 100%;
} }
.list-header { .list-header {
margin: 2.5em 0; margin: 2.5em 0;
@@ -89,14 +88,12 @@ img {
margin: 0.5em auto 0 auto; margin: 0.5em auto 0 auto;
width: 12em; width: 12em;
} }
.card-container {
width: 100%;
}
.card-columns { .card-columns {
display: grid; display: grid;
grid-template-columns: 1fr; grid-template-columns: 1fr;
grid-gap: 1.5em; grid-gap: 1.5em;
justify-content: center; justify-content: center;
max-width: 42em;
} }
.card { .card {
color: rgb(52, 58, 63); color: rgb(52, 58, 63);
@@ -119,12 +116,12 @@ img {
} }
.card-img { .card-img {
border-radius: 0.2em 0.2em 0 0; border-radius: 0.2em 0.2em 0 0;
margin-bottom: -1.2em; margin-bottom: -0.8em;
max-height: 10em; max-height: 10em;
object-fit: cover; object-fit: cover;
} }
.card-title { .card-title {
margin: 0.5em 0 0.7em 0; margin: 0.5em 0 0 0;
line-height: 1.2; line-height: 1.2;
/* text-align: center; */ /* text-align: center; */
} }
@@ -135,13 +132,17 @@ img {
} }
.card-text { .card-text {
line-height: 1.5; line-height: 1.5;
margin: 0.7em 0; margin: 1em 0;
} }
.pagination-nav { .pagination-nav {
margin: 2em; margin: 2em;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
.side-gutter {
margin-left: 0.7em !important;
margin-right: 0.7em !important;
}
blockquote { blockquote {
border-left: 0.3em solid #D1D1D1; border-left: 0.3em solid #D1D1D1;
margin: 1.5em 0.8em; margin: 1.5em 0.8em;
@@ -208,9 +209,6 @@ footer {
.list-header { .list-header {
margin: 5em 0; margin: 5em 0;
} }
.card-container{
max-width: 42em;
}
.card-columns { .card-columns {
grid-gap: 2em; grid-gap: 2em;
} }
@@ -237,9 +235,6 @@ footer {
@media only screen and (min-width: 64.063em) { @media only screen and (min-width: 64.063em) {
.post-title { .post-title {
font-size: 2.5em; font-size: 2.5em;
}
.card-container{
} }
.card-columns { .card-columns {