removed the image on the landing page and now is response design

pull/1/head
kirbylife 2019-12-04 15:11:27 -06:00
parent fa11edf77f
commit 605d689fd8
4 changed files with 47 additions and 13 deletions

View File

@ -18,6 +18,15 @@ header, nav {
padding: 20px;
}
@media (max-width: 640px) {
header, nav {
padding: 15px;
}
.logo {
font-size: 22px;
}
}
header a {
color: #f0f0f0;
text-decoration: none;
@ -58,7 +67,6 @@ nav a:hover {
div.container {
margin: auto;
width: 80%;
min-height: calc(100vh - 9.2em);
}
strong {
@ -67,22 +75,24 @@ strong {
}
footer {
position: absolute;
bottom: 0;
right: 0;
left: 0;
display: grid;
width: 100%;
margin-top: auto;
background-color: #444444;
color: #f0f0f0;
font-family: monospace;
font-size: 15px;
grid-template-columns: auto 35em auto;
grid-template-rows: 4em;
font-size: 13px;
grid-template-columns: 1fr auto 1fr;
grid-template-rows: 3em;
grid-template-areas: ". info .";
}
footer span {
grid-area: info;
margin-top: 1.5em;
margin-top: 1em;
text-align: center;
}

View File

@ -5,6 +5,7 @@ a.article {
article {
display: grid;
/*
grid-template-columns: 15em auto 20em;
grid-template-rows: 1em 1em auto 1em;
@ -13,13 +14,21 @@ article {
"image title title"
"image body body"
"image . info";
*/
grid-gap: 5px;
grid-template-columns: 1fr 20em;
grid-template-rows: auto 1fr auto;
grid-template-areas:
"title title"
"body body"
". info";
}
/*
article > span:first-child {
grid-area: image-key;
margin: 0;
}
article figure {
grid-area: image;
}
@ -30,19 +39,22 @@ article figure img {
min-height: 10em;
min-width: 10em;
}
*/
.article-title {
font-size: 20px;
grid-area: title;
margin-bottom: 0;
}
.article-body {
font-size: 20px;
grid-area: body;
margin: 0;
}
.article-info {
grid-area: info;
text-align: right;
}
div.pagination {

View File

@ -1,12 +1,22 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>
{% block title %}
CódigoComentado - blog personal de kirbylife
{% endblock title %}
</title>
<meta name="description" content="CodigoComentado - Blog personal de kirbylife" />
<meta name="robots" content="index,follow" />
<meta name="twitter:card" value="summary">
<meta property="og:title" content="CodigoComentado" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://codigocomentado.herokuapp.com" />
<meta property="og:description" content="CodigoComentado - blog personal de kirbylife" />
<link href="/static/css/base.css" rel="stylesheet"/>
{% block extracss %}
{% endblock extracss %}

View File

@ -8,11 +8,13 @@
{% for post in posts %}
<a class="article" href="/post/{{ post.title | slugify }}-{{ post.id }}">
<article>
{#
<span><strong>{ image: </strong></span>
<figure>
<img src="https://files.realpython.com/media/MProc.7cf3be371bbc.png">
</figure>
<p class="article-title"><strong>title: </strong>{{ post.title }}</p>
#}
<p class="article-title"><strong>{ title: </strong>{{ post.title }}</p>
<p class="article-body"><strong>Article: </strong>{{ post.content | split(pat=" ") | slice(end=100) | join(sep=" ") }}</p>
<div class="article-info">
<span><strong>Author: </strong>kirbylife <strong>Date: </strong>{{ post.created_at | date(format="%Y-%m-%d") }}<strong> }</strong></span>