From bd8b413d4035140db16430727845fb9941686d1a Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Wed, 20 Sep 2023 20:26:20 -0700 Subject: Fix projects mobile viewing --- src/components/Card.astro | 204 +++++++++++++++++++++++++--------------------- 1 file changed, 109 insertions(+), 95 deletions(-) (limited to 'src/components/Card.astro') diff --git a/src/components/Card.astro b/src/components/Card.astro index bf0ecf5..efcfaeb 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -1,116 +1,130 @@ -User --- interface Props { - title: string; - body: string; - href: string; - language: string; - languageColor: string; + title: string; + body: string; + href: string; + language: string; + languageColor: string; } const { href, title, body, language, languageColor } = Astro.props; --- \ No newline at end of file + .link-card:is(:hover, :focus-within) h2 { + color: rgb(var(--accent-light)); + } + @media (max-width: 1020px) { + .link-card { + background-color: #fff; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + overflow: hidden; + max-width: 100%; + width: 100%px; + word-wrap: break-word; + } + p { + margin-top: 0.5rem; + margin-bottom: 0; + font-size: 24px; + } + } + -- cgit v1.2.3