From 1d7c230d8609b0e8f65c61c995342eabdc218070 Mon Sep 17 00:00:00 2001 From: Piotr Matyjasik Date: Mon, 20 Mar 2023 18:39:39 +0100 Subject: [PATCH] Fix/mobile view (#94) Co-authored-by: Ryczko --- src/layout/BurgerMenu/BurgerMenu.tsx | 2 +- src/layout/GithubCorner/GithubCorner.tsx | 2 +- src/layout/Logo/Logo.tsx | 2 +- src/layout/Navigation/Navigation.tsx | 11 +++++++++-- src/layout/PageLayout.tsx | 2 +- src/pages/index.tsx | 2 +- src/shared/components/Header/Header.tsx | 2 +- tailwind.config.js | 3 +++ 8 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/layout/BurgerMenu/BurgerMenu.tsx b/src/layout/BurgerMenu/BurgerMenu.tsx index d3e1b53f..aef12d4a 100644 --- a/src/layout/BurgerMenu/BurgerMenu.tsx +++ b/src/layout/BurgerMenu/BurgerMenu.tsx @@ -16,7 +16,7 @@ const BurgerMenu = ({ isOpen, children }: BurgerMenuProps) => { initial="closed" variants={variants} id="burger_menu" - className="flex fixed top-20 left-0 z-10 flex-col justify-center items-center pb-2 w-screen bg-zinc-100 shadow-md lg:hidden" + className="flex fixed top-[70px] left-0 z-10 flex-col justify-center items-center py-2 w-screen bg-zinc-100 shadow-md lg:hidden" > {children} diff --git a/src/layout/GithubCorner/GithubCorner.tsx b/src/layout/GithubCorner/GithubCorner.tsx index 57abbb1c..e9c1afbd 100644 --- a/src/layout/GithubCorner/GithubCorner.tsx +++ b/src/layout/GithubCorner/GithubCorner.tsx @@ -3,7 +3,7 @@ export default function GithubCorner() { diff --git a/src/layout/Logo/Logo.tsx b/src/layout/Logo/Logo.tsx index fc271663..6abbf550 100644 --- a/src/layout/Logo/Logo.tsx +++ b/src/layout/Logo/Logo.tsx @@ -11,7 +11,7 @@ function Logo({ classNames = '' }: LogoProps) { diff --git a/src/layout/Navigation/Navigation.tsx b/src/layout/Navigation/Navigation.tsx index 94bc6aa3..42386862 100644 --- a/src/layout/Navigation/Navigation.tsx +++ b/src/layout/Navigation/Navigation.tsx @@ -35,7 +35,11 @@ function Navigation() {