-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi2.css
More file actions
77 lines (66 loc) · 1.41 KB
/
api2.css
File metadata and controls
77 lines (66 loc) · 1.41 KB
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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
header {
background-color: #4CAF50;
color: white;
padding: 20px;
text-align: center;
}
header input, header select {
margin-top: 10px;
padding: 8px;
font-size: 16px;
}
main {
display: flex;
justify-content: space-between;
padding: 20px;
gap: 20px;
}
.country-list {
display: flex;
flex-wrap: wrap;
gap: 20px;
flex: 1; /* 왼쪽 리스트에 충분한 공간 할당 */
}
.country-card {
background-color: white;
border-radius: 10px;
width: 200px;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
cursor: pointer;
text-align: center;
transition: transform 0.2s ease; /* 클릭 시 애니메이션 효과 */
}
.country-card:hover {
transform: scale(1.05); /* hover 시 크기 증가 */
}
.country-card img {
width: 100%;
height: auto;
border-radius: 10px;
}
.country-card h3 {
font-size: 18px;
margin: 10px 0;
}
.country-detail {
padding: 20px;
background-color: white;
width: 350px; /* 오른쪽 영역에 일정 너비 할당 */
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
flex-shrink: 0; /* 오른쪽 영역이 줄어들지 않도록 설정 */
}
.country-detail h2 {
font-size: 24px;
margin-bottom: 10px;
}
.country-detail p {
font-size: 18px;
}