Spaces:
Sleeping
Sleeping
husseinelsaadi Claude Opus 4.8 commited on
Commit ·
a99ecf6
1
Parent(s): 8bfe920
Polish homepage feature cards: per-card accent color, gradient top bar, richer icon tiles
Browse files- backend/static/css/theme.css +50 -0
backend/static/css/theme.css
CHANGED
|
@@ -628,3 +628,53 @@ footer { background: var(--surface) !important; color: var(--muted) !important;
|
|
| 628 |
.pipe-track { grid-template-columns: 1fr; }
|
| 629 |
.logo { font-size: 1.45rem !important; }
|
| 630 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 628 |
.pipe-track { grid-template-columns: 1fr; }
|
| 629 |
.logo { font-size: 1.45rem !important; }
|
| 630 |
}
|
| 631 |
+
|
| 632 |
+
/* =====================================================================
|
| 633 |
+
Feature cards — refined per-card accent treatment
|
| 634 |
+
Each of the three cards gets its own color (indigo / cyan / violet):
|
| 635 |
+
a gradient top bar, a richer icon tile, and a matching hover + underline.
|
| 636 |
+
Content/markup unchanged — purely visual polish.
|
| 637 |
+
===================================================================== */
|
| 638 |
+
.features-grid { gap: 1.9rem; }
|
| 639 |
+
.features-grid .feature-card {
|
| 640 |
+
position: relative;
|
| 641 |
+
background: var(--surface) !important;
|
| 642 |
+
}
|
| 643 |
+
/* gradient accent bar along the top edge (clipped by the card radius) */
|
| 644 |
+
.features-grid .feature-card::before {
|
| 645 |
+
content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 3;
|
| 646 |
+
background: var(--grad);
|
| 647 |
+
}
|
| 648 |
+
.features-grid .feature-card:nth-child(1)::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
|
| 649 |
+
.features-grid .feature-card:nth-child(2)::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
|
| 650 |
+
.features-grid .feature-card:nth-child(3)::before { background: linear-gradient(90deg, #a855f7, #c084fc); }
|
| 651 |
+
|
| 652 |
+
/* icon area: drop the flat band, let the tile carry the color */
|
| 653 |
+
.features-grid .feature-icon { background: transparent !important; padding: 1.85rem 1.6rem .5rem !important; }
|
| 654 |
+
.features-grid .feature-icon span {
|
| 655 |
+
width: 66px; height: 66px; border-radius: 18px; font-size: 2rem;
|
| 656 |
+
display: grid; place-items: center; line-height: 1;
|
| 657 |
+
border: 1px solid var(--line);
|
| 658 |
+
transition: transform .35s cubic-bezier(.16,.84,.44,1), box-shadow .35s, border-color .35s;
|
| 659 |
+
}
|
| 660 |
+
.features-grid .feature-card:nth-child(1) .feature-icon span {
|
| 661 |
+
background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(129,140,248,.06));
|
| 662 |
+
border-color: rgba(99,102,241,.32); box-shadow: 0 8px 18px rgba(99,102,241,.20);
|
| 663 |
+
}
|
| 664 |
+
.features-grid .feature-card:nth-child(2) .feature-icon span {
|
| 665 |
+
background: linear-gradient(135deg, rgba(34,211,238,.22), rgba(6,182,212,.07));
|
| 666 |
+
border-color: rgba(34,211,238,.38); box-shadow: 0 8px 18px rgba(34,211,238,.20);
|
| 667 |
+
}
|
| 668 |
+
.features-grid .feature-card:nth-child(3) .feature-icon span {
|
| 669 |
+
background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(192,132,252,.06));
|
| 670 |
+
border-color: rgba(168,85,247,.32); box-shadow: 0 8px 18px rgba(168,85,247,.20);
|
| 671 |
+
}
|
| 672 |
+
.features-grid .feature-card:hover .feature-icon span { transform: translateY(-3px) scale(1.05); }
|
| 673 |
+
|
| 674 |
+
/* heading underline + hover border pick up each card's accent */
|
| 675 |
+
.features-grid .feature-card:nth-child(1) .feature-content h3::after { background: linear-gradient(90deg, #6366f1, #818cf8) !important; }
|
| 676 |
+
.features-grid .feature-card:nth-child(2) .feature-content h3::after { background: linear-gradient(90deg, #06b6d4, #22d3ee) !important; }
|
| 677 |
+
.features-grid .feature-card:nth-child(3) .feature-content h3::after { background: linear-gradient(90deg, #a855f7, #c084fc) !important; }
|
| 678 |
+
.features-grid .feature-card:nth-child(1):hover { border-color: rgba(99,102,241,.45) !important; }
|
| 679 |
+
.features-grid .feature-card:nth-child(2):hover { border-color: rgba(34,211,238,.50) !important; }
|
| 680 |
+
.features-grid .feature-card:nth-child(3):hover { border-color: rgba(168,85,247,.45) !important; }
|