Update style.css
Browse files
style.css
CHANGED
@@ -1,168 +1,176 @@
|
|
1 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
body {
|
3 |
font-family: Arial, sans-serif;
|
|
|
4 |
margin: 0;
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
transition: all 0.3s ease; /* Haluskan transisi untuk perubahan */
|
9 |
}
|
10 |
|
11 |
-
/*
|
12 |
body.dark-mode {
|
13 |
-
background-color: #
|
14 |
-
color: white;
|
15 |
}
|
16 |
|
17 |
-
/* Header */
|
18 |
header {
|
19 |
-
background:
|
20 |
-
padding: 15px;
|
21 |
color: white;
|
|
|
22 |
text-align: center;
|
23 |
-
|
24 |
}
|
25 |
|
26 |
-
header
|
27 |
-
|
28 |
}
|
29 |
|
30 |
header nav ul {
|
31 |
display: flex;
|
32 |
justify-content: center;
|
|
|
33 |
list-style: none;
|
34 |
-
padding: 0;
|
35 |
-
}
|
36 |
-
|
37 |
-
header nav ul li {
|
38 |
-
margin: 0 15px;
|
39 |
}
|
40 |
|
41 |
header nav ul li a {
|
42 |
color: white;
|
43 |
text-decoration: none;
|
44 |
-
font-
|
45 |
-
transition: color 0.3s ease;
|
46 |
}
|
47 |
|
48 |
-
header nav ul li a:hover {
|
49 |
-
color: #ffcc00; /* Warna saat hover */
|
50 |
-
}
|
51 |
-
|
52 |
-
/* Tombol Mode Gelap */
|
53 |
#toggleDarkMode {
|
|
|
|
|
|
|
54 |
background: none;
|
55 |
border: none;
|
56 |
-
color: white;
|
57 |
font-size: 1.5rem;
|
58 |
cursor: pointer;
|
59 |
-
padding: 5px 10px;
|
60 |
-
margin-left: 20px;
|
61 |
-
}
|
62 |
-
|
63 |
-
#toggleDarkMode:hover {
|
64 |
-
background-color: rgba(0, 0, 0, 0.1);
|
65 |
-
border-radius: 5px;
|
66 |
}
|
67 |
|
68 |
/* Section */
|
69 |
section {
|
70 |
-
padding:
|
71 |
-
|
72 |
-
|
73 |
-
|
|
|
|
|
74 |
}
|
75 |
|
76 |
-
/* Kotak Project */
|
77 |
.project {
|
78 |
-
|
79 |
-
padding: 20px;
|
80 |
-
margin: 10px auto;
|
81 |
-
max-width: 500px;
|
82 |
-
border-radius: 10px;
|
83 |
-
background: #f9f9f9;
|
84 |
-
transition: transform 0.3s ease, background-color 0.3s ease; /* Tambahkan transisi untuk background */
|
85 |
}
|
86 |
|
87 |
-
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
89 |
}
|
90 |
|
91 |
-
/*
|
92 |
-
|
93 |
-
|
94 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
|
97 |
-
#
|
98 |
-
|
99 |
-
|
100 |
-
border:
|
|
|
101 |
border-radius: 5px;
|
102 |
-
|
103 |
-
transition: all 0.3s ease;
|
104 |
}
|
105 |
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
color: white; /* Ubah warna teks menjadi putih */
|
110 |
-
border-color: #6200ea; /* Tetap pertahankan border berwarna ungu */
|
111 |
}
|
112 |
|
113 |
-
|
114 |
-
|
115 |
-
padding:
|
116 |
-
background: #
|
117 |
-
|
|
|
118 |
}
|
119 |
|
120 |
-
/*
|
121 |
-
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
123 |
}
|
124 |
|
125 |
-
|
126 |
-
|
127 |
}
|
128 |
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
}
|
134 |
|
135 |
-
/*
|
136 |
@media (max-width: 768px) {
|
|
|
|
|
|
|
|
|
137 |
header nav ul {
|
|
|
|
|
|
|
|
|
|
|
138 |
flex-direction: column;
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
}
|
140 |
|
141 |
-
|
142 |
-
|
143 |
}
|
144 |
|
145 |
section {
|
146 |
-
padding:
|
147 |
}
|
148 |
|
149 |
-
|
150 |
-
|
151 |
-
margin: 10px;
|
152 |
}
|
153 |
|
154 |
-
|
155 |
-
font-size:
|
|
|
156 |
}
|
157 |
-
}
|
158 |
-
|
159 |
-
/* Efek Halus untuk Tombol dan Links */
|
160 |
-
button, a {
|
161 |
-
cursor: pointer;
|
162 |
-
transition: all 0.3s ease;
|
163 |
-
}
|
164 |
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
}
|
|
|
1 |
+
/* Reset */
|
2 |
+
* {
|
3 |
+
margin: 0;
|
4 |
+
padding: 0;
|
5 |
+
box-sizing: border-box;
|
6 |
+
}
|
7 |
+
|
8 |
body {
|
9 |
font-family: Arial, sans-serif;
|
10 |
+
line-height: 1.6;
|
11 |
margin: 0;
|
12 |
+
background-color: white;
|
13 |
+
color: black;
|
14 |
+
transition: background-color 0.3s, color 0.3s;
|
|
|
15 |
}
|
16 |
|
17 |
+
/* Dark mode */
|
18 |
body.dark-mode {
|
19 |
+
background-color: #121212;
|
20 |
+
color: white;
|
21 |
}
|
22 |
|
|
|
23 |
header {
|
24 |
+
background-color: purple;
|
|
|
25 |
color: white;
|
26 |
+
padding: 1rem;
|
27 |
text-align: center;
|
28 |
+
position: relative;
|
29 |
}
|
30 |
|
31 |
+
header h1 {
|
32 |
+
font-size: 1.5rem;
|
33 |
}
|
34 |
|
35 |
header nav ul {
|
36 |
display: flex;
|
37 |
justify-content: center;
|
38 |
+
gap: 1rem;
|
39 |
list-style: none;
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
|
42 |
header nav ul li a {
|
43 |
color: white;
|
44 |
text-decoration: none;
|
45 |
+
font-weight: bold;
|
|
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
|
|
48 |
#toggleDarkMode {
|
49 |
+
position: absolute;
|
50 |
+
top: 1rem;
|
51 |
+
right: 1rem;
|
52 |
background: none;
|
53 |
border: none;
|
|
|
54 |
font-size: 1.5rem;
|
55 |
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
/* Section */
|
59 |
section {
|
60 |
+
padding: 1.5rem;
|
61 |
+
}
|
62 |
+
|
63 |
+
#skills ul {
|
64 |
+
list-style-type: disc;
|
65 |
+
margin-left: 1.5rem;
|
66 |
}
|
67 |
|
|
|
68 |
.project {
|
69 |
+
margin-bottom: 1rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
|
72 |
+
/* Form */
|
73 |
+
form input, form textarea, form button {
|
74 |
+
width: 100%;
|
75 |
+
margin: 0.5rem 0;
|
76 |
+
padding: 0.7rem;
|
77 |
+
border: 1px solid #ccc;
|
78 |
+
border-radius: 5px;
|
79 |
}
|
80 |
|
81 |
+
/* Chat Footer */
|
82 |
+
.chat-footer {
|
83 |
+
position: fixed;
|
84 |
+
bottom: 0;
|
85 |
+
left: 0;
|
86 |
+
width: 100%;
|
87 |
+
background: purple;
|
88 |
+
color: white;
|
89 |
+
text-align: center;
|
90 |
+
padding: 1rem;
|
91 |
}
|
92 |
|
93 |
+
#chatButton {
|
94 |
+
background: white;
|
95 |
+
color: purple;
|
96 |
+
border: none;
|
97 |
+
padding: 0.5rem 1rem;
|
98 |
border-radius: 5px;
|
99 |
+
cursor: pointer;
|
|
|
100 |
}
|
101 |
|
102 |
+
#chatbox {
|
103 |
+
display: none;
|
104 |
+
margin-top: 1rem;
|
|
|
|
|
105 |
}
|
106 |
|
107 |
+
#chatbox.active {
|
108 |
+
display: block;
|
109 |
+
padding: 1rem;
|
110 |
+
background-color: #f4f4f4;
|
111 |
+
border-radius: 5px;
|
112 |
+
color: black;
|
113 |
}
|
114 |
|
115 |
+
/* Burger Menu for Mobile */
|
116 |
+
.burger-menu {
|
117 |
+
display: none;
|
118 |
+
font-size: 1.5rem;
|
119 |
+
cursor: pointer;
|
120 |
+
position: absolute;
|
121 |
+
top: 1rem;
|
122 |
+
left: 1rem;
|
123 |
}
|
124 |
|
125 |
+
header nav ul {
|
126 |
+
flex-wrap: wrap;
|
127 |
}
|
128 |
|
129 |
+
header nav ul.active {
|
130 |
+
display: block;
|
131 |
+
flex-direction: column;
|
132 |
+
text-align: center;
|
133 |
}
|
134 |
|
135 |
+
/* Media Queries */
|
136 |
@media (max-width: 768px) {
|
137 |
+
header h1 {
|
138 |
+
font-size: 1.2rem;
|
139 |
+
}
|
140 |
+
|
141 |
header nav ul {
|
142 |
+
display: none;
|
143 |
+
}
|
144 |
+
|
145 |
+
header nav ul.active {
|
146 |
+
display: flex;
|
147 |
flex-direction: column;
|
148 |
+
background-color: purple;
|
149 |
+
position: absolute;
|
150 |
+
top: 3.5rem;
|
151 |
+
left: 0;
|
152 |
+
width: 100%;
|
153 |
+
padding: 1rem 0;
|
154 |
}
|
155 |
|
156 |
+
.burger-menu {
|
157 |
+
display: block;
|
158 |
}
|
159 |
|
160 |
section {
|
161 |
+
padding: 1rem;
|
162 |
}
|
163 |
|
164 |
+
#skills ul {
|
165 |
+
margin-left: 1rem;
|
|
|
166 |
}
|
167 |
|
168 |
+
.chat-footer {
|
169 |
+
font-size: 0.9rem;
|
170 |
+
padding: 0.8rem;
|
171 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
+
#chatButton {
|
174 |
+
font-size: 0.9rem;
|
175 |
+
}
|
176 |
}
|