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

View File

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

View File

@ -1,12 +1,22 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="es"> <html lang="es">
<head> <head>
<meta charset="UTF-8"/> <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> <title>
{% block title %} {% block title %}
CódigoComentado - blog personal de kirbylife CódigoComentado - blog personal de kirbylife
{% endblock title %} {% endblock title %}
</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"/> <link href="/static/css/base.css" rel="stylesheet"/>
{% block extracss %} {% block extracss %}
{% endblock extracss %} {% endblock extracss %}

View File

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