refactor: Modernize user profile with Tailwind CSS and div layout

This commit is contained in:
Kerby Martino (aider) committed 2025-05-03 00:28:26 +08:00
1 parent 0d4e9c002a
commit 295f5f588e
1 file changed
+24 -26
+24 -26
View File
@@ -1,27 +1,25 @@
<div class="user-profile">
<table class="w-full bg-gray-100 text-primary">
<tr>
<th class="text-left py-2 px-3 font-normal">Username:</th>
<td class="py-2 px-3 text-text-muted">{{ page.username }}</td>
</tr>
<tr>
<th class="text-left py-2 px-3 font-normal">Created:</th>
<td class="py-2 px-3">{{ page.created }}</td>
</tr>
<tr>
<th class="text-left py-2 px-3 font-normal">Merits:</th>
<td class="py-2 px-3">{{ page.merits }}</td>
</tr>
<tr>
<th class="text-left py-2 px-3 font-normal align-top">About:</th>
<td class="py-2 px-3">
<p class="mb-4 text-text-muted">{{ page.about }}</p>
<ul>
<li class="hover:underline cursor-pointer underline"><a href="{{ page.submissions_uri }}">submissions</a></li>
<li class="hover:underline cursor-pointer underline"><a href="{{ page.comments_uri }}">comments</a></li>
<li class="hover:underline cursor-pointer underline"><a href="{{ page.favorites_uri }}">favorites</a></li>
</ul>
</td>
</tr>
</table>
<div class="user-profile space-y-4">
<div>
<span class="font-medium text-text-title">Username:</span>
<span class="text-text-muted">{{ page.username }}</span>
</div>
<div>
<span class="font-medium text-text-title">Created:</span>
<span class="text-text-muted">{{ page.created }}</span>
</div>
<div>
<span class="font-medium text-text-title">Merits:</span>
<span class="text-text-muted">{{ page.merits }}</span>
</div>
<div>
<span class="font-medium text-text-title block mb-1">About:</span>
<div class="text-text-muted mb-3">
{{ page.about | markdownify }}
</div>
<div class="flex space-x-4 text-sm font-action">
<a href="{{ page.submissions_uri }}" class="text-primary hover:underline">submissions</a>
<a href="{{ page.comments_uri }}" class="text-primary hover:underline">comments</a>
<a href="{{ page.favorites_uri }}" class="text-primary hover:underline">favorites</a>
</div>
</div>
</div>