Skip to content

Commit

Permalink
Merge pull request #127 from LEEJW1953/fe-header
Browse files Browse the repository at this point in the history
[Feat] 헤더 상단 고정 및 z-index 수정
  • Loading branch information
LEEJW1953 authored Nov 21, 2023
2 parents e3aaa58 + 25b9eab commit cdeb1fe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/frontend/src/components/commons/Header/index.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ import { style } from '@vanilla-extract/css';
import { vars, fontStyle } from '@/styles';

export const container = style({
position: 'fixed',
top: 0,
left: 0,
right: 0,
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
background: vars.color.grayscaleWhite,
borderBottom: `1px solid ${vars.color.grayscale100}`,
zIndex: '999',
});

export const header = style({
Expand Down
5 changes: 5 additions & 0 deletions app/frontend/src/components/commons/Layout/index.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { style } from '@vanilla-extract/css';

export const container = style({
paddingTop: '8.5rem',
});
5 changes: 4 additions & 1 deletion app/frontend/src/components/commons/Layout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { Outlet } from 'react-router-dom';

import * as styles from './index.css';
import { Header } from '../Header';

export function Layout() {
return (
<>
<Header />
<Outlet />
<div className={styles.container}>
<Outlet />
</div>
</>
);
}

0 comments on commit cdeb1fe

Please sign in to comment.