fixing some layout stuff on the sections
|
@ -1537,11 +1537,26 @@
|
|||
width: calc(1/3 * 100%);
|
||||
}
|
||||
}
|
||||
.md\:w-full {
|
||||
@media (width >= 48rem) {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.md\:max-w-md {
|
||||
@media (width >= 48rem) {
|
||||
max-width: var(--container-md);
|
||||
}
|
||||
}
|
||||
.md\:flex-1 {
|
||||
@media (width >= 48rem) {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
.md\:flex-2 {
|
||||
@media (width >= 48rem) {
|
||||
flex: 2;
|
||||
}
|
||||
}
|
||||
.md\:basis-1\/4 {
|
||||
@media (width >= 48rem) {
|
||||
flex-basis: calc(1/4 * 100%);
|
||||
|
@ -1552,6 +1567,11 @@
|
|||
flex-basis: calc(3/4 * 100%);
|
||||
}
|
||||
}
|
||||
.md\:basis-full {
|
||||
@media (width >= 48rem) {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
}
|
||||
.md\:grid-cols-2 {
|
||||
@media (width >= 48rem) {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
|
@ -1562,6 +1582,20 @@
|
|||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
.md\:space-x-4 {
|
||||
@media (width >= 48rem) {
|
||||
:where(& > :not(:last-child)) {
|
||||
--tw-space-x-reverse: 0;
|
||||
margin-inline-start: calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse));
|
||||
margin-inline-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)));
|
||||
}
|
||||
}
|
||||
}
|
||||
.md\:px-0 {
|
||||
@media (width >= 48rem) {
|
||||
padding-inline: calc(var(--spacing) * 0);
|
||||
}
|
||||
}
|
||||
.lg\:block {
|
||||
@media (width >= 64rem) {
|
||||
display: block;
|
||||
|
|
2
static/js/zoom.js
Normal file
BIN
static/processed_images/featured.057497d8a71fbd62.jpg
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
static/processed_images/featured.0d7df4ca4587bc43.jpg
Normal file
After Width: | Height: | Size: 138 KiB |
BIN
static/processed_images/featured.1bd793b2b10531bf.jpg
Normal file
After Width: | Height: | Size: 92 KiB |
BIN
static/processed_images/featured.25378b53b53fabac.jpg
Normal file
After Width: | Height: | Size: 80 KiB |
BIN
static/processed_images/featured.4a6f27bdb52350fd.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
static/processed_images/featured.4e50924e21c79ba2.jpg
Normal file
After Width: | Height: | Size: 111 KiB |
BIN
static/processed_images/featured.5a493e7815e4d0b2.jpg
Normal file
After Width: | Height: | Size: 169 KiB |
BIN
static/processed_images/featured.65bbff9919f1db33.jpg
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
static/processed_images/featured.66c2b51c929ec011.jpg
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
static/processed_images/featured.7175d16a6d9f570e.jpg
Normal file
After Width: | Height: | Size: 106 KiB |
BIN
static/processed_images/featured.741b777d0e810eb1.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
static/processed_images/featured.7d7d15abfcb6c7d7.jpg
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
static/processed_images/featured.7f16a8e8c97a08a6.jpg
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
static/processed_images/featured.8058b07368d628a8.jpg
Normal file
After Width: | Height: | Size: 107 KiB |
BIN
static/processed_images/featured.a3ff5ec9ecc5d781.jpg
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
static/processed_images/featured.b2951ecd4298ed4b.jpg
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
static/processed_images/featured.b926d698befd6010.jpg
Normal file
After Width: | Height: | Size: 110 KiB |
BIN
static/processed_images/featured.bb8ef4fb71188203.jpg
Normal file
After Width: | Height: | Size: 101 KiB |
BIN
static/processed_images/featured.bec5fb697cb5de75.jpg
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
static/processed_images/featured.c6fe8367f3376e2f.jpg
Normal file
After Width: | Height: | Size: 138 KiB |
BIN
static/processed_images/featured.d0d21da59d127010.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
static/processed_images/featured.e0977849a3166d4d.jpg
Normal file
After Width: | Height: | Size: 69 KiB |
BIN
static/processed_images/featured.e0cc5f46a1907c93.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
static/processed_images/featured.e3995da4991aa974.jpg
Normal file
After Width: | Height: | Size: 65 KiB |
|
@ -1,6 +1,7 @@
|
|||
{% extends "layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
<script src="/js/zoom.js"/>
|
||||
<div class="flex px-4">
|
||||
<h1 class="text-2xl text-bold my-6 mx-auto">
|
||||
{{ page.title }}
|
||||
|
|
|
@ -32,23 +32,23 @@
|
|||
{% set image = page.path ~ page.extra.image %}
|
||||
{% endif %}
|
||||
{% if image %}
|
||||
{% set resized = resize_image(path="/content" ~ image, width=200, height=200, op="fit_height") %}
|
||||
{% set resized = resize_image(path="/content" ~ image, width=500, height=500, op="fit_height") %}
|
||||
{% else %}
|
||||
{% set resized = "" %}
|
||||
{% endif %}
|
||||
<div class="flex flex-wrap space-x-4 border border-2 border-gray-200 dark:border-black rounded-xl shadow-xl hover:shadow-xl/30 transform transition duration-500 hover:scale-105 bg-gray-200 dark:bg-gray-800 place-content-center cursor-pointer" onclick='location.href="{{ page.permalink }}";'>
|
||||
<div class="flex flex-wrap md:space-x-4 border border-2 border-gray-200 dark:border-black rounded-xl shadow-xl hover:shadow-xl/30 transform transition duration-500 hover:scale-105 bg-gray-200 dark:bg-gray-800 place-content-center cursor-pointer" onclick='location.href="{{ page.permalink }}";'>
|
||||
|
||||
<!-- Image -->
|
||||
{% if resized %}
|
||||
<div class="w-full md:w-1/3 flex-2 rounded-lg place-content-center">
|
||||
<img class="object-cover object-top w-full h-96 lg:h-72 md:h-72 nozoom rounded-lg" src="{{ resized.url }}"/>
|
||||
<div class="w-full basis-full md:flex-2 rounded-lg place-content-center">
|
||||
<img class="object-cover object-top md:w-full w-full h-96 lg:h-72 md:h-72 nozoom rounded-lg" src="{{ resized.url }}"/>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="ml-5">
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="flex flex-col flex-3 mr-5">
|
||||
<div class="flex flex-col flex-3 mr-5 px-4 md:px-0">
|
||||
<h2 class="text-2xl text-bold"><a href='{{ page.permalink }}'>{{ page.title }}</a></h2>
|
||||
<p class="text-bold text-ellipsis">{{ page.description | linebreaksbr | safe }}</p>
|
||||
|
||||
|
|