Add SVG icons and enhance card design with visual hierarchy

This commit is contained in:
2025-02-14 09:51:35 -05:00
parent 8a12b0ee1b
commit c3c1e02271
2 changed files with 157 additions and 46 deletions

View File

@@ -99,7 +99,7 @@ body::after {
.grid {
display: grid;
gap: 1.5rem;
gap: 2rem;
}
.grid-cols-2 {
@@ -107,7 +107,7 @@ body::after {
}
.space-y-6 > * + * {
margin-top: 1.5rem;
margin-top: 2rem;
}
@media (max-width: 768px) {
@@ -131,11 +131,11 @@ body::after {
flex-direction: column;
gap: 0.375rem;
padding: 1.5rem;
border-bottom: 1px solid hsl(var(--border));
}
.card-content {
padding: 1.5rem;
padding-top: 0;
}
.card-title {
@@ -151,6 +151,18 @@ body::after {
color: hsl(var(--muted-foreground));
}
/* Sub Card */
.sub-card {
border-radius: calc(var(--radius) - 0.25rem);
border: 1px solid hsl(var(--border));
background: hsl(var(--secondary));
color: hsl(var(--secondary-foreground));
}
.sub-card-content {
padding: 1rem;
}
/* Header Card */
.header-card {
margin-bottom: 1.5rem;
@@ -160,6 +172,7 @@ body::after {
flex-direction: row;
align-items: center;
gap: 1rem;
border-bottom: none;
}
.header-card img {
@@ -192,7 +205,7 @@ body::after {
.stat-item {
display: flex;
flex-direction: column;
gap: 0.5rem;
gap: 0.75rem;
padding: 1rem;
background: hsl(var(--secondary));
border-radius: var(--radius);
@@ -222,19 +235,32 @@ body::after {
gap: 1rem;
}
.info-title {
font-size: 0.875rem;
font-weight: 600;
color: hsl(var(--card-foreground));
.info-section-header {
display: flex;
align-items: center;
gap: 0.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid hsl(var(--border));
}
.info-title {
font-size: 0.875rem;
font-weight: 600;
color: hsl(var(--card-foreground));
line-height: 1;
}
.info-item {
display: grid;
gap: 0.5rem;
}
.info-header {
display: flex;
align-items: center;
gap: 0.5rem;
}
.info-label {
font-size: 0.875rem;
color: hsl(var(--muted-foreground));
@@ -255,6 +281,14 @@ body::after {
text-decoration: underline;
}
/* Icons */
.icon {
width: 1rem;
height: 1rem;
color: hsl(var(--muted-foreground));
flex-shrink: 0;
}
/* Badge List */
.badge-list {
display: flex;
@@ -278,8 +312,9 @@ body::after {
}
.badge.secondary {
background: hsl(var(--secondary));
color: hsl(var(--secondary-foreground));
background: hsl(var(--card));
color: hsl(var(--card-foreground));
border: 1px solid hsl(var(--border));
}
.tag {
@@ -290,17 +325,19 @@ body::after {
border-radius: 9999px;
font-size: 0.875rem;
line-height: 1;
background: hsl(var(--secondary));
color: hsl(var(--secondary-foreground));
background: hsl(var(--card));
color: hsl(var(--card-foreground));
border: 1px solid hsl(var(--border));
}
/* Code */
code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
background: hsl(var(--secondary));
background: hsl(var(--card));
padding: 0.25rem 0.5rem;
border-radius: calc(var(--radius) - 0.25rem);
font-size: 0.875rem;
border: 1px solid hsl(var(--border));
}
/* Utilities */