Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | import React from 'react';
import { styled } from 'styled-components';
import Logo from '@lib/assets/images/header_logo.png';
import Image from 'next/image';
import { useRouter } from 'next/navigation';
export default function DefaultLayout({ children }: React.PropsWithChildren) {
const router = useRouter();
return (
<StyledLayout>
<StyledHeader>
<LogoWrap onClick={() => router.push('/')}>
<Image src={Logo} alt="main logo" />
</LogoWrap>
<div>미리 해보기</div>
</StyledHeader>
<div>{children}</div>
{/* <StyleFloatingBanner> */}
<FloatingBanner>
{/* <Background /> */}
<button type="button" onClick={() => router.push('/')}>
신청하기 페이지로 이동
</button>
</FloatingBanner>
{/* </StyleFloatingBanner> */}
<StyledFooter />
</StyledLayout>
);
}
const StyledLayout = styled.div`
box-sizing: border-box;
position: relative;
min-width: 100vw;
min-height: 100vh;
background-color: #fff;
`;
const StyledHeader = styled.header`
box-sizing: border-box;
display: flex;
justify-content: space-between;
align-items: center;
height: 83px;
width: 100%;
padding-left: 20px;
padding-right: 20px;
z-index: 101;
background-color: #fff6ee !important;
@media screen and (max-width: 1010px) {
padding-left: 15px !important;
padding-right: 15px !important;
}
`;
const LogoWrap = styled.div`
img {
width: 135.209px;
height: 100%;
}
`;
const StyledFooter = styled.footer`
// position: relative;
background-color: #272727;
color: #6a6a6a;
font-size: 12px;
background-size: cover;
background-repeat: no-repeat;
/* background-position: ; */
text-align: center;
height: 300px;
`;
const FloatingBanner = styled.div`
z-index: 100;
background-color: rgba(0, 0, 0, 0.3);
position: fixed !important;
bottom: 0 !important;
width: 100%;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
/* z-index: 10; */
button {
position: absolute;
width: 189.766px;
height: 42px;
border: none;
box-shadow: none;
padding: 0;
overflow: visible;
cursor: pointe;
border-radius: 20px;
background-color: rgb(166, 37, 36);
color: white;
}
`;
|