Commit 634cbc93 authored by Mathieu Nivoliez's avatar Mathieu Nivoliez

Modify style and component structure. should look foward collections.

parent a5a6ef1f
<header>
<div class="logo"><img src="/images/cropped-cropped-imgpsh_fullsize.png" /></div>
<div class="title">
<h1><a href="/">Deep Blog</a></h1>
</div>
<h1>@mnivoliez Blog</h1>
<nav>
<a href="/">Article</a>
</nav>
</header>
<article class="post-card">
{% comment %}
<!--{% if post.data.img_cover %}
<img class="post-card-cover" src="{{ post.data.img_cover }}">
{% endif %}-->
{% endcomment %}
<div class="post-card details">
<a style="text-decoration:none;" href="{{ post.permalink }}"><strong style="color:#00bcd4;"><h2>{{ post.title }}</h2></strong></a>
<div class="post-meta"><time datetime="{{ post.published_date }}">{{ post.published_date | date: '%b %-d, %Y' }}</time> / {{ post.data.author }}</div>
{{ post.excerpt }}
<form class="post-form" action="{{ post.permalink }}" method="GET">
<button type="submit" class="button green">Read more<i class="material-icons">chevron_right</i></button>
</form>
</div>
<a class="post-title" href="{{ post.permalink }}"><strong><h2>{{ post.title }}</h2></strong></a>
<div class="post-meta"><time datetime="{{ post.published_date }}">{{ post.published_date | date: '%b %-d, %Y' }}</time> / {{ post.data.author }}</div>
{{ post.excerpt }}
<a class="post-readmore" href="{{ post.permalink }}">Read more<i style="vertical-align: bottom;" class="material-icons">chevron_right</i></a>
</article>
......@@ -3,10 +3,8 @@ layout: default.liquid
data:
lang: en
---
<div>
<div class="posts-container">
{% for post in collections.posts.pages %}
{% include "_post-card.liquid" %}
{% endfor %}
</div>
<div class="posts-container">
{% for post in collections.posts.pages %}
{% include "_post-card.liquid" %}
{% endfor %}
</div>
:root {
--dark-grey: #211D27;
--light-grey: #404040;
--dark-purple: #332453;
--purple: #563C7E;
--light-purple:#7665B8;
--green: #4caf50;
--font-stack: helvetica, arial, sans-serif;
--text-color: white;
--text-color-light-grey: #828282;
--title-color: #00bcd4;
--breakpoint: 41em;
}
--background-color: #607D8B;
--header-background-color: rgb(55, 71, 79);
--element-background-color: rgb(48, 48, 48);
* {
box-sizing: border-box;
--breakpoint: 41em;
}
html {
......@@ -23,53 +17,45 @@ html {
body {
color: var(--text-color);
background-color: var(--dark-purple);
background-color: var(--background-color);
font-family: var(--font-stack);
line-height: 1.4;
margin: 0;
}
main {
padding-top: 20px;
margin-top: 90px;
max-width: 100ch;
}
a {
}
header {
width: 100%;
display: grid;
grid-template-areas: "l c r";
grid-template-columns: 1fr 2fr 1fr;
padding-top: 1em;
background-color: var(--dark-grey);
margin-bottom: 20px;
}
header .logo {
grid-area: l;
text-align: left;
}
header .logo img {
max-height: 200px;
}
header .title {
grid-area: c;
display: inline-flex;
flex-direction: column;
align-content: center;
top: 0;
left: 0;
right: 0;
position: fixed;
padding: 5px;
height: 90px;
background-color: var(--header-background-color);
box-shadow:rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
}
header .title h1 {
margin: auto;
}
header nav {
display: flex;
flex-direction: row;
justify-content: center;
}
nav a {
text-decoration: none;
color: var(--text-color) !important;
}
@media (max-width: 41em) {
header nav {
......@@ -91,80 +77,51 @@ section {
}
article {
border-radius: 2px;
background-color: var(--light-grey);
padding-left: 30px;
padding-right: 30px;
padding-top: 15px;
padding-bottom: 10px;
margin-top: 32px;
margin-bottom: 10px;
margin-right: auto;
margin-left: auto;
}
#disqus_thread {
border-radius: 2px;
background-color: var(--light-grey);
padding-left: 30px;
padding-right: 30px;
padding-top: 15px;
padding-bottom: 10px;
margin-bottom: 20px;
margin-right: auto;
margin-left: auto;
}
footer {
text-align: center;
padding-top: 1em;
background-color: var(--dark-grey);
max-width: none !important;
}
footer p {
margin: 0;
padding: 1em 0;
.posts-container {
display: flex;
flex-direction: column;
}
.post-card {
background-color: var(--light-grey);
margin: 2px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 5px;
background-color: var(--element-background-color);
box-sizing: border-box;
font-family: Roboto, sans-serif;
border-radius: 2px;
margin: 5px;
padding-right: 30px;
padding-left: 30px;
padding-top: 15px;
padding-bottom: 10px;
display: flex;
flex-direction: column;
}
.post-card .details {
margin: 5px;
display: inline-flex;
flex-direction: column;
.post-title {
text-decoration: none;
color: var(--title-color) !important;
}
.post-meta {
padding-left: 10px;
color: var(--text-color-light-grey);
}
.post-form {
display: inline-flex;
justify-content: flex-end;
}
.button {
display: inline-flex;
align-items: center;
text-align: center;
outline: medium none currentcolor;
border: 10px none;
cursor: pointer;
height: 36px;
line-height: 36px;
.post-readmore {
color: var(--text-color) !important;
text-decoration: none;
padding: 2px;
justify-content: center;
border-radius: 2px;
display: inline-block;
background-color: rgb(76, 175, 80);
align-self: flex-end;
}
.button.green {
background-color: var(--green);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment