Skip to content

Commit e81aa75

Browse files
committed
add main content
1 parent e17b206 commit e81aa75

27 files changed

+304
-21
lines changed

assets/css/main.css

+137-4
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,21 @@ html, body {
1616
'aside main';
1717
}
1818

19-
.main {
20-
grid-area: main;
19+
@media(max-width: 1108px) {
20+
.container {
21+
grid-template-columns: 1fr;
22+
grid-template-areas:
23+
'header'
24+
'main';
25+
}
2126
}
2227

2328
/*header*/
2429
.header {
30+
width: 100%;
31+
background-color: #fff;
32+
height: 56px;
33+
position: fixed;
2534
grid-area: header;
2635
display: flex;
2736
padding: 0 16px;
@@ -112,13 +121,23 @@ html, body {
112121
background-color: #f5f5f5;
113122
}
114123

124+
@media(max-width: 1108px) {
125+
.aside {
126+
display: none;
127+
}
128+
}
129+
130+
.aside:hover {
131+
overflow-y: auto;
132+
}
133+
115134
.section-list {
116135
border-bottom: 1px solid #eeeeee;
117136
}
118137

119138
.section-list__title {
120139
text-transform: uppercase;
121-
font-size: 14px;;
140+
font-size: 14px;
122141
color: #a0a0a0;
123142
padding: 8px 24px;
124143
margin: 0;
@@ -138,16 +157,130 @@ html, body {
138157
align-items: center;
139158
}
140159

141-
.list__item__img {
160+
.list__item__icon {
142161
width: 24px;
143162
height: 24px;
144163
margin-right: 27px;
145164
}
146165

166+
.list__item__img {
167+
width: 24px;
168+
height: 24px;
169+
margin-right: 27px;
170+
border-radius: 50%;
171+
}
172+
147173
.list__item__text {
148174
width: 117px;
149175
margin-right: 24px;
150176
font-family: 'Roboto', sans-serif;
151177
font-size: 14px;
152178
color: #212121;
179+
font-weight: 400;
180+
}
181+
182+
/*video*/
183+
184+
.main {
185+
background-color: #fafafa;
186+
grid-area: main;
187+
display: flex;
188+
flex-wrap: wrap;
189+
align-content: flex-start;
190+
justify-content: center;
191+
}
192+
193+
.main__advertising {
194+
background-color: #fff;
195+
margin: 40px 0;
196+
width: 100%;
197+
max-width: 850px;
198+
height: 250px;
199+
padding: 15px;
200+
}
201+
202+
/*section*/
203+
.video-section {
204+
background-color: #fff;
205+
width: 100%;
206+
max-width: 850px;
207+
padding: 15px;
208+
}
209+
210+
/*video-list*/
211+
.video-list {
212+
padding: 10px 0;
213+
border-bottom: 1px solid #eeeeee;
214+
display: flex;
215+
flex-wrap: wrap;
216+
}
217+
218+
.video-list__title {
219+
font-family: 'Roboto', sans-serif;
220+
font-size: 16px;
221+
color: #212121;
222+
font-weight: 500;
223+
margin: 0 2px;
224+
width: 100%;
225+
padding: 10px 0;
226+
}
227+
228+
/*card*/
229+
.card {
230+
width: 25%;
231+
padding: 5px 2px;
232+
margin-bottom: 24px;
233+
}
234+
235+
@media(max-width: 780px) {
236+
.card {
237+
width: 33.33%
238+
}
239+
}
240+
241+
@media(max-width: 590px) {
242+
.card {
243+
width: 50%
244+
}
245+
}
246+
247+
@media(max-width: 450px) {
248+
.card {
249+
width: 100%
250+
}
251+
}
252+
253+
.card__video {
254+
width: 100%;
255+
}
256+
257+
.card__title {
258+
margin: 0;
259+
font-size: 14px;
260+
color: #1d1d1d;
261+
padding: 10px 8px 0 0;
262+
}
263+
264+
.card__name {
265+
width: 100%;
266+
font-size: 13px;
267+
font-weight: 400;
268+
color: #111111;
269+
padding: 10px 8px 0 0;
270+
}
271+
272+
.card__views {
273+
display: inline-block;
274+
width: 100%;
275+
font-size: 13px;
276+
font-weight: 500;
277+
color: #8f8f8f;
278+
}
279+
280+
.card__published-date {
281+
width: 100%;
282+
display: inline-block;
283+
font-size: 13px;
284+
font-weight: 500;
285+
color: #8f8f8f;
153286
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

assets/img/bazil-js.jpg

12 KB
Loading

assets/img/css-cast-show.jpg

21 KB
Loading

assets/img/favicon_32-vfl8NGn4k.png

1.11 KB
Loading

assets/img/front-in-bh.jpg

12.3 KB
Loading

assets/img/fun-fun-function.jpg

17 KB
Loading

assets/img/gdg-bh.jpg

12.3 KB
Loading

assets/img/js-conf.jpg

12.2 KB
Loading

assets/img/mozila-hacks.jpg

29.2 KB
Loading

assets/img/rachel-andrew.jpg

25.5 KB
Loading

assets/img/v-plus-plus.jpg

13.3 KB
Loading

assets/img/web-school.jpg

13.8 KB
Loading

0 commit comments

Comments
 (0)