From 537bacca38476b9ac99d62ba954e88a974761432 Mon Sep 17 00:00:00 2001 From: Firq Date: Fri, 7 Jul 2023 18:32:14 +0200 Subject: [PATCH] rounded design servants --- src/components/ceCard.astro | 9 ++++----- src/components/servantCard.astro | 14 ++++++++------ src/layouts/baseSection.astro | 3 ++- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/components/ceCard.astro b/src/components/ceCard.astro index f094982..d662313 100644 --- a/src/components/ceCard.astro +++ b/src/components/ceCard.astro @@ -17,7 +17,6 @@ if (mlb === 'false') { ---
-
{name}
{name}
@@ -33,6 +32,7 @@ if (mlb === 'false') { } article { + border-radius: 1.25rem; background-color: var(--c-darkergray); padding: 20px; padding-top: 5px; @@ -44,11 +44,10 @@ if (mlb === 'false') { margin: 0px; display: grid; grid-template-columns: 100%; - grid-template-rows: auto auto 3em; + grid-template-rows: auto 3em; gap: 0px 0px; grid-auto-flow: row; grid-template-areas: - '.' '.' '.'; } @@ -62,6 +61,8 @@ if (mlb === 'false') { } img { + border-radius: 1.5rem; + margin-top: 1rem; display: flex; margin-left: auto; margin-right: auto; @@ -103,8 +104,6 @@ if (mlb === 'false') { } article { width: 10em; - grid-template-columns: auto; - grid-template-rows: auto auto 3em; } .mlbalign { width: 7.5em; diff --git a/src/components/servantCard.astro b/src/components/servantCard.astro index 84931b5..96fddff 100644 --- a/src/components/servantCard.astro +++ b/src/components/servantCard.astro @@ -23,7 +23,6 @@ if (bond10 === 'false') { ---
-
{name}
{name}

Level {level}
@@ -43,7 +42,7 @@ if (bond10 === 'false') { width: 100%; align-items: center; justify-content: center; - font-size: 22px; + font-size: 24px; color: white; max-width: 200px; padding-bottom: 0.3rem; @@ -74,11 +73,14 @@ if (bond10 === 'false') { align-items: center; text-align: center; transition: transform var(--speed) var(--ease); + border-radius: 1.25rem; } article > img { - width: 120px; - height: 120px; + width: 7.5rem; + height: 7.5rem; + border-radius: 2.5rem; + margin-top: 0.75rem; } .subtext { color: white; @@ -97,6 +99,7 @@ if (bond10 === 'false') { top: 95%; left: 0px; right: 0px; + border-radius: 0px 0px 1.25rem 1.25rem; } article:hover .expand-on-hover { @@ -127,8 +130,7 @@ if (bond10 === 'false') { } .bond-ce { - width: 128px; - height: 58px; + height: 3.5rem; } } diff --git a/src/layouts/baseSection.astro b/src/layouts/baseSection.astro index c3d8289..05961a9 100644 --- a/src/layouts/baseSection.astro +++ b/src/layouts/baseSection.astro @@ -36,13 +36,14 @@ const { title } = Astro.props letter-spacing: -1px; color: white; margin-top: 2rem; - margin-bottom: 0; + margin-bottom: 0px; margin-left: auto; margin-right: auto; padding: 0.25rem 1.5rem; border-radius: 0.5rem; max-width: max-content; background-color: var(--c-darkgray); + padding-bottom: 0.5rem; } @media (min-width: 512px) { div {