Redesign blog and podcast index pages

This commit is contained in:
davegson 2020-05-12 09:51:52 +02:00
parent c19cb3822b
commit 49deb582a7
2 changed files with 71 additions and 35 deletions

View file

@ -1,20 +1,38 @@
--- ---
title: The Safing Blog title: The Safing Blog
layout: page_column layout: page
--- ---
<div class="ui divided items"> <section style="padding-top: 16rem;">
{% for post in site.posts %} <div class="items-center h-full">
<div class="item"> <div class="container mx-auto px-8 sm:px-0 flex">
<div class="middle aligned content"> <div class="max-w-screen-xl mx-auto px-4 sm:px-6 lg:flex">
<a class="header" href="{{ post.url }}">{{ post.title }}</a> <div class="py-12 bg-white">
<div class="meta"> <div class="max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8">
<span class="ui small text"> <div class="lg:text-center">
<i class="calendar alternate icon"></i>{{ post.date | date: "%-d. %b %Y" }} <span style="font-size: 12rem; font-weight: 800; margin-top: -9rem; opacity: 0.05;" class="z-0 ml-0 w-full left-0 text-center absolute bg-top">Follow Us</span>
<i class="user icon"></i>{{ post.author }} <h2 class="text-5xl tracking-tight font-extrabold leading-none py-10 text-center">Blog</h2>
</span> </div>
<div class="mt-32">
<ul class="md:grid md:grid-cols-2 lg:grid-cols-3 md:col-gap-8 md:row-gap-10">
{% for post in site.posts %}
<li>
<div class="block transform hover:scale-95 duration-150 ease-in-out">
<a href="{{ post.url }}">
<img src="{{ site.img_url }}shapes/podcast_blank.png" alt="">
<div class="pt-6">
<span class="opacity-25">{{ post.date | date: "%-d. %b %Y" }}</span>
<p>{{ post.title }}</p>
</a>
</div>
</li>
{% endfor %}
</ul>
<br class="mb-12">
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
{% endfor %} </div>
</div> </section>

View file

@ -1,6 +1,6 @@
--- ---
title: The Safing Podcast title: The Safing Podcast
layout: page_column layout: page
--- ---
<div class="pod-links"> <div class="pod-links">
<ul> <ul>
@ -10,27 +10,45 @@ layout: page_column
</ul> </ul>
</div> </div>
<div class="ui divided items"> <section style="padding-top: 16rem;">
{% assign sorted_podcasts = site.podcasts | reverse %} <div class="items-center h-full">
{% for episode in sorted_podcasts %} <div class="container mx-auto px-8 sm:px-0 flex">
<div class="item"> <div class="max-w-screen-xl mx-auto px-4 sm:px-6 lg:flex">
<a class="ui image" href="{{ episode.url }}"> <div class="py-12 bg-white">
<span class="ui large text"> <div class="max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8">
#{{ episode.title | slice: 2, 2 }} <div class="lg:text-center">
</span> <span style="font-size: 12rem; font-weight: 800; margin-top: -9rem; opacity: 0.05;" class="z-0 ml-0 w-full left-0 text-center absolute bg-top">Follow Us</span>
</a> <h2 class="text-5xl tracking-tight font-extrabold leading-none py-10 text-center">Podcast</h2>
<div class="middle aligned content"> </div>
{% assign title_length = episode.title | size %} <div class="mt-32">
<a class="description" href="{{ episode.url }}">{{ episode.title | slice: 7, title_length }}</a> <ul class="md:grid md:grid-cols-2 lg:grid-cols-3 md:col-gap-8 md:row-gap-10">
<div class="meta"> {% assign sorted_podcasts = site.podcasts | reverse %}
<span class="ui small text"> {% for episode in sorted_podcasts %}
<i class="calendar alternate icon"></i>{{ episode.date | date: "%-d. %b %Y" }}, <li class="mt-10 md:mt-0">
{% for host in episode.hosts %} <div class="block transform hover:scale-95 duration-150 ease-in-out">
<i class="user icon"></i>{{ host }} <a href="{{ episode.url }}">
{% endfor %} <img src="{{ site.img_url }}shapes/podcast_blank.png" alt="">
</span> <span style="font-size: 12rem; font-weight: 800; margin-top: -13.8rem; margin-left: -0.8rem;" class=" z-0 absolute bg-top">
<button type="button" style="background-color: #6188ff;" class="inline-flex items-center px-4 py-4 rounded-md border border-transparent text-xs leading-5 font-extrabold text-white">
<svg class="h-8 w-auto lg:h-5 fill-current text-white" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9.41 11">
<path d="M8.43 4.62l-6.34-4A1 1 0 00.5 1.5v8a1 1 0 001.59.88l6.34-4a1 1 0 000-1.76z" stroke-miterlimit="10" /></svg>
</button>
</span>
<div class="pt-6">
<span class="opacity-25">{{ episode.date | date: "%-d. %b %Y" }}</span>
{% assign title_length = episode.title | size %}
<p>{{ episode.title | slice: 7, title_length }} - #{{ episode.title | slice: 2, 2 }}</p>
</div>
</a>
</div>
</li>
{% endfor %}
</ul>
<br class="mb-12">
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
{% endfor %} </div>
</div> </section>