Skip to content

Commit

Permalink
adjust home page to navbar height
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkang-0 committed May 20, 2024
1 parent 86ebe20 commit b1157e0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/app/styles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Image from 'next/image';
import styled from 'styled-components';
import CONFIG from '@/lib/configs';
import COLORS from '@/styles/colors';
import { sans } from '@/styles/fonts';

Expand All @@ -11,7 +12,7 @@ export const PageContainer = styled.div`
export const TitleSection = styled.div`
position: relative;
width: 100%;
height: 100svh;
height: calc(100svh - ${CONFIG.navbarHeight}px);
display: flex;
flex-direction: column;
`;
Expand Down Expand Up @@ -124,7 +125,7 @@ export const ImageBackground = styled.div`
export const ImageContainer = styled.div`
position: absolute;
width: 100%;
height: 100svh;
height: calc(100svh - ${CONFIG.navbarHeight}px);
top: 0;
left: 0;
`;
Expand Down
3 changes: 2 additions & 1 deletion src/components/NavBar/style.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import styled from 'styled-components';
import CONFIG from '@/lib/configs';
import COLORS from '@/styles/colors';
import { sans } from '@/styles/fonts';
import { LinkColored } from '@/styles/text';

export const NavBarContainer = styled.div`
display: flex;
width: 100%;
height: 78px;
height: ${CONFIG.navbarHeight}px;
background: ${COLORS.blueMid};
z-index: 1000;
box-shadow: 0px 4px 7px 0px rgba(0, 0, 0, 0.1);
Expand Down
1 change: 1 addition & 0 deletions src/lib/configs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const CONFIG = {
pageSize: 20,
navbarHeight: 78,
homepage: '/',
onboardingHome: '/onboarding/roles',
settings: '/settings',
Expand Down

0 comments on commit b1157e0

Please sign in to comment.