Skip to content
Snippets Groups Projects
Commit 0322cd73 authored by Minseo Lee's avatar Minseo Lee
Browse files

style: use global var `--header-height`

parent 664a1406
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
.page-container { .page-container {
margin-top: 48px; margin-top: var(--header-height);
height: 100%; height: 100%;
} }
File added
.container { .container {
height: 48px; height: var(--header-height);
width: 100%; width: 100%;
padding: 15px; padding: 15px;
......
...@@ -5,7 +5,7 @@ import type {FC, ReactNode} from "react"; ...@@ -5,7 +5,7 @@ import type {FC, ReactNode} from "react";
interface CartContextType { interface CartContextType {
cartItem: CartItemData | null cartItem: CartItemData | null
setCartItem: (d: CartItemData | null) => any; setCartItem: (d: CartItemData | null) => void;
} }
const CartContext = createContext<CartContextType>({ const CartContext = createContext<CartContextType>({
......
...@@ -30,4 +30,6 @@ a { ...@@ -30,4 +30,6 @@ a {
--fs-3: 12px; --fs-3: 12px;
--fs-4: 16px; --fs-4: 16px;
--fs-5: 20px; --fs-5: 20px;
--header-height: 48px;
} }
File added
.container { .container {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
margin-top: -48px; margin-top: calc(-1*var(--header-height));
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
.container {
width: 100vw;
height: 100vh;
margin-top: calc(-1*var(--header-height));
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 8px;
}
import S from './SignupPage.module.css'; import S from './SignupPage.module.css';
const SignupPage = () => { const SignupPage = () => {
return (<div>SignupPage</div>); return (
<div className={S['container']}>
<input />
<input />
<input />
</div>
);
}; };
export default SignupPage; export default SignupPage;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment