Add blog item to blog page
This commit is contained in:
parent
7b3e583007
commit
6599246439
3 changed files with 49 additions and 3 deletions
|
@ -41,3 +41,29 @@ h1.page-title {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-list {
|
||||||
|
.card {
|
||||||
|
background-color: transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card + .card {
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-image {
|
||||||
|
max-width: 25% !important;
|
||||||
|
margin: auto 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media #{$small-and-down} {
|
||||||
|
.card {
|
||||||
|
display: initial;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-image {
|
||||||
|
max-width: initial !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{% extends "content.html" %}
|
{% extends "content.html" %}
|
||||||
|
|
||||||
{% load static %}
|
|
||||||
|
|
||||||
{% block title %}Blog{% endblock %}
|
{% block title %}Blog{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="row page-list">
|
||||||
|
{% include "blog/item.html" %}
|
||||||
|
</div>
|
||||||
{% endblock%}
|
{% endblock%}
|
||||||
|
|
20
templates/blog/item.html
Normal file
20
templates/blog/item.html
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col s12">
|
||||||
|
<div class="card horizontal">
|
||||||
|
<div class="card-image">
|
||||||
|
<img src="{% static 'img/header.jpg' %}">
|
||||||
|
</div>
|
||||||
|
<div class="card-stacked">
|
||||||
|
<div class="card-content">
|
||||||
|
<span class="card-title">Card Title</span>
|
||||||
|
<p>I am a very simple card. I am good at containing small bits of information.I am a very simple card. I am good at containing small bits of information.I am a very simple card. I am good at containing small bits of information.I am a very simple card. I am good at containing small bits of information.I am a very simple card. I am good at containing small bits of information.I am a very simple card. I am good at containing small bits of information.</p>
|
||||||
|
</div>
|
||||||
|
<div class="card-action">
|
||||||
|
<a href="#">Read More</a>
|
||||||
|
<p class="right"><i class="far fa-calendar-alt pr-1"></i> 2020-01-01  <i class="far fa-clock pr-1"></i> 10 minutes</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
Reference in a new issue