From 90598e241ddc1b1e1a5298da5fb97652601964de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20B=C3=BChler?= Date: Mon, 25 Apr 2022 01:23:58 +0200 Subject: [PATCH] - improve styling - fix ios logo --- package.json | 1 + src/Components/Cards/Team/index.tsx | 4 +- src/Components/Layout/index.tsx | 17 ++- src/Components/Logo/index.tsx | 74 ++++++++---- src/Sections/TeamGenerator/index.tsx | 96 ++++++++++++---- src/Styles/customTheme.ts | 162 +++++++++++++++++++-------- yarn.lock | 10 +- 7 files changed, 271 insertions(+), 93 deletions(-) diff --git a/package.json b/package.json index 8faf16f..c12f719 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "prepare": "husky install" }, "dependencies": { + "@chakra-ui/icons": "^1.1.7", "@chakra-ui/react": "^1.8.8", "@emotion/react": "^11.9.0", "@emotion/styled": "^11.8.1", diff --git a/src/Components/Cards/Team/index.tsx b/src/Components/Cards/Team/index.tsx index 4947527..f830cff 100644 --- a/src/Components/Cards/Team/index.tsx +++ b/src/Components/Cards/Team/index.tsx @@ -24,7 +24,9 @@ const CardTeam: VFC = ({ players, index }) => { Team {index + 1} {players.map((player, index) => ( - {player} + + {player} + ))} ); diff --git a/src/Components/Layout/index.tsx b/src/Components/Layout/index.tsx index e68c3c9..e7a9c35 100644 --- a/src/Components/Layout/index.tsx +++ b/src/Components/Layout/index.tsx @@ -1,4 +1,5 @@ -import { Box, Flex } from "@chakra-ui/react"; +import { Box, chakra, Flex } from "@chakra-ui/react"; +import { isValidMotionProp, motion } from "framer-motion"; import type { ReactNode } from "react"; import Footer from "./Footer"; @@ -9,15 +10,25 @@ type LayoutProps = { children: ReactNode; }; +const ContentContainer = chakra(motion.main, { + shouldForwardProp: (prop) => isValidMotionProp(prop) || prop === "children", +}); + const Layout = ({ children }: LayoutProps) => { return (
- + {children} - +