Improve categories section with icon and enhanced styling

This commit is contained in:
2025-02-14 09:59:33 -05:00
parent c3c1e02271
commit 4c689978ae
2 changed files with 31 additions and 4 deletions

View File

@@ -126,6 +126,10 @@ body::after {
backdrop-filter: blur(16px);
}
.card + .card {
margin-top: 1.5rem;
}
.card-header {
display: flex;
flex-direction: column;
@@ -160,7 +164,7 @@ body::after {
}
.sub-card-content {
padding: 1rem;
padding: 1.25rem;
}
/* Header Card */
@@ -206,11 +210,17 @@ body::after {
display: flex;
flex-direction: column;
gap: 0.75rem;
padding: 1rem;
padding: 1.25rem;
background: hsl(var(--secondary));
border-radius: var(--radius);
}
.stat-item .icon {
width: 1.5rem;
height: 1.5rem;
color: hsl(var(--primary));
}
.stat-label {
font-size: 0.875rem;
font-weight: 500;
@@ -269,12 +279,14 @@ body::after {
.info-value {
font-size: 0.875rem;
color: hsl(var(--card-foreground));
padding-left: 1.75rem;
}
.info-link {
color: hsl(var(--primary));
text-decoration: none;
font-size: 0.875rem;
padding-left: 1.75rem;
}
.info-link:hover {
@@ -289,11 +301,17 @@ body::after {
flex-shrink: 0;
}
.info-header .icon {
position: absolute;
margin-left: 0.25rem;
}
/* Badge List */
.badge-list {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
padding-left: 1.75rem;
}
/* Badges and Tags */

View File

@@ -9,7 +9,7 @@
<body>
<div class="container">
<div id="loading">Loading repository data...</div>
<div id="content" class="hidden space-y-6">
<div id="content" class="hidden">
<!-- Header -->
<div class="card header-card">
<div class="card-header">
@@ -180,7 +180,16 @@
<div class="card-content">
<div class="sub-card">
<div class="sub-card-content">
<div id="tags" class="badge-list"></div>
<div class="info-item">
<div class="info-header">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path>
<line x1="7" y1="7" x2="7.01" y2="7"></line>
</svg>
<span class="info-label">Categories</span>
</div>
<div id="tags" class="badge-list"></div>
</div>
</div>
</div>
</div>