From f83af4b78a8c1a8e008ac08c1dc5c78c4199c1d1 Mon Sep 17 00:00:00 2001 From: Goutam-04 Date: Sun, 14 Jul 2024 15:00:26 +0530 Subject: [PATCH] Enhance feature cards with Infima for consistent styling --- website/src/components/HomepageFeatures/index.js | 10 +++++----- .../components/HomepageFeatures/styles.module.css | 15 +++++++++++---- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/website/src/components/HomepageFeatures/index.js b/website/src/components/HomepageFeatures/index.js index 7e3057d1..2b1050b1 100644 --- a/website/src/components/HomepageFeatures/index.js +++ b/website/src/components/HomepageFeatures/index.js @@ -102,14 +102,14 @@ const FeatureList = [ } ]; -function Feature({Svg, title, description}) { +function Feature({ Svg, title, description }) { return (
-
-

+
+
- {title} -

+

{title}

+

{description}

diff --git a/website/src/components/HomepageFeatures/styles.module.css b/website/src/components/HomepageFeatures/styles.module.css index d5cc3815..febf3346 100644 --- a/website/src/components/HomepageFeatures/styles.module.css +++ b/website/src/components/HomepageFeatures/styles.module.css @@ -4,17 +4,24 @@ padding: 2rem 0; width: 100%; } +.featureCard { + height: 98%; +} +.headline { + display: flex; + align-items: center; +} .featureSvg { height: 32px; width: 32px; margin-right: 1rem; } -[data-theme='light'] .featureSvg { +[data-theme="light"] .featureSvg { fill: #000000; } -[data-theme='dark'] .featureSvg { - fill: #FFFFFF; -} \ No newline at end of file +[data-theme="dark"] .featureSvg { + fill: #ffffff; +}