diff --git a/README.md b/README.md index 598dc30f..c6a05a42 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # ๐Ÿ‘€ ์ž์‹ ์ด ์›ํ•˜๋Š” ์‚ฌ์ดํŠธ ๋ ˆ์ด์•„์›ƒ ํด๋ก  ์›ํ•˜๋Š” ์‚ฌ์ดํŠธ(ํŽ˜์ด์ง€)๋ฅผ ์ž์œ ๋กญ๊ฒŒ ์„ ํƒํ•˜๊ณ  ๋ ˆ์ด์•„์›ƒ์„ ํด๋ก  ์ฝ”๋”ฉํ•˜์„ธ์š”. -ํ‰์†Œ์— ๋„์ „ํ•ด ๋ณด๊ณ  ์‹ถ์—ˆ๊ฑฐ๋‚˜ ํ˜น์€ ์ž์‹ ์˜ ์ˆ˜์ค€์— ๋งž๋Š” ์‚ฌ์ดํŠธ(ํŽ˜์ด์ง€)๋ฅผ ์„ ํƒํ•˜์„ธ์š”. +ํ‰์†Œ์— ๋„์ „ํ•ด ๋ณด๊ณ  ์‹ถ์—ˆ๊ฑฐ๋‚˜ ํ˜น์€ ์ž์‹ ์˜ ์ˆ˜์ค€์— ๋งž๋Š” ์‚ฌ์ดํŠธ(ํŽ˜์ด์ง€)๋ฅผ ์„ ํƒํ•˜์„ธ์š”. ๊ณผ์ œ ์ˆ˜ํ–‰ ๋ฐ ๋ฆฌ๋ทฐ ๊ธฐ๊ฐ„์€ ๋ณ„๋„ ๊ณต์ง€๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”! ## ๊ณผ์ œ ์ˆ˜ํ–‰ ๋ฐ ์ œ์ถœ ๋ฐฉ๋ฒ• @@ -19,20 +19,25 @@ ## ํ•„์ˆ˜ ์š”๊ตฌ์‚ฌํ•ญ -- [ ] ๊ณผ์ œ์— ๋Œ€ํ•œ ์„ค๋ช…์„ ํฌํ•จํ•œ `README.md` ํŒŒ์ผ์„ ์ œ๊ณตํ•˜์„ธ์š”! -- [ ] ๊ณผ์ œ ๊ฒฐ๊ณผ์™€ ๋น„๊ตํ•  ์ˆ˜ ์žˆ๋Š” ์‹ค์ œ ์‚ฌ์ดํŠธ(ํŽ˜์ด์ง€)์˜ ์ฃผ์†Œ๋ฅผ ๋ช…์‹œํ•˜์„ธ์š”! -- [ ] ๊ณผ์ •์—์„œ ์‚ฌ์šฉํ•œ ํ”„๋กœ์ ํŠธ ํด๋”/ํŒŒ์ผ์ด ๋ชจ๋‘ ํฌํ•จ๋ผ์•ผ ํ•ฉ๋‹ˆ๋‹ค, ์ผ๋ถ€ ํŒŒ์ผ๋งŒ ์ œ์ถœํ•˜์ง€ ๋งˆ์„ธ์š”! -- [ ] ์‹ค์ œ ์„œ๋น„์Šค๋กœ ๋ฐฐํฌํ•˜๊ณ  ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ๋งํฌ๋ฅผ ์ถ”๊ฐ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. +- [o] ๊ณผ์ œ์— ๋Œ€ํ•œ ์„ค๋ช…์„ ํฌํ•จํ•œ `README.md` ํŒŒ์ผ์„ ์ œ๊ณตํ•˜์„ธ์š”! +- [o] ๊ณผ์ œ ๊ฒฐ๊ณผ์™€ ๋น„๊ตํ•  ์ˆ˜ ์žˆ๋Š” ์‹ค์ œ ์‚ฌ์ดํŠธ(ํŽ˜์ด์ง€)์˜ ์ฃผ์†Œ๋ฅผ ๋ช…์‹œํ•˜์„ธ์š”! +- [o] ๊ณผ์ •์—์„œ ์‚ฌ์šฉํ•œ ํ”„๋กœ์ ํŠธ ํด๋”/ํŒŒ์ผ์ด ๋ชจ๋‘ ํฌํ•จ๋ผ์•ผ ํ•ฉ๋‹ˆ๋‹ค, ์ผ๋ถ€ ํŒŒ์ผ๋งŒ ์ œ์ถœํ•˜์ง€ ๋งˆ์„ธ์š”! +- [o] ์‹ค์ œ ์„œ๋น„์Šค๋กœ ๋ฐฐํฌํ•˜๊ณ  ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ๋งํฌ๋ฅผ ์ถ”๊ฐ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ## ์„ ํƒ ์š”๊ตฌ์‚ฌํ•ญ -- [ ] `
`, `
` ๋“ฑ ์‹œ๋ฉ˜ํ‹ฑ ํƒœ๊ทธ๋ฅผ ์ตœ๋Œ€ํ•œ ํ™œ์šฉํ•ด๋ณด์„ธ์š”. -- [ ] ์‹ค์ œ ์‚ฌ์ดํŠธ์˜ ๋ ˆ๊ฑฐ์‹œ ์ฝ”๋“œ ํ™œ์šฉ๋ณด๋‹จ ์ตœ์‹ ์˜ CSS Flex ํ˜น์€ Grid ๋“ฑ์„ ํ™œ์šฉํ•ด๋ณด์„ธ์š”. -- [ ] ๋ถ€๋ถ„์ ์œผ๋กœ BEM ๋ฐฉ๋ฒ•๋ก ์„ ๋„์ž…ํ•ด๋ณด์„ธ์š”. -- [ ] JS๊ฐ€ ํ•„์š”ํ•œ ๋ถ€๋ถ„์€ ๋˜๋„๋ก ์ƒ๋žตํ•˜๋˜ ์ด์œ ๋ฅผ ๋ช…์‹œํ•ด๋ณด์„ธ์š”.(CSS๋กœ ๋Œ€์ฒด ๊ฐ€๋Šฅํ•œ์ง€ ํ”ผ๋“œ๋ฐฑ์ด ์žˆ์„ ์ˆ˜ ์žˆ๊ฒ ์ฃ ?!) -- [ ] JS๊ฐ€ ํ•„์š”ํ•œ ๋ถ€๋ถ„ ์ค‘ ๊ตฌํ˜„ํ•  ๋ถ€๋ถ„์ด ์žˆ๋‹ค๋ฉด ์ž์œ ๋กญ๊ฒŒ ๊ตฌํ˜„ํ•ด๋ณด์„ธ์š”.(JS ๊ณผ์ œ๊ฐ€ ์•„๋‹ˆ๋‹ˆ๊นŒ ๊ฐ€๋ณ๊ฒŒ ๊ตฌํ˜„ํ•˜์‹œ๊ธธ ์ถ”์ฒœํ•ด์š”) -- [ ] SCSS ๋“ฑ์˜ CSS ์ „์ฒ˜๋ฆฌ๋„๊ตฌ๋ฅผ ๋„์ž…ํ•ด๋ณด์„ธ์š”. -- [ ] SCSS ์ปดํŒŒ์ผ์— Webpack์ด๋‚˜ Parcel ๊ฐ™์€ ๋ฒˆ๋“ค๋Ÿฌ๋ฅผ ํ™œ์šฉํ•ด๋ณด์„ธ์š”. +- [o] `
`, `
` ๋“ฑ ์‹œ๋ฉ˜ํ‹ฑ ํƒœ๊ทธ๋ฅผ ์ตœ๋Œ€ํ•œ ํ™œ์šฉํ•ด๋ณด์„ธ์š”. +- [o] ์‹ค์ œ ์‚ฌ์ดํŠธ์˜ ๋ ˆ๊ฑฐ์‹œ ์ฝ”๋“œ ํ™œ์šฉ๋ณด๋‹จ ์ตœ์‹ ์˜ CSS Flex ํ˜น์€ Grid ๋“ฑ์„ ํ™œ์šฉํ•ด๋ณด์„ธ์š”. +- [o] ๋ถ€๋ถ„์ ์œผ๋กœ BEM ๋ฐฉ๋ฒ•๋ก ์„ ๋„์ž…ํ•ด๋ณด์„ธ์š”. +- [o] JS๊ฐ€ ํ•„์š”ํ•œ ๋ถ€๋ถ„์€ ๋˜๋„๋ก ์ƒ๋žตํ•˜๋˜ ์ด์œ ๋ฅผ ๋ช…์‹œํ•ด๋ณด์„ธ์š”.(CSS๋กœ ๋Œ€์ฒด ๊ฐ€๋Šฅํ•œ์ง€ ํ”ผ๋“œ๋ฐฑ์ด ์žˆ์„ ์ˆ˜ ์žˆ๊ฒ ์ฃ ?!) +- [x] JS๊ฐ€ ํ•„์š”ํ•œ ๋ถ€๋ถ„ ์ค‘ ๊ตฌํ˜„ํ•  ๋ถ€๋ถ„์ด ์žˆ๋‹ค๋ฉด ์ž์œ ๋กญ๊ฒŒ ๊ตฌํ˜„ํ•ด๋ณด์„ธ์š”.(JS ๊ณผ์ œ๊ฐ€ ์•„๋‹ˆ๋‹ˆ๊นŒ ๊ฐ€๋ณ๊ฒŒ ๊ตฌํ˜„ํ•˜์‹œ๊ธธ ์ถ”์ฒœํ•ด์š”) +- [x] SCSS ๋“ฑ์˜ CSS ์ „์ฒ˜๋ฆฌ๋„๊ตฌ๋ฅผ ๋„์ž…ํ•ด๋ณด์„ธ์š”. +- [x] SCSS ์ปดํŒŒ์ผ์— Webpack์ด๋‚˜ Parcel ๊ฐ™์€ ๋ฒˆ๋“ค๋Ÿฌ๋ฅผ ํ™œ์šฉํ•ด๋ณด์„ธ์š”. + +YouTube ์›น์‚ฌ์ดํŠธ๋ฅผ ํด๋ก  ์ฝ”๋”ฉํ•˜์˜€์Šต๋‹ˆ๋‹ค. +์„ ํƒ ์š”๊ตฌ์‚ฌํ•ญ์„ ์ง€ํ‚ค๊ธฐ์œ„ํ•ด css grid๋ฅผ ์ด์šฉํ•˜์—ฌ ์ž‘์„ฑํ•˜์˜€๊ณ  grid๋ฅผ ์‚ฌ์šฉํ•˜์˜€๊ณ  BEM๋ฐฉ๋ฒ•์„ ๋„์ž…ํ•˜์˜€์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค. root๋ฅผ ์ด์šฉํ•ด css์˜ ํฐํŠธ์™€ ์ƒ‰์ƒ์˜ ์ˆ˜์ •์— ์œ ์šฉํ•˜๊ฒŒ ๋งŒ๋“ค์–ด๋ณด๋„๋ก ํ•˜์˜€์Šต๋‹ˆ๋‹ค. +์•„์‰ฌ์šด์ ์€ scss๋ฅผ ์‚ฌ์šฉํ•˜์ง€์•Š๊ณ  ๋งŒ๋“ค์—ˆ๊ณ  ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋Š” ์ผ๋ถ€๋กœ ์‚ฌ์šฉํ•˜์ง€์•Š์•˜์œผ๋‚˜ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์ง€์•Š๋Š” ๊ณผ์ •์—์„œ ๊ตฌํ˜„์— ๋Œ€ํ•œ ์–ด๋ ค์›€์„ ๋งŽ์ด ๋Š๊ผˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ grid์‚ฌ์šฉ์— ๋ฏธ์ˆ™ํ•˜์—ฌ ์˜ค๋žœ ์‹œ๊ฐ„์ด ๊ฑธ๋ ธ์Šต๋‹ˆ๋‹ค. +์ดˆ๊ธฐ์—๋Š” ์‚ฌ์ด๋“œ๋ฒ„ํŠผ์˜ ์œ ํŠœ๋ธŒ๋งํฌ ๋ฐ ์œ ํŠœ๋ธŒ์˜ ํผ๊ฐ€๊ธฐ ๊ธฐ๋Šฅ์„ ํ†ตํ•ด iframe์œผ๋กœ ์˜์ƒ์„ ๋„ฃ์–ด ๊ตฌํ˜„ํ•˜์˜€์œผ๋‚˜ ์ €์ž‘๊ถŒ ๊ด€๋ จ ๋ฌธ์ œ ์†Œ์ง€๊ฐ€ ์žˆ์„๊ฑฐ ๊ฐ™์•„ ์ „๋ถ€ ๋บ์Šต๋‹ˆ๋‹ค. ## ์†์‰ฌ์šด ์ด๋ฏธ์ง€ ์ถ”์ถœ ๋ฐฉ๋ฒ• diff --git a/images/.DS_Store b/images/.DS_Store new file mode 100644 index 00000000..90818794 Binary files /dev/null and b/images/.DS_Store differ diff --git a/images/bulb.svg b/images/bulb.svg new file mode 100644 index 00000000..149b9f31 --- /dev/null +++ b/images/bulb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/channel.svg b/images/channel.svg new file mode 100644 index 00000000..750bce06 --- /dev/null +++ b/images/channel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/fire.svg b/images/fire.svg new file mode 100644 index 00000000..ddb51b3f --- /dev/null +++ b/images/fire.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/first.jpg b/images/first.jpg new file mode 100644 index 00000000..eca85194 Binary files /dev/null and b/images/first.jpg differ diff --git a/images/flag.svg b/images/flag.svg new file mode 100644 index 00000000..84e5be31 --- /dev/null +++ b/images/flag.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/flash.png b/images/flash.png new file mode 100644 index 00000000..157e2d78 Binary files /dev/null and b/images/flash.png differ diff --git a/images/game.svg b/images/game.svg new file mode 100644 index 00000000..f87cc194 --- /dev/null +++ b/images/game.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/help.svg b/images/help.svg new file mode 100644 index 00000000..bdf2e35c --- /dev/null +++ b/images/help.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/home.svg b/images/home.svg new file mode 100644 index 00000000..598a10d9 --- /dev/null +++ b/images/home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/live.svg b/images/live.svg new file mode 100644 index 00000000..d4b21f19 --- /dev/null +++ b/images/live.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/menu.svg b/images/menu.svg new file mode 100644 index 00000000..5461b8db --- /dev/null +++ b/images/menu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/mic.svg b/images/mic.svg new file mode 100644 index 00000000..2e23d4bc --- /dev/null +++ b/images/mic.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/movie.svg b/images/movie.svg new file mode 100644 index 00000000..df164992 --- /dev/null +++ b/images/movie.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/music.svg b/images/music.svg new file mode 100644 index 00000000..43a698ef --- /dev/null +++ b/images/music.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/past.svg b/images/past.svg new file mode 100644 index 00000000..3b8dadac --- /dev/null +++ b/images/past.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/premium.svg b/images/premium.svg new file mode 100644 index 00000000..a1373364 --- /dev/null +++ b/images/premium.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/report.svg b/images/report.svg new file mode 100644 index 00000000..522c9ddf --- /dev/null +++ b/images/report.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/search.svg b/images/search.svg new file mode 100644 index 00000000..0870f816 --- /dev/null +++ b/images/search.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/second.jpg b/images/second.jpg new file mode 100644 index 00000000..2260da6f Binary files /dev/null and b/images/second.jpg differ diff --git a/images/setting.svg b/images/setting.svg new file mode 100644 index 00000000..ef0b3861 --- /dev/null +++ b/images/setting.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/shopping.svg b/images/shopping.svg new file mode 100644 index 00000000..800a7fe8 --- /dev/null +++ b/images/shopping.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/shorts.svg b/images/shorts.svg new file mode 100644 index 00000000..9c1aa812 --- /dev/null +++ b/images/shorts.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/sport.svg b/images/sport.svg new file mode 100644 index 00000000..2d8a3f1c --- /dev/null +++ b/images/sport.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/subscribe.svg b/images/subscribe.svg new file mode 100644 index 00000000..eada79ca --- /dev/null +++ b/images/subscribe.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/user.png b/images/user.png new file mode 100644 index 00000000..cf550ecc Binary files /dev/null and b/images/user.png differ diff --git a/images/vert.svg b/images/vert.svg new file mode 100644 index 00000000..6cb65f6b --- /dev/null +++ b/images/vert.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/videolibrary.svg b/images/videolibrary.svg new file mode 100644 index 00000000..c61d7f11 --- /dev/null +++ b/images/videolibrary.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/youtube.svg b/images/youtube.svg new file mode 100644 index 00000000..0904e608 --- /dev/null +++ b/images/youtube.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/youtubekids.svg b/images/youtubekids.svg new file mode 100644 index 00000000..3be7e695 --- /dev/null +++ b/images/youtubekids.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/youtubemusic.svg b/images/youtubemusic.svg new file mode 100644 index 00000000..fc60e13d --- /dev/null +++ b/images/youtubemusic.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 00000000..ff850839 --- /dev/null +++ b/index.html @@ -0,0 +1,298 @@ + + + + + + + YouTube + + + + + +
+ + +
+
+ + +
+ +
+ + ๋งˆ์ดํฌ +
+ +
+
+ + +
+
+
+ + + + + + +
+ + + + + + + + + + +
+ + + +
+
+
+
+ ๋™์˜์ƒ +

์ฒซ๋ฒˆ์จฐ ๋™์˜์ƒ

+
hi
+ ์กฐํšŒ์ˆ˜ 62๋งŒํšŒ ยท 2์ผ์ „ +
+
+ ๋™์˜์ƒ +

๋‘๋ฒˆ์งธ ๋™์˜์ƒ

+
hello
+ ์กฐํšŒ์ˆ˜ 132๋งŒํšŒ ยท 2์ผ์ „ +
+
+ ๋™์˜์ƒ +

์•ˆ๋…•ํ•˜์„ธ์š”

+
hi
+ ์กฐํšŒ์ˆ˜ 82๋งŒํšŒ ยท 2์ผ์ „ +
+
+ ๋™์˜์ƒ +

๋™์˜์ƒ

+
hello
+ ์กฐํšŒ์ˆ˜ 92๋งŒํšŒ ยท 12์ผ์ „ +
+ +
+ ๋™์˜์ƒ +

์•„๋ฌด๊ฑฐ๋‚˜ ๋„ฃ์€ ๋™์˜์ƒ

+
hi
+ ์กฐํšŒ์ˆ˜ 125๋งŒํšŒ ยท 9์ผ์ „ +
+
+ ๋™์˜์ƒ +

์ผ๋ฐ˜ ๋™์˜์ƒ

+
hello
+ ์กฐํšŒ์ˆ˜ 92๋งŒํšŒ ยท 5์ผ์ „ +
+
+ ๋™์˜์ƒ +

์„ค์‚ฐ

+
hi
+ ์กฐํšŒ์ˆ˜ 70๋งŒํšŒ ยท 9์•Œ์ „ +
+
+ ๋™์˜์ƒ +

๊ตญ๋ฐฅ

+
hello
+ ์กฐํšŒ์ˆ˜ 120๋งŒํšŒ ยท 11์ผ์ „ +
+
+ +
+
+ ๋™์˜์ƒ +

snow

+
hi
+ ์กฐํšŒ์ˆ˜ 122๋งŒํšŒ ยท 15์ผ์ „ +
+
+ ๋™์˜์ƒ +

์†๋ณด

+
hello
+ ์กฐํšŒ์ˆ˜ 61๋งŒํšŒ ยท 1๊ฐœ์›”์ „ +
+
+ ๋™์˜์ƒ +

์น˜ํ‚จ

+
hi
+ ์กฐํšŒ์ˆ˜ 64๋งŒํšŒ ยท 4์ฃผ์ „ +
+
+ ๋™์˜์ƒ +

ํ”ผ์ž

+
hello
+ ์กฐํšŒ์ˆ˜ 210๋งŒํšŒ ยท 8๊ฐœ์›”์ „ +
+
+ ๋™์˜์ƒ +

ํ–„๋ฒ„๊ฑฐ

+
hi
+ ์กฐํšŒ์ˆ˜ 65๋งŒํšŒ ยท 1๊ฐœ์›”์ „ +
+
+ ๋™์˜์ƒ +

๊ณ ๊ตฌ๋งˆ์™€ ํŒŒ์ธ์• ํ”Œ ํ”ผ์ž

+
hello
+ ์กฐํšŒ์ˆ˜ 78๋งŒํšŒ ยท 1๊ฐœ์›”์ „ +
+
+ ๋™์˜์ƒ +

์ถ•๊ตฌ

+
hi
+ ์กฐํšŒ์ˆ˜ 70๋งŒํšŒ ยท 1๊ฐœ์›”์ „ +
+
+ ๋™์˜์ƒ +

์•„๊ตฌ

+
hello
+ ์กฐํšŒ์ˆ˜ 150๋งŒํšŒ ยท 2๊ฐœ์›”์ผ์ „ +
+
+
+
+
+ + diff --git a/main.css b/main.css new file mode 100644 index 00000000..07fe07cd --- /dev/null +++ b/main.css @@ -0,0 +1,359 @@ +:root { + /* Color */ + + --white-color: #fff; + --black-color: #140a00; + --blue-color: #045fd4; + --grey-dark-color: #909090; + --grey-light-color: #e0e0e0; + + /* Font Size */ + + --font-large: 25px; + --font-medium: 16px; + --font-small: 14px; + --font-micro: 12px; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +a { + text-decoration: none; +} + +body { + font-family: "roboto", "sans-serif"; +} + +.container { + margin: auto; + display: grid; + grid-template-columns: 220px 1fr; + grid-template-rows: 80px 80px 1fr; + grid-template-areas: + "header header" + "sidebar cg" + "sidebar main"; +} + +/* header */ + +.header { + background-color: var(--white-color); + grid-area: header; + display: flex; + width: 100%; + padding: 0 16px; + z-index: 10; + justify-content: space-between; + position: sticky; + top: 0; + white-space: nowrap; +} + +.header .header-start { + align-items: center; + display: flex; +} + +.header .header-start .logo { + font-size: var(--font-large); + font-weight: bold; + color: var(--black-color); + margin-top: 5px; +} + +.header-start .fa-bars { + font-size: var(--font-large); + margin: 0 8px; + color: var(--black-color); + cursor: pointer; +} + +.header-start .fa-bars:hover { + background-color: var(--grey-dark-color); + border-radius: 50%; +} + +/* header middle */ + +.header .header-middle { + display: flex; + align-items: center; +} + +.header-middle .search { + width: 600px; + display: flex; + align-items: center; +} +.header-middle .search .add { + width: 100%; + height: 100%; + display: flex; + justify-content: end; + align-items: center; +} + +.header-middle .search .add .search__space { + width: 30px; + height: 40px; + background-color: var(--white-color); + border: 1px solid var(--grey-light-color); + border-right: none; + border-radius: 20px 0 0 20px; + display: flex; + justify-content: center; + align-items: center; +} +.header-middle .search .add .search__space .fa-magnifying-glass { + font-size: var(--font-medium); + display: none; +} +.header-middle .search .add input { + width: 90%; + height: 40px; + border: 1px solid var(--grey-light-color); + border-left: none; + color: var(--grey-dark-color); + font-size: var(--font-medium); +} + +.header-middle .search .add .input:focus { + border-color: var(--blue-color); +} + +.header-middle .add:focus-within .search__space .fa-magnifying-glass { + display: inline-block; + text-align: center; +} + +.header-middle .add:focus-within .search__space { + background-color: var(--white-color); + border-color: var(--blue-color); + width: 40px; +} + +.header-middle .search button { + width: 60px; + height: 40px; + border: 1px solid var(--grey-light-color); + border-left: var(--white-color); + background-color: var(--grey-light-color); + border-radius: 0 20px 20px 0; +} +.header-middle .search button .fa-magnifying-glass { + font-size: 20px; +} + +.header-middle .search button:hover { + background-color: var(--grey-dark-color); +} + +/* header end */ + +.header-end { + display: flex; + align-items: center; +} + +.header-end .login { + background-color: var(--white-color); + font-size: var(--font-medium); + border-radius: 12px; + border: 1px solid var(--grey-light-color); + color: var(--blue-color); + padding: 7px; + cursor: pointer; +} + +/* side button */ + +.sidebutton { + background-color: var(--white-color); + grid-area: sidebar; + height: 95vh; + overflow-y: scroll; + position: sticky; + overscroll-behavior: contain; + top: 80px; + z-index: 5; +} + +.sidebutton .links { + padding: 10px 20px; + display: flex; + align-items: center; + color: var(--black-color); + font-size: var(--font-small); + font-weight: 400; + text-decoration: none; + border-radius: 10px; +} + +.sidebutton .links img { + height: 25px; + margin-right: 20px; +} + +.sidebutton .links:hover, +.sidebutton .links.active { + background: var(--grey-light-color); +} + +.sidebutton .login { + background-color: var(--white-color); + font-size: var(--font-medium); + border-radius: 12px; + border: 1px solid var(--grey-light-color); + color: var(--blue-color); + margin-left: 20px; + padding: 7px; + cursor: pointer; +} + +.sidebutton .login-info { + padding: 5px 25px; + display: flex; + font-size: var(--font-small); +} + +.sidebutton .sidebutton__search { + padding: 20px; + font-size: var(--font-medium); + font-weight: 400; +} + +.sidebutton .rule { + padding: 15px; + font-size: var(--font-micro); + font-weight: 100; +} + +.sidebutton .rule > p { + font-size: var(--font-small); + font-weight: 400; +} + +.sidebutton .seperate { + border: none; + border-bottom: 1px solid var(--grey-light-color); + margin: 10px 0; +} + +/* categori */ + +.categori { + grid-area: cg; + height: 45px; + background: var(--white-color); + padding: 0 30px; + display: flex; + align-items: center; + position: sticky; + top: 80px; + z-index: 10; + white-space: nowrap; +} + +.categori .categori__filter { + padding: 8px; + border-radius: 8px; + background: var(--grey-light-color); + border: 1px solid var(--grey-dark-color); + margin-right: 15px; + color: var(--black-color); + font-size: var(--font-small); + cursor: pointer; +} + +.categori .categori__filter:hover { + background-color: var(--grey-dark-color); +} + +.categori .categori__filter.active { + background-color: var(--black-color); + color: var(--white-color); +} + +/* video */ + +.video { + grid-area: main; + display: flex; + flex-wrap: wrap; + align-content: flex-start; + height: 100%; + margin: 0 20px; +} + +.video__section { + max-width: 1440px; + background-color: var(--white-color); +} + +.video .content { + width: 350px; +} + +.content__main { + padding: 25px 0; + display: flex; + flex-wrap: wrap; + border-bottom: 2px solid var(--grey-light-color); +} + +.video .content img { + width: 95%; + height: 75%; + padding: 5px 2px; + border-radius: 20px; +} + +.content__title { + font-size: var(--font-medium); + color: var(--black-color); + padding: 10px 8px 0 0; + font-weight: bold; + flex-wrap: wrap; +} + +.content__name { + font-size: var(--font-small); + font-weight: 400; + color: var(--grey-dark-color); + padding: 10px 8px 0 0; +} + +.content__views { + display: inline-block; + font-size: var(--font-small); + font-weight: 500; + color: var(--grey-dark-color); + margin-bottom: 100px; +} + +@media (max-width: 768px) { + .add { + display: none; + } + .container { + grid-template-columns: 1fr; + grid-template-areas: + "header" + "main"; + } + .search { + align-items: center; + } + .categori { + display: none; + } + .sidebutton { + display: none; + } +}