refactor: Modernize user profile with Tailwind CSS and div layout
This commit is contained in:
1 parent
0d4e9c002a
commit
295f5f588e
1 file changed
+24
-26
@@ -1,27 +1,25 @@
|
|||||||
<div class="user-profile">
|
<div class="user-profile space-y-4">
|
||||||
<table class="w-full bg-gray-100 text-primary">
|
<div>
|
||||||
<tr>
|
<span class="font-medium text-text-title">Username:</span>
|
||||||
<th class="text-left py-2 px-3 font-normal">Username:</th>
|
<span class="text-text-muted">{{ page.username }}</span>
|
||||||
<td class="py-2 px-3 text-text-muted">{{ page.username }}</td>
|
</div>
|
||||||
</tr>
|
<div>
|
||||||
<tr>
|
<span class="font-medium text-text-title">Created:</span>
|
||||||
<th class="text-left py-2 px-3 font-normal">Created:</th>
|
<span class="text-text-muted">{{ page.created }}</span>
|
||||||
<td class="py-2 px-3">{{ page.created }}</td>
|
</div>
|
||||||
</tr>
|
<div>
|
||||||
<tr>
|
<span class="font-medium text-text-title">Merits:</span>
|
||||||
<th class="text-left py-2 px-3 font-normal">Merits:</th>
|
<span class="text-text-muted">{{ page.merits }}</span>
|
||||||
<td class="py-2 px-3">{{ page.merits }}</td>
|
</div>
|
||||||
</tr>
|
<div>
|
||||||
<tr>
|
<span class="font-medium text-text-title block mb-1">About:</span>
|
||||||
<th class="text-left py-2 px-3 font-normal align-top">About:</th>
|
<div class="text-text-muted mb-3">
|
||||||
<td class="py-2 px-3">
|
{{ page.about | markdownify }}
|
||||||
<p class="mb-4 text-text-muted">{{ page.about }}</p>
|
</div>
|
||||||
<ul>
|
<div class="flex space-x-4 text-sm font-action">
|
||||||
<li class="hover:underline cursor-pointer underline"><a href="{{ page.submissions_uri }}">submissions</a></li>
|
<a href="{{ page.submissions_uri }}" class="text-primary hover:underline">submissions</a>
|
||||||
<li class="hover:underline cursor-pointer underline"><a href="{{ page.comments_uri }}">comments</a></li>
|
<a href="{{ page.comments_uri }}" class="text-primary hover:underline">comments</a>
|
||||||
<li class="hover:underline cursor-pointer underline"><a href="{{ page.favorites_uri }}">favorites</a></li>
|
<a href="{{ page.favorites_uri }}" class="text-primary hover:underline">favorites</a>
|
||||||
</ul>
|
</div>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
Reference in new issue
Block a user