Optimize padding in content overview pages for mobile

This commit is contained in:
davegson 2020-05-21 12:04:07 +02:00
parent 5838cd8791
commit 32aacb09e2
3 changed files with 11 additions and 10 deletions

View file

@ -3,7 +3,7 @@ title: Safing Blog
layout: page
---
<section class="pt-64">
<section class="pt-16 md:pt-32 lg:pt-64">
<div class="items-center h-full">
<div class="container mx-auto px-8 sm:px-0 flex">
<div class="max-w-screen-xl mx-auto px-4 sm:px-6 lg:flex">
@ -12,12 +12,12 @@ layout: page
<div class="lg:text-center">
<!-- hide the huge "Follow Us" in mobile & md devices for now, made width problems -->
<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 hidden lg:block">Follow Us</span>
<h2 class="text-5xl tracking-tight font-extrabold leading-none py-10 text-center">Blog</h2>
<h2 class="text-5xl tracking-tight font-extrabold leading-none py-5 md:py-10 text-center">Blog</h2>
</div>
<div class="mt-32">
<div class="mt-8 md: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>
<li class="mt-10 md:mt-0">
<div class="block transform hover:scale-95 duration-150 ease-in-out">
<a href="{{ post.url }}">
{% if post.custom_thumbnail_name == null %}
@ -28,6 +28,7 @@ layout: page
<div class="pt-6">
<span class="opacity-25">{{ post.date | date: "%-d. %b %Y" }}</span>
<p>{{ post.title }}</p>
</div>
</a>
</div>
</li>

View file

@ -3,7 +3,7 @@ title: The Safing Podcast
layout: page
---
<section class="pt-64">
<section class="pt-16 md:pt-32 lg:pt-64">
<div class="items-center h-full">
<div class="container mx-auto px-8 sm:px-0 flex">
<div class="max-w-screen-xl mx-auto px-4 sm:px-6 lg:flex">
@ -12,7 +12,7 @@ layout: page
<div class="lg:text-center">
<!-- hide the huge "Follow Us" in mobile & md devices for now, made width problems -->
<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 hidden lg:block">Follow Us</span>
<h2 class="text-5xl tracking-tight font-extrabold leading-none py-10 text-center">Podcast</h2>
<h2 class="text-5xl tracking-tight font-extrabold leading-none py-5 md:py-10 text-center">Podcast</h2>
<div class="flex mx-auto justify-center pt-5">
<a href="{{ site.podcast_itunes_url }}" class="opacity-55 hover:opacity-100 ease-in-out duration-150" target="_blank">
<img style="height: 1.3rem; width: auto;" src="{{ site.img_url }}icons/podcast.svg">
@ -22,7 +22,7 @@ layout: page
</a>
</div>
</div>
<div class="mt-32">
<div class="mt-8 md:mt-16 lg:mt-32">
<ul class="md:grid md:grid-cols-2 lg:grid-cols-3 md:col-gap-8 md:row-gap-10">
{% assign sorted_podcasts = site.podcasts | reverse %}
{% for episode in sorted_podcasts %}

View file

@ -3,7 +3,7 @@ title: Safing Video Updates
layout: page
---
<section class="pt-64">
<section class="pt-16 md:pt-32 lg:pt-64">
<div class="items-center h-full">
<div class="container mx-auto px-8 sm:px-0 flex">
<div class="max-w-screen-xl mx-auto px-4 sm:px-6 lg:flex">
@ -12,7 +12,7 @@ layout: page
<div class="lg:text-center">
<!-- hide the huge "Follow Us" in mobile & md devices for now, made width problems -->
<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 hidden lg:block">Follow Us</span>
<h2 class="text-5xl tracking-tight font-extrabold leading-none py-10 text-center">Video Updates</h2>
<h2 class="text-5xl tracking-tight font-extrabold leading-none py-5 md:py-10 text-center">Video Updates</h2>
<div class="flex mx-auto justify-center pt-5">
<a href="{{ site.youtube_channel_url }}" class="opacity-55 hover:opacity-100 ease-in-out duration-150" target="_blank">
YouTube
@ -22,7 +22,7 @@ layout: page
</a>
</div>
</div>
<div class="mt-32">
<div class="mt-8 md:mt-16 lg:mt-32">
<ul class="md:grid md:grid-cols-2 lg:grid-cols-3 md:col-gap-8 md:row-gap-10">
{% assign sorted_videos = site.videos | reverse %}
{% for video in sorted_videos %}