First Templates added
This commit is contained in:
100
fet2020/templates/home.html
Normal file
100
fet2020/templates/home.html
Normal file
@@ -0,0 +1,100 @@
|
||||
{% extends 'layout.html' %}
|
||||
{% load post_helpers %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
|
||||
|
||||
<div class="grid-x">
|
||||
|
||||
<div class="medium-8 small cell" style="background: grey">
|
||||
{% with post=featured_post %}
|
||||
<a href="{{post.url}}">
|
||||
<div class="news-hero-large"style="background-image: url('{{post.imageurl}}');)">
|
||||
<div class="news-hero-text" >
|
||||
<hr>
|
||||
<div class="article-date">
|
||||
<p>Published on Jan 12, 2020 Just added now</p>
|
||||
</div>
|
||||
<div class="article-title">
|
||||
<h1>{{post.title| safe}}</h1>
|
||||
<p>{{post.subtitle | safe}}</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
{% endwith %}
|
||||
</div>
|
||||
|
||||
<div class="medium-4 responsive-side-box cell">
|
||||
|
||||
<a href="{% url 'posts.index' %}"><h1>Neuigkeiten</h1>
|
||||
</a>
|
||||
<div class="article-row-section">
|
||||
{% with post=featured_post %}
|
||||
<a href="{{post.url}}">
|
||||
|
||||
<article class="article-row">
|
||||
|
||||
<div class="article-row-content">
|
||||
<h1 class="article-row-content-header">{{post.title}}</h1>
|
||||
|
||||
<p class="article-row-content-description">{{post.subtitle}}</p>
|
||||
|
||||
<p class="article-row-content-author">{{post.author}}</p>
|
||||
<time class="article-row-content-time" datetime="2008-02-14 20:00">{{post.public_date}}</time>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
</a>
|
||||
{% endwith %}
|
||||
|
||||
<a href="#">
|
||||
<article class="article-row">
|
||||
|
||||
<div class="article-row-content">
|
||||
<h1 class="article-row-content-header">Nächste Fachschaftssitzung</h1>
|
||||
|
||||
<p class="article-row-content-description">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore accusamus sint quas, odit, enim architecto officiis culpa!</p>
|
||||
|
||||
<p class="article-row-content-author">By Yeti</p>
|
||||
<time class="article-row-content-time" datetime="2008-02-14 20:00">July 14th 2021</time>
|
||||
</div>
|
||||
</article>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid-container">
|
||||
<div class="grid-x grid-padding-x padding-top-1">
|
||||
{{ tags_list|tags_to_url }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="grid-x grid-x-padding">
|
||||
<div class="medium-8 cell">
|
||||
{% for post in posts %}
|
||||
{% include 'posts/_posts_hero.html' %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="medium-4 cell">
|
||||
<div class="date-box">
|
||||
|
||||
<span class="date-badge badge primary" style="">
|
||||
<span class="date-badge-day">16</span>
|
||||
<span class="date-badge-month">Apr</span>
|
||||
</span>
|
||||
<span class="date-text"><strong>Title</strong></span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user