diff --git a/README.md b/README.md index 598dc30f..0733f390 100644 --- a/README.md +++ b/README.md @@ -1,45 +1,27 @@ -# ๐Ÿ‘€ ์ž์‹ ์ด ์›ํ•˜๋Š” ์‚ฌ์ดํŠธ ๋ ˆ์ด์•„์›ƒ ํด๋ก  +# ๋ฉ”๊ฐ€๋ฐ•์Šค ํด๋ก ์ฝ”๋”ฉ -์›ํ•˜๋Š” ์‚ฌ์ดํŠธ(ํŽ˜์ด์ง€)๋ฅผ ์ž์œ ๋กญ๊ฒŒ ์„ ํƒํ•˜๊ณ  ๋ ˆ์ด์•„์›ƒ์„ ํด๋ก  ์ฝ”๋”ฉํ•˜์„ธ์š”. -ํ‰์†Œ์— ๋„์ „ํ•ด ๋ณด๊ณ  ์‹ถ์—ˆ๊ฑฐ๋‚˜ ํ˜น์€ ์ž์‹ ์˜ ์ˆ˜์ค€์— ๋งž๋Š” ์‚ฌ์ดํŠธ(ํŽ˜์ด์ง€)๋ฅผ ์„ ํƒํ•˜์„ธ์š”. -๊ณผ์ œ ์ˆ˜ํ–‰ ๋ฐ ๋ฆฌ๋ทฐ ๊ธฐ๊ฐ„์€ ๋ณ„๋„ ๊ณต์ง€๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”! +### ๋ฉ”๊ฐ€๋ฐ•์Šค ํ™ˆํŽ˜์ด์ง€ ๋งํฌ -## ๊ณผ์ œ ์ˆ˜ํ–‰ ๋ฐ ์ œ์ถœ ๋ฐฉ๋ฒ• +https://www.megabox.co.kr/ -1. ํ˜„์žฌ ์ €์žฅ์†Œ๋ฅผ ๋กœ์ปฌ์— ํด๋ก (Clone)ํ•ฉ๋‹ˆ๋‹ค. -1. ์ž์‹ ์˜ ๋ณธ๋ช…์œผ๋กœ ๋ธŒ๋žœ์น˜๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.(๊ตฌ๋ถ„ ๊ฐ€๋Šฅํ•˜๋„๋ก ๋ณธ๋ช…์„ ๊ผญ ํŒŒ์Šค์นผ์ผ€์ด์Šค๋กœ ํ‘œ์‹œํ•˜์„ธ์š”, `git branch KDT0_ParkYoungWoong`) -1. ์ž์‹ ์˜ ๋ณธ๋ช… ๋ธŒ๋žœ์น˜์—์„œ ๊ณผ์ œ๋ฅผ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค. -1. ๊ณผ์ œ ์ˆ˜ํ–‰์ด ์™„๋ฃŒ๋˜๋ฉด, ์ž์‹ ์˜ ๋ณธ๋ช… ๋ธŒ๋žœ์น˜๋ฅผ ์›๊ฒฉ ์ €์žฅ์†Œ์— ํ‘ธ์‹œ(Push)ํ•ฉ๋‹ˆ๋‹ค.(`main` ๋ธŒ๋žœ์น˜์— ํ‘ธ์‹œํ•˜์ง€ ์•Š๋„๋ก ๊ผญ ์ฃผ์˜ํ•˜์„ธ์š”, `git push origin KDT0_ParkYoungWoong`) -1. ์ €์žฅ์†Œ์—์„œ `main` ๋ธŒ๋žœ์น˜๋ฅผ ๋Œ€์ƒ์œผ๋กœ Pull Request ์ƒ์„ฑํ•˜๋ฉด, ๊ณผ์ œ ์ œ์ถœ์ด ์™„๋ฃŒ๋ฉ๋‹ˆ๋‹ค!(E.g, `main` <== `KDT0_ParkYoungWoong`) +### ํด๋ก  ๋ฉ”๊ฐ€๋ฐ•์Šค ์„œ๋น„์Šค ๋งํฌ -- `main` ํ˜น์€ ๋‹ค๋ฅธ ์‚ฌ๋žŒ์˜ ๋ธŒ๋žœ์น˜๋กœ ์ ˆ๋Œ€ ๋ณ‘ํ•ฉํ•˜์ง€ ์•Š๋„๋ก ์ฃผ์˜ํ•˜์„ธ์š”! -- Pull Request์—์„œ ๋ณด์ด๋Š” ์„ค๋ช…์„ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์ด ์ดํ•ดํ•˜๊ธฐ ์‰ฝ๋„๋ก ๊ผผ๊ผผํ•˜๊ฒŒ ์ž‘์„ฑํ•˜์„ธ์š”! -- Pull Request์—์„œ ๊ณผ์ œ ์ œ์ถœ ํ›„ ์ ˆ๋Œ€ ๋ณ‘ํ•ฉ(Merge)ํ•˜์ง€ ์•Š๋„๋ก ์ฃผ์˜ํ•˜์„ธ์š”! -- ๊ณผ์ œ ์ˆ˜ํ–‰ ๋ฐ ์ œ์ถœ ๊ณผ์ •์—์„œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒฝ์šฐ, ๋ฐ”๋กœ ๋‹ด๋‹น ๋ฉ˜ํ† ๋‚˜ ๊ฐ•์‚ฌ์—์„œ ์–˜๊ธฐํ•˜์„ธ์š”! +https://kdt5-chadongmin--kdt5-cdm-megaboxclone.netlify.app/ -## ํ•„์ˆ˜ ์š”๊ตฌ์‚ฌํ•ญ +## ๊ณผ์ œ ์ง„ํ–‰ ๋‚ด์šฉ -- [ ] ๊ณผ์ œ์— ๋Œ€ํ•œ ์„ค๋ช…์„ ํฌํ•จํ•œ `README.md` ํŒŒ์ผ์„ ์ œ๊ณตํ•˜์„ธ์š”! -- [ ] ๊ณผ์ œ ๊ฒฐ๊ณผ์™€ ๋น„๊ตํ•  ์ˆ˜ ์žˆ๋Š” ์‹ค์ œ ์‚ฌ์ดํŠธ(ํŽ˜์ด์ง€)์˜ ์ฃผ์†Œ๋ฅผ ๋ช…์‹œํ•˜์„ธ์š”! -- [ ] ๊ณผ์ •์—์„œ ์‚ฌ์šฉํ•œ ํ”„๋กœ์ ํŠธ ํด๋”/ํŒŒ์ผ์ด ๋ชจ๋‘ ํฌํ•จ๋ผ์•ผ ํ•ฉ๋‹ˆ๋‹ค, ์ผ๋ถ€ ํŒŒ์ผ๋งŒ ์ œ์ถœํ•˜์ง€ ๋งˆ์„ธ์š”! -- [ ] ์‹ค์ œ ์„œ๋น„์Šค๋กœ ๋ฐฐํฌํ•˜๊ณ  ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ๋งํฌ๋ฅผ ์ถ”๊ฐ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. +- [ ] ๋ฉ”๊ฐ€๋ฐ•์Šค ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€ ๋‚ด์˜ ์ƒ๋‹จ ๋ฉ”๋‰ด๋ฐ”, ์ค‘์•™ ๋ฐ•์Šค์˜คํ”ผ์Šค ์˜์—ญ, ์ตœํ•˜๋‹จ footer ์˜์—ญ์˜ ํด๋ก ์ฝ”๋”ฉ +- [ ] ๋‹ค๋ฅธ ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•˜๋Š” ๋งํฌ๋ฅผ ์ œ์™ธํ•˜๊ณ  ๋‹ค๋ฅธ ๊ธฐ๋Šฅ์€ ๊ฐ€๋Šฅํ•œ ํ•œ ์ตœ๋Œ€ํ•œ ๊ตฌํ˜„ +- [ ] ์›๋ณธ ํŽ˜์ด์ง€์˜ ์ฝ”๋“œ๋ฅผ ์ตœ๋Œ€ํ•œ ๋ฐฐ์ œํ•˜๊ณ  ๋ˆˆ์— ๋ณด์ด๋Š”๋Œ€๋กœ ์Šค์Šค๋กœ ์ฝ”๋”ฉ -## ์„ ํƒ ์š”๊ตฌ์‚ฌํ•ญ +## ๋ถ€์กฑํ•œ ์‚ฌํ•ญ -- [ ] `
`, `
` ๋“ฑ ์‹œ๋ฉ˜ํ‹ฑ ํƒœ๊ทธ๋ฅผ ์ตœ๋Œ€ํ•œ ํ™œ์šฉํ•ด๋ณด์„ธ์š”. -- [ ] ์‹ค์ œ ์‚ฌ์ดํŠธ์˜ ๋ ˆ๊ฑฐ์‹œ ์ฝ”๋“œ ํ™œ์šฉ๋ณด๋‹จ ์ตœ์‹ ์˜ CSS Flex ํ˜น์€ Grid ๋“ฑ์„ ํ™œ์šฉํ•ด๋ณด์„ธ์š”. -- [ ] ๋ถ€๋ถ„์ ์œผ๋กœ BEM ๋ฐฉ๋ฒ•๋ก ์„ ๋„์ž…ํ•ด๋ณด์„ธ์š”. -- [ ] JS๊ฐ€ ํ•„์š”ํ•œ ๋ถ€๋ถ„์€ ๋˜๋„๋ก ์ƒ๋žตํ•˜๋˜ ์ด์œ ๋ฅผ ๋ช…์‹œํ•ด๋ณด์„ธ์š”.(CSS๋กœ ๋Œ€์ฒด ๊ฐ€๋Šฅํ•œ์ง€ ํ”ผ๋“œ๋ฐฑ์ด ์žˆ์„ ์ˆ˜ ์žˆ๊ฒ ์ฃ ?!) -- [ ] JS๊ฐ€ ํ•„์š”ํ•œ ๋ถ€๋ถ„ ์ค‘ ๊ตฌํ˜„ํ•  ๋ถ€๋ถ„์ด ์žˆ๋‹ค๋ฉด ์ž์œ ๋กญ๊ฒŒ ๊ตฌํ˜„ํ•ด๋ณด์„ธ์š”.(JS ๊ณผ์ œ๊ฐ€ ์•„๋‹ˆ๋‹ˆ๊นŒ ๊ฐ€๋ณ๊ฒŒ ๊ตฌํ˜„ํ•˜์‹œ๊ธธ ์ถ”์ฒœํ•ด์š”) -- [ ] SCSS ๋“ฑ์˜ CSS ์ „์ฒ˜๋ฆฌ๋„๊ตฌ๋ฅผ ๋„์ž…ํ•ด๋ณด์„ธ์š”. -- [ ] SCSS ์ปดํŒŒ์ผ์— Webpack์ด๋‚˜ Parcel ๊ฐ™์€ ๋ฒˆ๋“ค๋Ÿฌ๋ฅผ ํ™œ์šฉํ•ด๋ณด์„ธ์š”. - -## ์†์‰ฌ์šด ์ด๋ฏธ์ง€ ์ถ”์ถœ ๋ฐฉ๋ฒ• - -์‚ฌ์ดํŠธ ํด๋ก ์— ํ•„์š”ํ•œ ์ด๋ฏธ์ง€๋ฅผ ์ข€ ๋” ์‰ฝ๊ฒŒ ์ถ”์ถœํ•˜๊ธฐ ์œ„ํ•ด์„œ Chrome ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ์ธ [Image Downloader](https://chrome.google.com/webstore/detail/image-downloader/cnpniohnfphhjihaiiggeabnkjhpaldj?hl=ko)๋ฅผ ์‚ฌ์šฉํ•˜์„ธ์š”. - -1. ์›ํ•˜๋Š” ์‚ฌ์ดํŠธ ์ ‘์† -1. Image Downloader ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ ์‹คํ–‰ -1. ๋‹ค์šด๋กœ๋“œ ์›ํ•˜๋Š” ์ด๋ฏธ์ง€ ์„ ํƒ -1. ์„œ๋ธŒ ํด๋” ์ด๋ฆ„(Save to subfolder) ๋ช…์‹œ -1. ๋‹ค์šด๋กœ๋“œ! +- [ ] ๋“œ๋กญ๋‹ค์šด ๋™์ž‘์‹œ inner ์˜์—ญ์— ๋งž๊ฒŒ ๊ฐ€๋กœ ๋„ˆ๋น„๊ฐ€ ์ž˜๋ ค๋ฒ„๋ฆฌ๋Š” ๋ฌธ์ œ +- [ ] ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฐ” ํ•˜๋‹จ ๋ฉ”๋‰ด์— hover ํ–ˆ์„๋•Œ ๋‚˜์˜ค๋Š” ํ•˜์œ„๋ฉ”๋‰ด๊ฐ€ ์šฐ์ธก์œผ๋กœ ๋ฐ€๋ ค์„œ ์ •๋ ฌ๋˜๋Š” ๋ฌธ์ œ +- [ ] ๋ธŒ๋ผ์šฐ์ € ์ฐฝ ํฌ๊ธฐ๋ฅผ ์ถ•์†Œ์‹œ์ผœ x์ถ• ์Šคํฌ๋กค ๋ฐ”๊ฐ€ ์ƒ๊ฒผ์„ ๋•Œ, ์Šคํฌ๋กค์‹œ background๊ฐ€ ์ž˜๋ฆฌ๋Š” ๋ฌธ์ œ +- [ ] ๋‹ค๋ฅธ ๋“œ๋กญ๋‹ค์šด์„ ๋‹ซ์„ ๋•Œ ์“ฐ๋Š” JS ์ฝ”๋“œ๊ฐ€ ์ง€์ €๋ถ„ํ•œ ์  +- [ ] ๋งˆ์šฐ์Šค ์•„์ด์ฝ˜์˜ ๋ฐ˜๋ณต์ ์ธ ์• ๋‹ˆ๋ฉ”์ด์…˜์˜ ๋ถ€์ž์—ฐ์Šค๋Ÿฌ์›€ +- [ ] semantic ํƒœ๊ทธ์˜ ํ™œ์šฉ์ด ๋งŽ์ด ๋ถ€์กฑํ•œ ์  +- [ ] ๊ณผ์ œ ์ดˆ๊ธฐ๋ถ€ํ„ฐ commit์„ ๋‚จ๊ธฐ๋ฉด์„œ ์ž‘์—…ํ•˜์ง€ ์•Š์€ ์  +- [ ] class ์‚ฌ์šฉ์— ์žˆ์–ด ๊ทœ์น™์ด ๋‹ค์†Œ ๋‚œ์žกํ•˜๊ณ  ์ผ๊ด€๋˜์ง€ ์•Š์€ ์  +- [ ] border-sizing : border-box ๋กœ ๋ ˆ์ด์•„์›ƒ ๋ฐ€๋ฆผ์„ ์ดˆ๊ธฐ์— ๋ฐฉ์ง€ํ•˜์ง€ ๋ชปํ•œ ์  diff --git a/css/footer.css b/css/footer.css new file mode 100644 index 00000000..6fe5b590 --- /dev/null +++ b/css/footer.css @@ -0,0 +1,106 @@ +footer { + height: 200px; + background-color: #f8f8fa; +} + +.flex-space { +flex-grow: 1; +} + +/* TOP */ +footer .inner { + height: 100%; + display: flex; + flex-direction: column; + justify-content: space-between; +} + +footer .footer__top { + height: 20%; + padding: 20px 0; + display: flex; +} + +footer .footer__top ul { + display: flex; + align-items: center; +} + +footer .footer__top ul li { + margin-right: 10px; + font-size: 12px; +} + +footer .footer__top ul li:hover { + cursor: pointer; + text-decoration: underline; +} + +footer .footer__top ul li:nth-child(7) { + font-weight: 800; +} + +footer .footer__top button { + font-size: 14px; + color: #333; + display: flex; + align-items: center; + padding: 3px 20px; + border: 1.5px solid rgba(0, 0, 0, 0.3); + border-radius: 20px; +} + +footer .footer__top button span:first-child { + font-size: 20px; +} + +/* BOTTOM */ +footer .footer__bot { + height: 80%; + display: flex; + padding-top: 20px; +} + +footer .footer__bot div:first-child { + height: 50px; + width: 150px; + background-image: url(../images/logo-opacity_new2.png); + margin-right: 15px; +} + +footer .footer__bot ul { + font-size: 14px; + display: flex; + flex-direction: column; +} + +footer .footer__bot ul li { + padding-bottom: 7px; +} + +footer .footer__bot div:last-child { + display: flex; +} + +footer .footer__bot div:last-child i { + height: 30px; + width: 30px; + margin-left: 7px; +} + +footer .footer__bot div:last-child i:hover { + cursor: pointer; +} + +footer .footer__bot div:last-child i:nth-child(1) { + background-image: url(../images/ico-youtubeN.png); +} +footer .footer__bot div:last-child i:nth-child(2) { + background-image: url(../images/ico-instagramN.png); +} +footer .footer__bot div:last-child i:nth-child(3) { + background-image: url(../images/ico-facebookN.png); +} +footer .footer__bot div:last-child i:nth-child(4) { + background-image: url(../images/ico-twitterN.png); +} \ No newline at end of file diff --git a/css/information.css b/css/information.css new file mode 100644 index 00000000..86a24e05 --- /dev/null +++ b/css/information.css @@ -0,0 +1,173 @@ +aside { + display: flex; + flex-direction: column; + align-items: center; +} + +.banner--moved { + transform: translateX(-185px); +} + +.info__title { + display: flex; + height: 100px; + align-items: center; + font-size: 27px; + font-weight: 540; + color: #252451; +} + +.info__banner { + width: 1300px; + display: flex; + justify-content: space-between; + position: relative; +} + +.info__banner button { + position: absolute; + top: 0; + bottom: 0; + margin: auto 0; +} + +.info__banner button:first-child { + left: 50px; +} + +.info__banner ul + button { + right: 50px; +} + +.info__banner ul { + box-sizing: border-box; + overflow: hidden; + display: flex; +} + +.info__banner ul li { + width: 170px; + height: 170px; + flex-shrink: 0; + border-radius: 15px; + background-repeat: no-repeat; + background-size: cover; + margin-right: 16px; + transition: transform .3s ease-in-out; +} + +.info__banner ul li:hover { + cursor: pointer; + background-position-y: -170px; +} + +.info__banner ul li:nth-child(1) { + background-image: url(../images/bg-main-megainfo-dolby.png); +} +.info__banner ul li:nth-child(2) { + background-image: url(../images/bg-main-megainfo-private.png) ; +} +.info__banner ul li:nth-child(3) { + background-image: url(../images/bg-main-megainfo-boutique.png) ; +} +.info__banner ul li:nth-child(4) { + background-image: url(../images/bg-main-megainfo-mx.png) ; +} +.info__banner ul li:nth-child(5) { + background-image: url(../images/bg-main-megainfo-comfort.png) ; +} +.info__banner ul li:nth-child(6) { + background-image: url(../images/bg-main-megainfo-puppy.jpg) ; +} +.info__banner ul li:nth-child(7) { + background-image: url(../images/bg-main-megainfo-kids.png) ; + margin-right: 0; +} + +.info__text { + width: 100%; + height: 150px; + display: flex; + align-items: center; + font-size: 15px; +} + +.info__text > div { + width: 100%; + border-top: .5px solid rgba(0, 0, 0, 0.2); + border-bottom: .5px solid rgba(0, 0, 0, 0.2); + padding: 20px; +} + +.info__text .inner { + display: flex; + justify-content: space-between; +} + +.info__text .inner > span:first-child { + margin-right: 40px +} + +.info__text .inner .text__center { + display: flex; + flex-grow: 1; + justify-content: space-between; + margin: 0 15px; +} + +.info__text .inner .text__center div:hover { + cursor: pointer; + text-decoration: underline; +} + +.info__text .inner .text__center div span:first-child { + font-weight: 600; + color: #252451; +} + +.info__text .inner .text__center > span { + color: rgba(0, 0, 0, 0.5); +} + +.info__text .inner div:last-child { + margin-left: 20px; +} + +.info__text .inner div:last-child:hover span:first-child{ + cursor: pointer; + text-decoration: underline; +} + +.info__text .inner div:last-child span:last-child { + font-size: 14px; +} + +.info__icon { + height: 400px; +} + +.info__icon .inner { + display: flex; + justify-content: space-between; +} + +.info__icon .inner div { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + text-align: center; + font-size: 14px; +} + +.info__icon .inner div:hover { + cursor: pointer; +} + +.info__icon .inner div img { + margin: 15px 35px; +} + +.info__icon .inner div:hover span { + text-decoration: underline; +} \ No newline at end of file diff --git a/css/main.css b/css/main.css new file mode 100644 index 00000000..6a2846d6 --- /dev/null +++ b/css/main.css @@ -0,0 +1,309 @@ +/* COMMON */ +body { + font-family:Arial, Helvetica, sans-serif; +} + +main { + height: 940px; + width: 100%; +} + +.main__bg { + height: 800px; + width: 100%; + position: absolute; + top: 0; + left: 0; + right: 0; + z-index: -1; +} + +.main__bg .bg-image { + width: 100%; + height: 100%; + background-image: url(../images/background2.jpg); + background-repeat: no-repeat; + background-size: cover; + filter: blur(30px); +} + +/* ๋ฒ„ํŠผ ๊ธฐ๋ณธ์†์„ฑ ์ดˆ๊ธฐํ™” */ +button { + background: none ; + border:none; + box-shadow:none; + border-radius:0; + padding:0; + overflow:visible; + cursor:pointer +} + +.inner { + width: 1100px; + margin: 0 auto; + position: relative; +} + +section { + height: 840px; + background-color: rgba(0, 0, 0, 0.7); + color: #fff; +} + +section .inner { + height: 100%; +} + +/* section top */ +.section__top { + height: 13%; + display: flex; + justify-content: center; + position: relative; +} + +.section__top header { + font-size: 14px; + font-weight: 600; + padding-bottom: 10px; + position: absolute; + bottom: 10px; + border-bottom: 1px solid rgba(255,255,255,0.4); +} + +.section__top header:hover, +.section__top div:hover { + cursor: pointer; +} + +.section__top div:hover span:first-child { + text-decoration: underline; +} + +.section__top div { + display: flex; + align-items: center; + font-size: 15px; + position: absolute; + right: 0; + bottom: 0; + color: rgba(255,255,255,0.6); +} + +/* section mid */ +.section__mid { + height: 52%; + padding-top: 20px; + box-sizing: border-box; + display: flex; + justify-content: space-between; +} + +.section__mid .boxoffice__block > div:first-child { + border-radius: 6px; + background-color: #000; + position: relative; +} + +.section__mid .boxoffice__block img { + border-radius: 6px; + width: 245px; + height: 352px; + transition: .2s ease-in-out; + position: relative; + z-index: 1; +} + +.section__mid .boxoffice__block img:hover { + opacity: 0.1; + cursor: pointer; +} + +.section__mid .boxoffice__block img + div { + display: block; + position: absolute; + box-sizing: border-box; + padding: 25px; + width: 100%; + height: 100%; + top: 0; + left: 0; +} + +.section__mid .boxoffice__block img + div:hover { + cursor: pointer; +} + +.section__mid .boxoffice__block img + div > span { + display: block; + height: 85%; + font-size: 14px; + line-height: 1.4; +} + +.section__mid .boxoffice__block img + div div { + width: 100%; + height: 15%; + display: flex; + align-items: center; + justify-content: center; + border-top: 1px solid #333; +} + +.section__mid .boxoffice__block img + div div span { + margin: 0 10px; +} + +.section__mid .boxoffice__block img + div div span:first-child { + font-size: 13px; +} +.section__mid .boxoffice__block img + div div span:last-child { + font-size: 28px; + color: #037B94; +} + +.section__mid .boxoffice__block__like { + margin-top: 5px; + height: 40px; + display: flex; +} + +.section__mid .boxoffice__block__like div { + height: 100%; + text-align: center; + display: flex; + align-items: center; + justify-content: center; + border-radius: 4px; + font-size: 14px; +} + +.section__mid .boxoffice__block__like div:hover { + cursor: pointer; +} + +.section__mid .boxoffice__block__like div:first-child { + width: 30%; + background-color: #151110; + margin-right: 5px; + border: 1px solid #333; +} + +.section__mid .boxoffice__block__like div:last-child { + width: 70%; + background-color: #037B94; + border: 1px solid #000; +} + + +/* section bpt */ +.section__bot { + + height: 35%; + display: flex; + flex-direction: column; + justify-content: center; +} + +.section__bot .movie__table { + height: 25%; + display: flex; + justify-content: space-between; + background-color: rgba(0, 0, 0, 0.3); +} + +.section__bot .movie__table li { + padding: 0 30px; + box-sizing: border-box; + width: 25%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; + position: relative; +} + +.section__bot .movie__table li input { + border: none; + height: 30px; + background-color: rgba(0, 0, 0, 0.0) ; + border-bottom: 2px solid #fff; + color: #fff; + font-size: 15px; +} + +.section__bot .movie__table li input::placeholder { + color: rgba(255, 255, 255, 0.5); + font-size: 15px; +} + +.section__bot .movie__table li input:focus { + outline: none; +} + +.section__bot .movie__table li input + div { + border-bottom: 2px solid #fff; + margin-top: 10px; +} + +.section__bot .movie__table li input + div:hover { + cursor: pointer; +} + +.section__bot .movie__table li img { + margin-right: 5px; +} + +.section__bot .movie__table li::before { + content: ""; + width: 1px; + height: 30px; + background-color: rgba(255,255,255,0.4); + position: absolute; + left: 0; +} + +.section__bot .movie__table li:first-child:before{ + display: none; +} + +.section__bot .movie__table li:hover img { + cursor: pointer; +} + +.section__bot .movie__table li:hover span { + cursor: pointer; + text-decoration: underline; +} + +.section__bot div { + height: 30%; + text-align: center; + position: relative; +} + +.section__bot div img { + position: absolute; + top: 0; + bottom: 0; + margin: auto; + animation-duration: 1.5s; + animation-name: updown; + animation-delay: .5s; + animation-iteration-count: infinite; +} + +@keyframes updown { + 0% { + top: 0; + } + 25% { + top: -20px; + } + 75% { + top: 0; + } + 100% { + top: 0; + } +} \ No newline at end of file diff --git a/css/nav-bar.css b/css/nav-bar.css new file mode 100644 index 00000000..e725dc6b --- /dev/null +++ b/css/nav-bar.css @@ -0,0 +1,379 @@ +nav { + background-color: rgba(0, 0, 0, 0.8); + color: #fff; + position: relative; + border-bottom: 1px solid gray; +} + +nav > .inner { + height: 90px; + position: relative; + z-index: 2; +} + +.logo { + position: absolute; + width: 140px; + height: 50px; + left: 0; + right: 0; + top: 0; + bottom: 0; + margin: auto; +} + +/* top */ +.nav__top { + width: 100%; + height: 40%; + display: flex; +} + +.top__left, +.top__right { + width: 50%; + height: 100%; + color: gray; + font-size: 13px; + display: flex; + align-items: center; +} + +.top__left { + justify-content: flex-start; +} + +.top__left li { + text-transform: uppercase; + margin-right: 13px; +} + +.top__left li:hover, +.top__right li:hover { + cursor: pointer; + text-decoration: underline; +} + +.top__right { + justify-content: flex-end; +} + +.top__right li { + margin-left: 13px; +} + + + + +/* bottom */ +.searchbtn--clicked { + text-decoration: underline; +} + +.nav__bot { + width: 100%; + height: 60%; + display: flex; + position: relative; +} + +.bot__left, +.bot__right { + width: 50%; + height: 100%; + font-size: 17px; + display: flex; + align-items: center; +} + +.bot__right { + justify-content: flex-end; +} + +.items { + position: relative; +} + +.items div:first-child { + margin: 0 30px; + padding: 18px 0; +} + +.items:hover > div:first-child { + padding-bottom: 15px; + border-bottom: 3px solid #fff; + cursor: pointer; +} + +.items .item__content { + font-size: 14px; +} + +.items .item__content ul { + width: 100%; + position: fixed; + display: none; +} + +.items:hover .item__content ul { + display: flex; + padding: 10px; +} + +.items .item__content ul li { + display: block; + padding: 0 15px; +} + +.items .item__content ul li:hover { + cursor: pointer; + text-decoration: underline; +} + +.nav__bot .menu { + display: flex; + margin-right: 50px; +} + +.nav__bot .menu .menu__element .menu__icon { + color: #fff; + margin: 0 8px; +} + +.nav__bot .menu .menu__element .menu__icon:hover { + cursor: pointer; +} + +.nav__bot .menu .menu__element .menu__content { + width: 100%; + left: 0; + top: 55px; + display: none; + position: absolute; + z-index: 1; +} + +.menu--dropdown { + background-color: #333; +} + +.menu--dropdown h2 { + font-size: 22px; + text-transform: uppercase; +} + +.menu--dropdown .inner { + padding: 50px 0; +} + +.menu--dropdown .inner > ul { + margin-top: 20px; + display: flex; + flex-wrap: wrap; +} + +.menu--dropdown .inner > ul li { + text-align: center; + margin: 0 15px; +} + +.menu--dropdown .inner > ul li div { + font-size: 18px; + font-weight: 600; + align-items: center; + padding: 15px 0; + border-top: 1px solid rgba(68, 68, 68, 0.5); + border-bottom: 1px solid rgba(68, 68, 68, 0.5); +} +.menu--dropdown .inner > ul li ul { + min-width: 130px +} + +.menu--dropdown .inner > ul li ul li { + font-size: 13px; + padding: 10px 0; +} + +.menu--dropdown .inner > ul li ul li:hover { + cursor: pointer; + text-decoration: underline; + color: #339EB2; + } + + .search--dropdown { + background-color: #351F67; + height: 380px; +} + +.search--dropdown .inner { + height: 280px; +} + +.search--dropdown .inner > div { + display: flex; + box-sizing: border-box; + height: 100px; + padding: 10px 0; +} + + .inner > div button { + color: #fff; + font-size: 14px; + font-weight: 500; + background: none ; +} + +.movie-image { + padding: 0 50px 40px 0; +} + +.movie-image img { + width: 150px; + height: 214px; +} + +.movie-lists { + display: flex; + flex-direction: column; + justify-content: space-between; + width: 240px; + height: 214px; + margin-bottom: 40px; +} + +.movie-lists > li { + display: flex; +} + +.movie-lists > li div:first-child { + font-size: 30px; + font-style: italic; + margin-right: 10px; +} + +.movie-lists > li div:last-child { + display: flex; + font-size: 16px; + align-items: center; +} + +.movie-lists > li div:last-child:hover { + text-decoration: underline; + cursor: pointer; +} + +.search--dropdown .inner > div button:first-child { + margin-right: 10px; +} + +.search--dropdown .inner > div > button:last-child { + margin-left: 10px; +} + +.search--dropdown .inner div:last-child { + height: 100%; + box-sizing: border-box; +} + +.search--dropdown .inner div:last-child > ul { + height: 100%; + width: 100%; + display: flex; + padding: 10px 0; + align-items: center; +} + +.search--dropdown .inner div:last-child > ul .search__movie { + display: flex; + width: 65%; + justify-content: center; +} + +.search--dropdown .inner div:last-child > ul li input { + width: 400px; + height: 50px; + background-color: #351F67; + border: none; + border-bottom: 2px solid #fff; + font-size: 18px; + font-weight: 600; + color: #fff; + padding-left: 10px; +} + +.search--dropdown .inner div:last-child > ul li input:focus { + outline: none; +} + +.search--dropdown .inner div:last-child > ul li button { + width: 50px; + height: 54px; + border: none; + background-color: #351F67; + color: #fff; + border-bottom: 2px solid #fff; +} + +.search--dropdown .inner div:last-child > ul li input::placeholder { + color: #fff; + font-size: 18px; +} + +.calendar { + margin-left: 30px; +} + +.calendar .person__icon { + margin-left: 10px; +} + +.calendar__element > span:hover { + cursor: pointer; +} + +.person__content { + height: 120px; + width: 100%; + left: 0; + top: 55px; + display: none; + position: absolute; + z-index: 1; + background-color: #333; +} + +.person__content .inner div:first-child { + position: absolute; + font-size: 15px; + top: 35px; + left: 340px; +} + +.person__content .inner div:last-child { + position: absolute; + font-size: 11px; + top: 70px; + left: 420px; +} + +.person__content .inner div:last-child button { + margin-right: 15px; + font-size: 15px; + border: 1px solid #fff; + border-radius: 7px; + padding: 5px 30px; +} + +.person__content .inner div:last-child button:hover { + color: #333; + background-color: #fff; +} + +.person__content .inner div:last-child span { + color: rgba(255,255,255,.5); + text-decoration: underline; +} + +.person__content .inner div:last-child span:hover { + cursor: pointer; +} \ No newline at end of file diff --git a/images/background1.jpg b/images/background1.jpg new file mode 100644 index 00000000..9dc312ef Binary files /dev/null and b/images/background1.jpg differ diff --git a/images/background2.jpg b/images/background2.jpg new file mode 100644 index 00000000..088bbf82 Binary files /dev/null and b/images/background2.jpg differ diff --git a/images/bg-main-megainfo-boutique.png b/images/bg-main-megainfo-boutique.png new file mode 100644 index 00000000..c1ba10af Binary files /dev/null and b/images/bg-main-megainfo-boutique.png differ diff --git a/images/bg-main-megainfo-comfort.png b/images/bg-main-megainfo-comfort.png new file mode 100644 index 00000000..392486b4 Binary files /dev/null and b/images/bg-main-megainfo-comfort.png differ diff --git a/images/bg-main-megainfo-dolby.png b/images/bg-main-megainfo-dolby.png new file mode 100644 index 00000000..75105588 Binary files /dev/null and b/images/bg-main-megainfo-dolby.png differ diff --git a/images/bg-main-megainfo-kids.png b/images/bg-main-megainfo-kids.png new file mode 100644 index 00000000..564ccf15 Binary files /dev/null and b/images/bg-main-megainfo-kids.png differ diff --git a/images/bg-main-megainfo-mx.png b/images/bg-main-megainfo-mx.png new file mode 100644 index 00000000..68f05756 Binary files /dev/null and b/images/bg-main-megainfo-mx.png differ diff --git a/images/bg-main-megainfo-private.png b/images/bg-main-megainfo-private.png new file mode 100644 index 00000000..76242829 Binary files /dev/null and b/images/bg-main-megainfo-private.png differ diff --git a/images/bg-main-megainfo-puppy.jpg b/images/bg-main-megainfo-puppy.jpg new file mode 100644 index 00000000..38f8ac8b Binary files /dev/null and b/images/bg-main-megainfo-puppy.jpg differ diff --git a/images/btn-specialtheater-next.png b/images/btn-specialtheater-next.png new file mode 100644 index 00000000..45164439 Binary files /dev/null and b/images/btn-specialtheater-next.png differ diff --git a/images/btn-specialtheater-prev.png b/images/btn-specialtheater-prev.png new file mode 100644 index 00000000..83c86859 Binary files /dev/null and b/images/btn-specialtheater-prev.png differ diff --git a/images/ico-boxoffice-main.png b/images/ico-boxoffice-main.png new file mode 100644 index 00000000..0e5df277 Binary files /dev/null and b/images/ico-boxoffice-main.png differ diff --git a/images/ico-facebookN.png b/images/ico-facebookN.png new file mode 100644 index 00000000..9f6b7730 Binary files /dev/null and b/images/ico-facebookN.png differ diff --git a/images/ico-instagramN.png b/images/ico-instagramN.png new file mode 100644 index 00000000..fb6e1904 Binary files /dev/null and b/images/ico-instagramN.png differ diff --git a/images/ico-main-boutique.png b/images/ico-main-boutique.png new file mode 100644 index 00000000..3a919689 Binary files /dev/null and b/images/ico-main-boutique.png differ diff --git a/images/ico-main-customer.png b/images/ico-main-customer.png new file mode 100644 index 00000000..138d2b99 Binary files /dev/null and b/images/ico-main-customer.png differ diff --git a/images/ico-main-faq.png b/images/ico-main-faq.png new file mode 100644 index 00000000..48f6fd34 Binary files /dev/null and b/images/ico-main-faq.png differ diff --git a/images/ico-main-group.png b/images/ico-main-group.png new file mode 100644 index 00000000..bf675370 Binary files /dev/null and b/images/ico-main-group.png differ diff --git a/images/ico-main-lost.png b/images/ico-main-lost.png new file mode 100644 index 00000000..8162e4fe Binary files /dev/null and b/images/ico-main-lost.png differ diff --git a/images/ico-main-qna.png b/images/ico-main-qna.png new file mode 100644 index 00000000..0faeb63f Binary files /dev/null and b/images/ico-main-qna.png differ diff --git a/images/ico-mouse.png b/images/ico-mouse.png new file mode 100644 index 00000000..4bf72391 Binary files /dev/null and b/images/ico-mouse.png differ diff --git a/images/ico-quick-reserve-main.png b/images/ico-quick-reserve-main.png new file mode 100644 index 00000000..6361624a Binary files /dev/null and b/images/ico-quick-reserve-main.png differ diff --git a/images/ico-schedule-main.png b/images/ico-schedule-main.png new file mode 100644 index 00000000..0b9dab2d Binary files /dev/null and b/images/ico-schedule-main.png differ diff --git a/images/ico-twitterN.png b/images/ico-twitterN.png new file mode 100644 index 00000000..f8e2d96c Binary files /dev/null and b/images/ico-twitterN.png differ diff --git a/images/ico-youtubeN.png b/images/ico-youtubeN.png new file mode 100644 index 00000000..fb22b195 Binary files /dev/null and b/images/ico-youtubeN.png differ diff --git a/images/logo-opacity_new2.png b/images/logo-opacity_new2.png new file mode 100644 index 00000000..d644fcbe Binary files /dev/null and b/images/logo-opacity_new2.png differ diff --git a/images/logo-white_new2.png b/images/logo-white_new2.png new file mode 100644 index 00000000..671f9213 Binary files /dev/null and b/images/logo-white_new2.png differ diff --git "a/images/\353\215\224 \355\215\274\354\212\244\355\212\270 \354\212\254\353\236\250\353\215\251\355\201\254.jpg" "b/images/\353\215\224 \355\215\274\354\212\244\355\212\270 \354\212\254\353\236\250\353\215\251\355\201\254.jpg" new file mode 100644 index 00000000..c1fd4294 Binary files /dev/null and "b/images/\353\215\224 \355\215\274\354\212\244\355\212\270 \354\212\254\353\236\250\353\215\251\355\201\254.jpg" differ diff --git "a/images/\353\215\230\354\240\204 \354\225\244 \353\223\234\353\236\230\352\263\244 \353\217\204\354\240\201\353\223\244\354\235\230 \353\252\205\354\230\210.jpg" "b/images/\353\215\230\354\240\204 \354\225\244 \353\223\234\353\236\230\352\263\244 \353\217\204\354\240\201\353\223\244\354\235\230 \353\252\205\354\230\210.jpg" new file mode 100644 index 00000000..69f134e1 Binary files /dev/null and "b/images/\353\215\230\354\240\204 \354\225\244 \353\223\234\353\236\230\352\263\244 \353\217\204\354\240\201\353\223\244\354\235\230 \353\252\205\354\230\210.jpg" differ diff --git "a/images/\353\240\210\353\257\270\354\240\234\353\235\274\353\270\224.jpg" "b/images/\353\240\210\353\257\270\354\240\234\353\235\274\353\270\224.jpg" new file mode 100644 index 00000000..b3602c2a Binary files /dev/null and "b/images/\353\240\210\353\257\270\354\240\234\353\235\274\353\270\224.jpg" differ diff --git "a/images/\353\246\254\353\260\224\354\232\264\353\223\234.jpg" "b/images/\353\246\254\353\260\224\354\232\264\353\223\234.jpg" new file mode 100644 index 00000000..669e7b02 Binary files /dev/null and "b/images/\353\246\254\353\260\224\354\232\264\353\223\234.jpg" differ diff --git "a/images/\353\271\204\352\270\264 \354\226\264\352\262\214\354\235\270.jpg" "b/images/\353\271\204\352\270\264 \354\226\264\352\262\214\354\235\270.jpg" new file mode 100644 index 00000000..bb04d9e6 Binary files /dev/null and "b/images/\353\271\204\352\270\264 \354\226\264\352\262\214\354\235\270.jpg" differ diff --git "a/images/\354\212\244\354\246\210\353\251\224\354\235\230 \353\254\270\353\213\250\354\206\215.jpg" "b/images/\354\212\244\354\246\210\353\251\224\354\235\230 \353\254\270\353\213\250\354\206\215.jpg" new file mode 100644 index 00000000..c43048e0 Binary files /dev/null and "b/images/\354\212\244\354\246\210\353\251\224\354\235\230 \353\254\270\353\213\250\354\206\215.jpg" differ diff --git "a/images/\354\225\204\353\260\224\355\203\200 \353\254\274\354\235\230 \352\270\270.jpg" "b/images/\354\225\204\353\260\224\355\203\200 \353\254\274\354\235\230 \352\270\270.jpg" new file mode 100644 index 00000000..a0642ae7 Binary files /dev/null and "b/images/\354\225\204\353\260\224\355\203\200 \353\254\274\354\235\230 \352\270\270.jpg" differ diff --git "a/images/\355\214\250\354\231\225\353\263\204\355\235\254 \353\224\224 \354\230\244\353\246\254\354\247\200\353\204\220.jpg" "b/images/\355\214\250\354\231\225\353\263\204\355\235\254 \353\224\224 \354\230\244\353\246\254\354\247\200\353\204\220.jpg" new file mode 100644 index 00000000..455a357c Binary files /dev/null and "b/images/\355\214\250\354\231\225\353\263\204\355\235\254 \353\224\224 \354\230\244\353\246\254\354\247\200\353\204\220.jpg" differ diff --git "a/images/\355\225\264\355\224\274 \355\210\254\352\262\214\353\215\224 \353\246\254\353\247\210\354\212\244\355\204\260\353\247\201.jpg" "b/images/\355\225\264\355\224\274 \355\210\254\352\262\214\353\215\224 \353\246\254\353\247\210\354\212\244\355\204\260\353\247\201.jpg" new file mode 100644 index 00000000..6f1e3c7e Binary files /dev/null and "b/images/\355\225\264\355\224\274 \355\210\254\352\262\214\353\215\224 \353\246\254\353\247\210\354\212\244\355\204\260\353\247\201.jpg" differ diff --git a/index.html b/index.html new file mode 100644 index 00000000..3c8a878c --- /dev/null +++ b/index.html @@ -0,0 +1,616 @@ + + + + + + + + MEET PLAY SHARE, ๋ฉ”๊ฐ€๋ฐ•์Šค + + + + + + + + + + + +
+
+
+
+ +
+
+
+
๋ฐ•์Šค์˜คํ”ผ์Šค
+
+ ๋” ๋งŽ์€ ์˜ํ™”๋ณด๊ธฐ + add +
+
+
+
+
+ +
+ โ€œ์ด ๊ทผ์ฒ˜์— ํํ—ˆ ์—†๋‹ˆ? ๋ฌธ์„ ์ฐพ๊ณ  ์žˆ์–ดโ€
๊ทœ์Šˆ์˜ ํ•œ์ ํ•œ + ๋งˆ์„์— ์‚ด๊ณ  ์žˆ๋Š” ์†Œ๋…€ โ€˜์Šค์ฆˆ๋ฉ”โ€™๋Š” ๋ฌธ์„ ์ฐพ์•„ ์—ฌํ–‰ ์ค‘์ธ ์ฒญ๋…„ + โ€˜์†Œํƒ€โ€™๋ฅผ ๋งŒ๋‚œ๋‹ค.
+
+ ๊ด€๋žŒํ‰ + 9 +
+
+
+ +
+
+
+ +
+ ์ „๊ตญ ์ œํŒจ๋ฅผ ๊ฟˆ๊พธ๋Š” ๋ถ์‚ฐ๊ณ  ๋†๊ตฌ๋ถ€ 5์ธ๋ฐฉ์˜ ๊ฟˆ๊ณผ ์—ด์ •, ๋ฉˆ์ถ”์ง€ + ์•Š๋Š” ๋„์ „์„ ๊ทธ๋ฆฐ ์˜ํ™” +
+ ๊ด€๋žŒํ‰ + 9.5 +
+
+
+ +
+
+
+ +
+ ํ•œ๋•Œ๋Š” ๋ช…์˜ˆ๋กœ์šด ๊ธฐ์‚ฌ์˜€์ง€๋งŒ, โ€˜์–ด๋–ค ์‚ฌ๊ฑดโ€™ ์ดํ›„ โ€˜ํ™€๊ฐ€โ€™, + โ€˜์‚ฌ์ด๋จผโ€™, โ€˜ํฌ์ง€โ€™์™€ ํ•จ๊ป˜ ๋„์ ์งˆ์„ ํ•˜๊ฒŒ ๋œ โ€˜์—๋“œ๊ธดโ€™. + โ€˜์†Œํ”ผ๋‚˜โ€™์˜ ์ œ์•ˆ์œผ๋กœ โ€™๋ถ€ํ™œ์˜ ์„œํŒโ€™์„ ์–ป๊ธฐ ์œ„ํ•ด โ€˜์ฝ”๋ฆฐ์˜ ์„ฑโ€™์— + ์ž ์ž…ํ•˜์ง€๋งŒ โ€˜ํฌ์ง€โ€™์™€ โ€˜์†Œํ”ผ๋‚˜โ€™์˜ ๋ฐฐ์‹ ์œผ๋กœ ์‹คํŒจ +
+ ๊ด€๋žŒํ‰ + 8.5 +
+
+
+ +
+
+
+ +
+ โ€œ์šฐ๋ฆฌ ๋‹ค์‹œ ์‹œ์ž‘ํ•˜์žโ€ ๊ทธ๊ฐ€ ๋‹ค์‹œ ์‹œ์ž‘ํ•˜์ž๊ณ  ํ•˜๋ฉด ๋‚œ ๋Š˜ ๊ทธ์™€ + ํ•จ๊ป˜ํ–ˆ๋‹ค
ํ™์ฝฉ์„ ๋– ๋‚˜ ์ง€๊ตฌ ๋ฐ˜๋Œ€ํŽธ ๋ถ€์—๋…ธ์Šค์•„์ด๋ ˆ์Šค์— ์˜จ + โ€˜๋ณด์˜โ€™๊ณผ โ€˜์•„ํœ˜โ€™ ์ด๊ณผ์ˆ˜ ํญํฌ๋ฅผ ์ฐพ์•„๊ฐ€๋˜ ์ค‘ ๋‘ ์‚ฌ๋žŒ์€ ์‚ฌ์†Œํ•œ + ๋‹คํˆผ ๋์— ์ด๋ณ„ํ•˜๊ณ  ๊ฐ์ž์˜ ๊ธธ์„ ๋– ๋‚œ๋‹ค. +
+
+ ๊ด€๋žŒํ‰ + 8.8 +
+
+
+ +
+
+
+
    +
  • + +
    search
    +
  • +
  • + + ์ƒ์˜์‹œ๊ฐ„ํ‘œ +
  • +
  • + + ๋ฐ•์Šค์˜คํ”ผ์Šค +
  • +
  • + + ๋น ๋ฅธ์˜ˆ๋งค +
  • +
+
+ +
+
+
+
+
+ + + + diff --git a/js/main.js b/js/main.js new file mode 100644 index 00000000..b0d22365 --- /dev/null +++ b/js/main.js @@ -0,0 +1,15 @@ +const infoBtnPrv = document.querySelector(".info__banner button:first-child") +const infoBtnNxt = document.querySelector(".info__banner ul + button") +const infoBanner = document.querySelectorAll(".info__banner ul li") + +infoBtnNxt.addEventListener("click", function () { + infoBanner.forEach(function(event) { + event.classList.add("banner--moved") + }) +}) + +infoBtnPrv.addEventListener("click", function () { + infoBanner.forEach(function(event) { + event.classList.remove("banner--moved") + }) +}) \ No newline at end of file diff --git a/js/nav-bar.js b/js/nav-bar.js new file mode 100644 index 00000000..6b46fcdc --- /dev/null +++ b/js/nav-bar.js @@ -0,0 +1,88 @@ +const menuIcon = document.querySelector(".nav__bot .menu--onoff") +const menuDrop = document.querySelector(".nav__bot .menu--dropdown") +const searchIcon = document.querySelector(".nav__bot .search--onoff") +const searchDrop = document.querySelector(".nav__bot .search--dropdown") +const personIcon = document.querySelector(".nav__bot .person--onoff") +const personDrop = document.querySelector(".nav__bot .person--dropdown") + +menuIcon.addEventListener("click", function() { + if (menuDrop.style.display == "none") { + menuDrop.style.display = "block"; + menuIcon.querySelector(".material-symbols-outlined").innerHTML = "cancel"; + searchDrop.style.display = "none"; + personDrop.style.display = "none"; + searchIcon.querySelector(".material-symbols-outlined").innerHTML = "search"; + personIcon.querySelector(".material-symbols-outlined").innerHTML = "person"; + } else { + menuDrop.style.display = "none"; + menuIcon.querySelector(".material-symbols-outlined").innerHTML = "menu"; + } +}) + +searchIcon.addEventListener("click", function() { + if (searchDrop.style.display == "none") { + searchDrop.style.display = "block"; + searchIcon.querySelector(".material-symbols-outlined").innerHTML = "cancel"; + menuDrop.style.display = "none"; + personDrop.style.display = "none"; + menuIcon.querySelector(".material-symbols-outlined").innerHTML = "menu" + personIcon.querySelector(".material-symbols-outlined").innerHTML = "person"; + } else { + searchDrop.style.display = "none"; + searchIcon.querySelector(".material-symbols-outlined").innerHTML = "search"; + } +}) + +personIcon.addEventListener("click", function() { + if (personDrop.style.display == "none") { + personDrop.style.display = "block"; + personIcon.querySelector(".material-symbols-outlined").innerHTML = "cancel"; + menuDrop.style.display = "none"; + searchDrop.style.display = "none"; + menuIcon.querySelector(".material-symbols-outlined").innerHTML = "menu" + searchIcon.querySelector(".material-symbols-outlined").innerHTML = "search" + } else { + personDrop.style.display = "none"; + personIcon.querySelector(".material-symbols-outlined").innerHTML = "person"; + } +}) + +const movieTitleHover = document.querySelectorAll(".movie--list") +const movieImage = document.querySelector("#movie-image-changes"); + +movieTitleHover.forEach(function(span) { + span.addEventListener("mouseover", function(event) { + movieImage.src = `./images/${event.target.innerText}.jpg`; + }) +}) + +const reservBtn = document.querySelector(".search--dropdown .inner > div button:first-child"); +const customBtn = document.querySelector(".search--dropdown .inner > div button:last-child"); +const searchBtn = document.querySelectorAll(".search--dropdown .inner > div button") + +reservBtn.addEventListener("click", function(event) { + event.target.classList.add("searchbtn--clicked") + customBtn.classList.remove("searchbtn--clicked") + if (reservBtn.classList.contains("searchbtn--clicked")) { + movieImage.src = `./images/์Šค์ฆˆ๋ฉ”์˜ ๋ฌธ๋‹จ์†.jpg`; + movieTitleHover[0].innerText = "์Šค์ฆˆ๋ฉ”์˜ ๋ฌธ๋‹จ์†" + movieTitleHover[1].innerText = "๋” ํผ์ŠคํŠธ ์Šฌ๋žจ๋ฉํฌ" + movieTitleHover[2].innerText = "๋˜์ „ ์•ค ๋“œ๋ž˜๊ณค ๋„์ ๋“ค์˜ ๋ช…์˜ˆ" + movieTitleHover[3].innerText = "ํ•ดํ”ผ ํˆฌ๊ฒŒ๋” ๋ฆฌ๋งˆ์Šคํ„ฐ๋ง" + movieTitleHover[4].innerText = "ํŒจ์™•๋ณ„ํฌ ๋”” ์˜ค๋ฆฌ์ง€๋„" + } +}) + +customBtn.addEventListener("click", function(event) { + event.target.classList.add("searchbtn--clicked") + reservBtn.classList.remove("searchbtn--clicked") + if (customBtn.classList.contains("searchbtn--clicked")) { + movieImage.src = `./images/์•„๋ฐ”ํƒ€ ๋ฌผ์˜ ๊ธธ.jpg`; + movieTitleHover[0].innerText = "์•„๋ฐ”ํƒ€ ๋ฌผ์˜ ๊ธธ" + movieTitleHover[1].innerText = "๋ ˆ๋ฏธ์ œ๋ผ๋ธ”" + movieTitleHover[2].innerText = "๋” ํผ์ŠคํŠธ ์Šฌ๋žจ๋ฉํฌ" + movieTitleHover[3].innerText = "์Šค์ฆˆ๋ฉ”์˜ ๋ฌธ๋‹จ์†" + movieTitleHover[4].innerText = "๋น„๊ธด ์–ด๊ฒŒ์ธ" + } +}) +