-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
137 lines (117 loc) · 2.03 KB
/
style.css
File metadata and controls
137 lines (117 loc) · 2.03 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
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
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
scrollbar-gutter: stable;
}
/* ===== 라이트 ===== */
body {
margin: 0;
padding-top: 80px;
background: #f5f7fa;
color: #111;
font-family: Arial, sans-serif;
transition: background 0.25s ease, color 0.25s ease;
}
/* ===== 다크 ===== */
body.dark {
background: #0d1117;
color: #c9d1d9;
}
/* ===== NAV ===== */
nav {
position: fixed;
top: 0;
width: 100%;
padding: 16px 40px;
display: flex;
align-items: center;
background: #ffffff;
z-index: 1000;
transition: background 0.25s ease;
}
body.dark nav {
background: #0b0f14;
}
.logo {
font-weight: bold;
font-size: 18px;
}
.menu {
display: flex;
gap: 24px;
margin-left: 40px;
}
nav a {
color: inherit;
text-decoration: none;
font-weight: 500;
}
/* ===== 버튼 (심플 & 세련) ===== */
.links {
margin-left: auto;
display: flex;
align-items: center;
gap: 10px;
}
.toggle-btn {
padding: 6px 14px;
border-radius: 999px;
border: 1px solid currentColor;
background: transparent;
color: inherit;
font-size: 13px;
cursor: pointer;
transition: background 0.2s ease, color 0.2s ease;
}
.toggle-btn:hover {
background: rgba(0,0,0,0.08);
}
body.dark .toggle-btn:hover {
background: rgba(255,255,255,0.1);
}
/* ===== 아이콘 ===== */
.icon {
width: 32px;
height: 32px;
object-fit: contain;
transition: transform 0.2s ease;
}
.icon:hover {
transform: scale(1.15);
}
/* ===== 섹션 ===== */
section {
padding: 100px 30px;
max-width: 900px;
margin: auto;
}
.hero {
text-align: center;
padding-top: 120px;
}
/* ===== 카드 ===== */
.cards {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
}
.card {
background: #ffffff;
color: #111;
border-radius: 12px;
padding: 20px;
width: 220px;
text-align: center;
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.dark .card {
background: #161b22;
color: #c9d1d9;
}
.card:hover {
transform: translateY(-8px);
box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}