design changes for listicles in blog view
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
<div
|
<div
|
||||||
class="flex flex-col min-h-screen md:border-x-[20px] border-primary-400"
|
class="flex flex-col min-h-screen md:border-x-[20px] border-primary-400"
|
||||||
>
|
>
|
||||||
<div class="bg-primary-400 md:h-5 md:sticky top-0"></div>
|
<div class="bg-primary-400 md:h-5 md:sticky top-0 z-50"></div>
|
||||||
{{- partial "header.html" . -}}
|
{{- partial "header.html" . -}}
|
||||||
<div class="mb-8 grow">
|
<div class="mb-8 grow">
|
||||||
<div class="" id="content">
|
<div class="" id="content">
|
||||||
|
|||||||
@@ -1,23 +1,34 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mt-8">
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mt-8">
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
<div class="overflow-hidden rounded-lg shadow-lg border-2 hover:bg-primary-300 text-slate-700">
|
<div
|
||||||
<!-- <a href="{{ .RelPermalink }}"> -->
|
class="overflow-hidden rounded-lg shadow-lg border-2 hover:bg-primary-300 text-slate-600"
|
||||||
{{ $image := .Resources.GetMatch "header" }}
|
>
|
||||||
{{ with $image }}
|
<a href="{{ .RelPermalink }}">
|
||||||
{{ $image := $image.Fill "1024x512 Center webp" }}
|
{{ $image := .Resources.GetMatch "header" }}
|
||||||
<img class="" src="{{ $image.RelPermalink }}" />
|
{{ if $image }}
|
||||||
{{ end }}
|
{{ $image := $image.Fill "1024x512 Center webp" }}
|
||||||
<div class="text-lg m-4">
|
<div class="relative z-0 mb-4">
|
||||||
{{ .Title }}
|
<img class="" src="{{ $image.RelPermalink }}" />
|
||||||
</div>
|
<div
|
||||||
|
class="absolute bottom-2 left-4 text-3xl text-white font-bold font-outline-1"
|
||||||
|
>
|
||||||
|
{{ .Title }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ else }}
|
||||||
|
<div class="text-3xl font-bold m-4">
|
||||||
|
{{ .Title }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<div class="mx-4 mb-4 line-clamp-5 text-balance">
|
|
||||||
{{ .Summary }}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- </a> -->
|
<div
|
||||||
|
class="mx-4 mb-4 line-clamp-[7] text-balance bg-clip-text bg-gradient-to-b from-slate-700 from-60% text-transparent"
|
||||||
|
>
|
||||||
|
{{ .Summary }}
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<header
|
<header
|
||||||
class="md:bg-white bg-primary-400 md:sticky md:top-5 top-0 w-full border-b-2 border-neutral-300 shadow-md"
|
class="md:bg-white bg-primary-400 md:sticky md:top-5 top-0 w-full border-b-2 border-neutral-300 shadow-md z-50"
|
||||||
>
|
>
|
||||||
<div class="flex justify-center">
|
<div class="flex justify-center">
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
|
@layer base {
|
||||||
|
.font-outline-1 {
|
||||||
|
-webkit-text-stroke: 0.25px black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user