-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.html
149 lines (134 loc) · 3.32 KB
/
main.html
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>메인페이지</title>
</head>
<!--css 파일-->
<style>
body {
font-family: "Noto Sans KR", sans-serif;
align-items: center;
background-color: #faf9f5;
margin: 0;
display: flex;
justify-content: center;
height: 100vh;
}
.main-form {
width: 390px;
height: 844px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}
.header {
padding-top: 70px;
align-items: center;
justify-content: center;
}
#text1 {
font-size: 30px;
font-weight: 600;
text-align: center;
color: #4b2a0b;
}
#text2 {
font-size: 12px;
font-weight: 600;
text-align: center;
color: #885c33;
}
.make2 {
height: 480px;
display: flex;
justify-content: space-between;
width: 100%;
margin-top: 10px;
}
.pepero-show {
height: 480px;
display: flex;
margin-left: 60px;
width: 100%;
margin-top: 40px;
}
.pepero {
margin-left: -10px;
}
#main1,
#main2,
#main3,
#main4,
#main5 {
margin-left: 14px;
filter: drop-shadow(2px 2px 2px #000);
}
.next {
margin-top: -55px;
align-items: center;
}
#make_pepero,
#watch_pepero {
align-items: center;
width: 250px;
height: 50px;
margin-bottom: 10px;
margin-left: 70px;
border-radius: 16px;
border: 1px solid;
}
#make_pepero {
background-color: #401f00;
color: white;
font-size: 15px;
font-weight: 600;
}
#watch_pepero {
background-color: #eaded8;
color: #401f00;
font-size: 15px;
font-weight: 600;
border: none;
}
</style>
<body>
<!--전체 화면을 포함하는 section 박스-->
<section class="main-form">
<!--header를 포함하는 div 태그-->
<div class="header">
<p id="text1">너에게 보내는 빼빼로</p>
<p id="text2">소중한 마음을 익명으로 보내주세요!</p>
</div>
<!--빼빼로를 보여주는 div 태그-->
<div class="pepero-show">
<div class="pepero">
<img src="img/main1.png" id="main1" />
<img src="img/main2.png" id="main2" />
<img src="img/main3.png" id="main3" />
<img src="img/main4.png" id="main4" />
<img src="img/main5.png" id="main5" />
</div>
</div>
<!--버튼으로 옵션을 선택하는 화면을 보여주는 div 태그-->
<div class="next">
<button type="button" id="make_pepero">빼빼로 만들기</button>
<button type="button" id="watch_pepero">빼빼로 보러가기</button>
</div>
</section>
<script type="text/javascript">
document
.getElementById("make_pepero")
.addEventListener("click", function () {
window.location.href = "pepero_make1.html";
});
document
.getElementById("watch_pepero")
.addEventListener("click", function () {
window.location.href = "pepero_list.html";
});
</script>
</body>
</html>