feat: Implement light theme, mobile menu, font and image fallback
This commit is contained in:
16
post.hbs
16
post.hbs
@@ -2,12 +2,12 @@
|
||||
|
||||
<article class="container mx-auto px-4 py-12">
|
||||
<header class="text-center mb-8">
|
||||
<h1 class="text-6xl font-bold tracking-tight text-white mb-4">{{title}}</h1>
|
||||
<section class="post-meta text-gray-400 text-lg">
|
||||
<h1 class="text-6xl font-bold tracking-tight text-[var(--text-primary)] mb-4">{{title}}</h1>
|
||||
<section class="post-meta text-[var(--text-secondary)] text-lg">
|
||||
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format="MMMM DD, YYYY"}}</time>
|
||||
{{#if primary_tag}}
|
||||
<span class="mx-2">•</span>
|
||||
<a href="{{primary_tag.url}}" class="text-gray-400 hover:text-white transition duration-200">{{primary_tag.name}}</a>
|
||||
<a href="{{primary_tag.url}}" class="text-[var(--text-secondary)] hover:text-[var(--text-primary)] transition duration-200">{{primary_tag.name}}</a>
|
||||
{{/if}}
|
||||
</section>
|
||||
</header>
|
||||
@@ -23,14 +23,18 @@
|
||||
alt="{{title}}"
|
||||
>
|
||||
</figure>
|
||||
{{else}}
|
||||
<div class="mb-12 rounded-lg overflow-hidden shadow-xl w-full h-96 flex items-center justify-center bg-[var(--bg-tertiary)] text-[var(--text-tertiary)] text-3xl">
|
||||
No Feature Image
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<section class="post-content max-w-3xl mx-auto text-gray-200 leading-relaxed text-lg prose prose-invert">
|
||||
<section class="post-content max-w-3xl mx-auto text-[var(--text-primary)] leading-relaxed text-lg prose prose-invert">
|
||||
{{content}}
|
||||
</section>
|
||||
|
||||
<footer class="mt-12 pt-8 border-t border-gray-700 text-center">
|
||||
<a href="/" class="inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition duration-200">
|
||||
<footer class="mt-12 pt-8 border-t border-[var(--bg-tertiary)] text-center">
|
||||
<a href="/" class="inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md shadow-sm text-[var(--text-primary)] bg-[var(--brand-primary)] hover:bg-[var(--brand-secondary)] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[var(--brand-primary)] transition duration-200">
|
||||
← Back to Home
|
||||
</a>
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user