-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
320 lines (271 loc) · 5.47 KB
/
styles.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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
/* Global */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: "Oswald", sans-serif;
/* Pattern from https://www.heropatterns.com/ */
background-color: #000000;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='152' height='152' viewBox='0 0 152 152'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='temple' fill='%23130b70' fill-opacity='0.4'%3E%3Cpath d='M152 150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2 0v-28h-8v20h-20v8h28zM82 30v18h18V30H82zm20 18h20v20h18V30h-20V10H82v18h20v20zm0 2v18h18V50h-18zm20-22h18V10h-18v18zm-54 92v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20 22H10v18h18v-18zm54 0v18h38v-20h20V82h-18v20h-20v20H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20 40v-18h18v18h-18zM30 0h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20 48h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30 50h18v18H30V50zm-2-40H10v18h18V10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
color: #1e272e;
color: #ffffff;
font-size: 16px;
}
a {
color: #ffffff;
text-decoration: none;
}
ul {
list-style: none;
}
.container {
width: 90%;
margin: auto;
}
/* Navigation */
.nav-main {
font-size: 17px;
display: flex;
justify-content: space-between;
align-items: center;
height: 60px;
padding: 20px 0;
}
.nav-brand {
width: 55px;
display: flex;
align-items: center;
text-align: center;
}
/* Navbar Left */
.nav-main ul {
display: flex;
}
.nav-main ul li {
padding: 10px;
}
.nav-main ul li a {
padding: 2px;
}
.nav-main ul li a:hover {
border-bottom: 2px solid #ffffff;
}
.nav-main ul.nav-menu {
flex: 1;
margin-left: 20px;
}
hr {
margin: 10px 0;
}
/* Responsive Button */
.menu-btn {
cursor: pointer;
position: absolute;
top: 15px;
right: 30px;
z-index: 2;
display: none;
}
/* SHOWCASE */
.showcase {
width: 100%;
height: 570px;
background: url("./img/showcase2.jpg") no-repeat center center/cover;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
justify-content: flex-end;
padding: 30px;
margin-bottom: 20px;
color: #ffffff;
}
.btn {
cursor: pointer;
display: inline-block;
border: 0;
font-weight: bold;
padding: 10px 20px;
background: #262626;
color: #ffffff;
font-size: 15px;
border: 1px solid #ffffff;
}
.btn:hover {
opacity: 0.9;
}
.showcase h2,
.showcase p {
margin-bottom: 10px;
}
.showcase .btn {
margin-top: 20px;
}
/* News Cards */
.news-cards {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 25px;
margin: 70px 0;
}
.news-cards img {
width: 100%;
height: 180px;
}
.news-cards h3 {
font-size: 20px;
margin: 10px 0;
}
.news-cards a {
padding: 10px 0;
color: #f2f2f2;
text-transform: uppercase;
display: inline-block;
font-weight: bold;
}
.news-cards a:hover {
text-decoration: underline;
}
/* CARDS BANNER ONE */
.cards-banner-one {
width: 100%;
height: 350px;
background: url("./img/tech-red.jpg");
margin-bottom: 40px;
}
.cards-banner-one .content {
width: 40%;
padding: 90px 0 0 30px;
color: #ffffff;
}
.cards-banner-one p,
.cards-banner-two p {
margin: 10px 0 20px 0;
}
/* CARDS BANNER TWO*/
.cards-banner-two {
width: 100%;
height: 350px;
background: url("./img/image-five.jpg") no-repeat center center/cover;
}
.cards-banner-two .content {
width: 50%;
padding: 100px 0 0 30px;
}
/* Follow */
.social {
margin: 50px;
}
.social p {
text-align: center;
font-size: 30px;
margin-bottom: 20px;
}
.links {
display: flex;
align-items: center;
justify-content: center;
}
.links a {
margin: 0 30px;
}
.links a i {
font-size: 3rem;
}
/* Links */
.footer-links {
background: #2f3640;
color: #616161;
font-size: 12px;
padding: 35px 0;
}
.footer-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
align-items: flex-start;
justify-content: center;
}
.footer-container ul {
margin: 0 auto;
}
.footer-links li {
line-height: 2.8;
}
.footer {
background: #2f3640;
color: #616161;
font-size: 12px;
padding: 20px 0;
text-align: center;
font-size: 1rem;
padding-bottom: 20px;
}
/* Mobil */
@media (max-width: 700px) {
.menu-btn {
display: block;
}
.menu-btn:hover {
opacity: 0.5;
}
.nav-main ul.nav-menu {
display: block;
position: absolute;
top: 0;
left: 0;
background: #2f3640;
width: 50%;
height: 100%;
border-right: #cccccc 1px solid;
opacity: 0.9;
padding: 30px;
transform: translateX(-500px);
transition: transform 0.5s ease-in-out;
}
.nav-main ul.nav-menu li {
padding: 20px;
border-bottom: #cccccc solid 1px;
font-size: 14px;
}
.nav-main ul.nav-menu li:last-child {
border-bottom: 0;
}
.nav-main ul.nav-menu.show {
transform: translateX(-20px);
}
.nav-main ul.nav-menu-right {
margin-right: 50px;
}
.news-cards {
grid-template-columns: repeat(2, 1fr);
}
.cards-banner-one .content,
.cards-banner-two .content {
width: 80%;
}
.footer-links .footer-container {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 500px) {
.news-cards {
grid-template-columns: 1fr;
}
.news-cards img {
height: 250px;
}
.cards-banner-one .content,
.cards-banner-two .content {
width: 100%;
padding: 60px 20px;
}
.footer-links .footer-container {
grid-template-columns: repeat(2, 1fr);
}
.footer-links .footer-container ul {
text-align: center;
}
}