1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-04 07:40:09 +05:30

fix: make everything squarish, update projects

- add better projects

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
2026-03-30 12:01:45 +05:30
committed by Morumotto
parent 6e7b3c86ee
commit 6bd1a2d648
7 changed files with 89 additions and 52 deletions
+1 -5
View File
@@ -22,11 +22,7 @@ const hero = lb.nowPlaying ?? lb.recentTracks[0] ?? null;
---
<div class="mc card" id="music-widget" data-user={lb.username} data-live={isLive ? "1" : "0"}>
<div class="mc-header">
<a href={profileUrl} target="_blank" rel="noopener noreferrer" class="widget-title mc-link" aria-label="ListenBrainz profile">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/></svg>
</a>
</div>
<div class="mc-header"></div>
<div class="mc-body" id="mc-body">
{hero ? (
+11
View File
@@ -115,6 +115,17 @@ const fmtDate = (d: Date) =>
background-color: var(--bg-surface-hover);
}
@media (max-width: 600px) {
.post-link {
grid-template-columns: 1fr;
gap: var(--space-3);
}
.post-thumb {
aspect-ratio: 16 / 9;
}
}
.thumb-img {
width: 100%;
height: 100%;