From adbee9409f1974816a21cc662249cff3ff32f991 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Mon, 9 Jan 2023 11:00:26 +0100 Subject: [PATCH] feat(hero): add company logos --- components/Hero.tsx | 87 ++++++++++++++++++++++------------------ images/logos/digitoo.svg | 1 + images/logos/glami.svg | 1 + 3 files changed, 51 insertions(+), 38 deletions(-) create mode 100644 images/logos/digitoo.svg create mode 100644 images/logos/glami.svg diff --git a/components/Hero.tsx b/components/Hero.tsx index f4b4714..d250cfa 100644 --- a/components/Hero.tsx +++ b/components/Hero.tsx @@ -1,9 +1,27 @@ -import Image from "next/image"; +import Image, { type StaticImageData } from "next/image"; import { Button } from "@/components/Button"; import { Container } from "@/components/Container"; import avatarVojtechMares from "@/images/avatars/vojtech-mares.png"; +import logoGLAMI from "@/images/logos/glami.svg"; +import logoDigitoo from "@/images/logos/digitoo.svg"; + +type Company = { + name: string; + logo: StaticImageData; +} + +type CompanyList = Company[][]; // rows, three items per row + +const companies: CompanyList = [ + [ + { name: 'GLAMI', logo: logoGLAMI }, + { name: 'Digitoo', logo: logoDigitoo }, + ], + // [], // columns for mobile view - 3 items per row +]; + export function Hero() { return ( @@ -42,47 +60,40 @@ export function Hero() { Napište mi email +
{/* mt-36 lg:mt-44 */} +

+ Moji spokojení klienti, přidejte se k nim i Vy. +

+ +
Vojtěch Mareš - - {/*
-

- Trusted by these six companies so far -

-
    - {[ - [ - { name: 'Transistor', logo: logoTransistor }, - { name: 'Tuple', logo: logoTuple }, - { name: 'StaticKit', logo: logoStaticKit }, - ], - [ - { name: 'Mirage', logo: logoMirage }, - { name: 'Laravel', logo: logoLaravel }, - { name: 'Statamic', logo: logoStatamic }, - ], - ].map((group, groupIndex) => ( -
  • -
      - {group.map((company) => ( -
    • - {company.name} -
    • - ))} -
    -
  • - ))} -
-
*/} -
); } diff --git a/images/logos/digitoo.svg b/images/logos/digitoo.svg new file mode 100644 index 0000000..907fa25 --- /dev/null +++ b/images/logos/digitoo.svg @@ -0,0 +1 @@ + diff --git a/images/logos/glami.svg b/images/logos/glami.svg new file mode 100644 index 0000000..3ce48f7 --- /dev/null +++ b/images/logos/glami.svg @@ -0,0 +1 @@ +