Different font size for viewport

This commit is contained in:
Kerby Martino committed 2025-05-01 11:28:09 +08:00
1 parent c46de3f853
commit d86094968e
2 files changed
+34 -24

No files matched your search

+2 -2
View File
@@ -52,8 +52,8 @@
], ],
}, },
fontSize: { fontSize: {
'xs': '1rem', // Very small text (like "reply") 'xs': '0.75rem', // Very small text (like "reply")
'sm': '1.125rem', // Small text (like meta info) 'sm': '1rem', // Small text (like meta info)
'base': '1.25rem', // Base text size (like post titles) 'base': '1.25rem', // Base text size (like post titles)
'lg': '1.5rem', // Section headers 'lg': '1.5rem', // Section headers
}, },
+32 -22
View File
@@ -1,3 +1,4 @@
<!-- Quick Tips Box -->
<div class="bg-rules-bg p-4 rounded mb-4 text-primary"> <div class="bg-rules-bg p-4 rounded mb-4 text-primary">
<p><strong>Quick Tips:</strong> Keep it brief, keep it real. Share your desk moments, finds, or frustrations. Upvote what resonates!</p> <p><strong>Quick Tips:</strong> Keep it brief, keep it real. Share your desk moments, finds, or frustrations. Upvote what resonates!</p>
</div> </div>
@@ -15,41 +16,50 @@
</div> </div>
</div> </div>
<!-- Post List -->
<div class="post-list space-y-4"> <div class="post-list space-y-4">
{% for post in site.posts %} {% for post in site.posts %}
<div class="mb-4"> <div class="mb-4">
<article class="flex flex-col md:flex-row items-start"> <article class="flex flex-col md:flex-row items-start">
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p class="mt-0 mb-0.5"> <!-- Post Title -->
<strong><a href="{{ post.url }}" class="text-text-title font-normal text-sm md:text-base hover:underline">{{ post.title }}</a></strong> <p class="mt-0 mb-0.5">
</p> <strong>
<div class="mt-2 mb-1 text-sm flex flex-col md:flex-row items-start md:space-x-2"> <a href="{{ post.url }}" class="text-text-title font-normal text-lg md:text-sm hover:underline">
<div class="flex items-start space-x-2 mb-2 md:mb-0"> {{ post.title }}
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-start"> </a>
</strong>
</p>
<!-- Post Metadata -->
<div class="mt-2 mb-1 text-sm flex flex-col md:flex-row items-start md:items-center md:space-x-2">
<div class="flex items-start space-x-2 mb-2 md:mb-0">
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center">
<i class="fa-solid fa-arrow-up mr-1"></i> {{ post.upvotes }} <i class="fa-solid fa-arrow-up mr-1"></i> {{ post.upvotes }}
</span> </span>
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-start"> <span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center">
<i class="fas fa-reply mr-1"></i> REPLY <i class="fas fa-reply mr-1"></i> REPLY
</span> </span>
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-start"> <span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center">
<i class="fas fa-comment mr-1"></i> {{ post.comments_count }} <i class="fas fa-comment mr-1"></i> {{ post.comments_count }}
</span> </span>
</div>
<small class="text-sm font-action">
<a href="#" class="text-sm hover:underline">{{ post.author }}</a>
<span class="text-text-muted text-sm opacity-75">{{ post.date | date: "%d %b %Y" }}</span>
</small>
</div> </div>
<small class="text-sm font-action"><a href="#" class="text-sm hover:underline">{{ post.author }}</a> <span class="text-text-muted text-sm opacity-75">{{ post.date | date: "%d %b %Y" }}</span></small>
</div> </div>
</div> </div>
</div> </article>
</article> <hr class="border-border-light my-4">
<hr class="border-border-light my-4"> </div>
</div>
{% endfor %} {% endfor %}
</div> <!-- End post-list --> </div>
<!-- More Link Section --> <!-- More Link -->
<div class="mt-4 flex"> <div class="mt-4 flex">
<div class="flex items-start mr-2" style="width: 24px;"> <div class="flex items-start mr-2" style="width: 24px;"></div>
<!-- This empty div matches the width of the number/upvote area -->
</div>
<a href="#" class="text-primary hover:underline bg-primary-dark text-white px-4 py-2">More</a> <a href="#" class="text-primary hover:underline bg-primary-dark text-white px-4 py-2">More</a>
</div> </div>