From 7c04bda5b77ae753b4bb5bc6a3b336ab8983435d Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Thu, 6 Feb 2025 16:57:16 +0100 Subject: [PATCH] docs: improve mobile layout of landing page --- docs/src/components/feature-box.tsx | 38 +++++++++-------------------- docs/src/pages/index.tsx | 2 +- 2 files changed, 13 insertions(+), 27 deletions(-) diff --git a/docs/src/components/feature-box.tsx b/docs/src/components/feature-box.tsx index 39683b0..f7cefcc 100644 --- a/docs/src/components/feature-box.tsx +++ b/docs/src/components/feature-box.tsx @@ -10,32 +10,18 @@ export default function FeatureBox({ imgLeft?: boolean; }) { return ( -
- {imgLeft ? ( - <> - Feature Image -
-

{title}

-

{description}

-
- - ) : ( - <> -
-

{title}

-

{description}

-
- Feature Image - - )} +
+
+

{title}

+

{description}

+
+ Feature Image
); } diff --git a/docs/src/pages/index.tsx b/docs/src/pages/index.tsx index 87dec12..6e26454 100644 --- a/docs/src/pages/index.tsx +++ b/docs/src/pages/index.tsx @@ -61,7 +61,7 @@ const Home: React.FC = () => {
-

Features

+

Features