From 727f6e4853f797a1e880e0e53be2fe9cd40874d8 Mon Sep 17 00:00:00 2001 From: Jon Bell Date: Tue, 9 Apr 2024 15:56:21 +1200 Subject: [PATCH] Better hero layout --- src/app/page.tsx | 5 +- src/components/Header.tsx | 1 - src/components/sections/Hero.tsx | 98 +++++++++++++++++--------------- 3 files changed, 53 insertions(+), 51 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index f1f37bb8..7a289ed0 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -24,10 +24,7 @@ export default function Home() { return ( <>
-
+
diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 86027f2a..e3544b64 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -103,7 +103,6 @@ export function Header({ variant }: { variant?: 'dark' | 'light' }) {
diff --git a/src/components/sections/Hero.tsx b/src/components/sections/Hero.tsx index be06aa8e..a84d68ec 100644 --- a/src/components/sections/Hero.tsx +++ b/src/components/sections/Hero.tsx @@ -16,56 +16,62 @@ import Cal from './hero/Cal' export function Hero({ hero }: LandingPageFragment) { return ( -
- -

- Move fast{' '} - - without - {' '} - breaking things. -

-
- {hero.subtitle.json.content} -
+
+ +
+

+ Move fast{' '} + + without + {' '} + breaking things. +

+
+ {hero.subtitle.json.content} +
-
- - +
+ + +
- -
-

{hero.logosTitle}

- -
    - {[ - [ - { name: 'WeightsBiases', logo: logoWeightsAndBiases }, - { name: 'Vercel', logo: logoVercel }, - { name: 'Metabase', logo: logoMetabase }, - { name: 'Glide', logo: logoGlide }, - { name: 'Code Sandbox', logo: logoCodeSandbox }, - { name: 'React', logo: logoReact }, - { name: 'Apollo GraphQL', logo: logoApolloGraphql } - ] - ].map((group, groupIndex) => ( -
  • -
      - {group.map((company) => ( -
    • - {company.name} -
    • - ))} -
    -
  • - ))} -
- {/* */} +
+
Here is where a testimonial can go.
+
+

{hero.logosTitle}

+
    + {[ + [ + { name: 'WeightsBiases', logo: logoWeightsAndBiases }, + { name: 'Vercel', logo: logoVercel }, + { name: 'Metabase', logo: logoMetabase }, + { name: 'Glide', logo: logoGlide }, + { name: 'Code Sandbox', logo: logoCodeSandbox }, + { name: 'React', logo: logoReact }, + { name: 'Apollo GraphQL', logo: logoApolloGraphql } + ] + ].map((group, groupIndex) => ( +
  • +
      + {group.map((company) => ( +
    • + {company.name} +
    • + ))} +
    +
  • + ))} +
+
+ {/* */}
) }