From 4bb6df6f2110d52cacff575742d62303482d25db Mon Sep 17 00:00:00 2001 From: Local Build Date: Mon, 31 Aug 2026 14:33:03 +0200 Subject: [PATCH] feat: neumorphic card component + remove overflow:hidden from cards --- public/cases/design-system/index.html | 52 ++++++++++++++++ public/css/main.css | 90 +++++++++++++++++++++++++-- src/pages/cases/design-system.html | 52 ++++++++++++++++ 3 files changed, 190 insertions(+), 4 deletions(-) diff --git a/public/cases/design-system/index.html b/public/cases/design-system/index.html index 48920be..aabbe02 100644 --- a/public/cases/design-system/index.html +++ b/public/cases/design-system/index.html @@ -394,6 +394,38 @@ .case-article.ds-page .contact-grid { margin-bottom: 0.25rem; } + + .sg-neu-demo { + margin-bottom: 0.5rem; + } + + .sg-neu-base { + position: relative; + background: var(--surface); + border-radius: var(--radius-card); + padding: 2rem; + overflow: hidden; + } + + .sg-neu-base::after { + content: ""; + position: absolute; + inset: 0; + border-radius: inherit; + background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); + background-size: 128px 128px; + opacity: 0.35; + mix-blend-mode: overlay; + pointer-events: none; + } + + .sg-neu-row { + display: flex; + gap: 1rem; + justify-content: center; + position: relative; + z-index: 1; + }