File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { type NextPage } from 'next' ;
2
+ import Image from 'next/image' ;
2
3
import Link from 'next/link' ;
3
4
import { css , type Theme } from '@emotion/react' ;
4
5
@@ -19,6 +20,10 @@ const SurveyBasePage: NextPage = () => {
19
20
< Link href = "/survey/create" css = { linkCss } >
20
21
< Button color = "blue" > 폼 생성하기</ Button >
21
22
</ Link >
23
+
24
+ < div css = { backgroundImageWrapperCss } >
25
+ < Image quality = { 100 } src = "/images/survey/base.webp" alt = "배경" fill objectFit = "cover" />
26
+ </ div >
22
27
</ main >
23
28
24
29
< BottomBar />
@@ -49,3 +54,13 @@ const h1Css = (theme: Theme) => css`
49
54
const linkCss = css `
50
55
text- decor ation: none;
51
56
` ;
57
+
58
+ const backgroundImageWrapperCss = ( theme : Theme ) => css `
59
+ position: absolute;
60
+ z- index: ${ theme . zIndex . belowDefault } ;
61
+ to p: 0;
62
+ left: 0;
63
+
64
+ width: 100%;
65
+ height: 100%;
66
+ ` ;
You can’t perform that action at this time.
0 commit comments