-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain3.css
256 lines (226 loc) · 5.46 KB
/
main3.css
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
/* 뒤로가기 버튼 */
#back-btn {
position: absolute;
top: 20px;
left: 20px;
font-size: 20px;
padding: 10px 20px;
background-color: #4eb7e4;;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#back-btn:hover {
background-color: #60accc;
}
/* 저장 버튼 */
.save-button {
text-align: center;
}
#saveButton {
position: absolute;
top: 20px;
right: 20px;
font-size: 20px;
padding: 10px 20px;
background-color: #4eb7e4;;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#saveButton:hover {
background-color: #60accc;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f2f2f2;
position: relative;
}
.travel-type {
text-align: center;
background-color: #ffffff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
label {
margin: 0 10px;
font-size: 18px;
cursor: pointer;
}
#selectedType {
margin-top: 20px;
font-weight: bold;
color: #333;
}
/* 여행 기간 선택 */
.travel-period {
text-align: center;
background-color: #ffffff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
margin-top: 20px;
}
input[type="date"] {
font-size: 18px;
padding: 5px;
width: 130px;
border: 1px solid #ccc;
border-radius: 5px;
text-align: center;
}
input[type="date"]::placeholder {
color: #aaa;
font-style: italic;
}
input[type="date"]:focus {
outline: none;
border-color: #4eb7e4;
}
.travel-location {
text-align: center;
background-color: #ffffff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
margin-top: 20px; /* 상단 요소와의 간격 */
}
select {
font-size: 18px;
padding: 5px;
width: 200px;
border: 1px solid #ccc;
border-radius: 5px;
text-align: center;
}
select:focus {
outline: none;
border-color: #4eb7e4;
}
.travel-companions {
text-align: center;
background-color: #ffffff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
margin-top: 20px; /* 상단 요소와의 간격 */
}
#companionList input[type="text"] {
display: block;
margin: 10px auto;
padding: 5px;
font-size: 16px;
width: 80%;
max-width: 300px;
border: 1px solid #ccc;
border-radius: 5px;
}
#addCompanionBtn {
font-size: 20px;
padding: 5px 10px;
margin-top: 10px;
background-color: #4eb7e4;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#addCompanionBtn:hover {
background-color: #60accc;
}
/* 한 줄 후기 입력 스타일 */
.travel-review {
text-align: center;
background-color: #ffffff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
margin-top: 20px; /* 상단 요소와의 간격 */
}
#reviewInput {
width: 80%;
max-width: 500px;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 5px;
text-align: center;
}
#reviewInput::placeholder {
color: #aaa;
font-style: italic;
}
#previewContainer {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px; /* 이미지 간격 */
margin-top: 10px;
width: 100%; /* 섹션의 폭에 맞게 */
height: 120px; /* 크기를 작게 조정 */
overflow-y: auto; /* 이미지가 많을 경우 스크롤 가능 */
padding: 5px; /* 내부 여백 */
box-sizing: border-box;
border: 1px solid #ccc; /* 경계선 추가 (선택 사항) */
border-radius: 5px; /* 박스 모서리 둥글게 */
background-color: #f9f9f9; /* 박스 배경색 */
}
/* 사진 업로드 섹션 */
.photo-upload-section {
width: 100%;
height: 100%; /* 다른 기능들과 같은 .feature-box 크기 유지 */
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}
/* 미리보기 이미지 스타일 */
#previewContainer img {
width: 80px;
height: 80px;
object-fit: cover; /* 이미지 비율 유지하며 크기 맞춤 */
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
#previewContainer img:hover {
transform: scale(1.1); /* 호버 시 확대 */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* 전체 상자 통일 크기 */
.feature-box {
width: 200px; /* 고정된 폭 */
height: 200px; /* 고정된 높이 */
background-color: #ffffff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
margin: 10px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
}
/* 레이아웃 그리드 설정 */
.container {
display: grid;
padding-top: 30px;
transform: translateY(30px);
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
gap: 20px;
max-width: 1000px; /* 최대 폭 */
margin: auto;
}