๐Ÿ‘พ ์ˆœ์ˆ˜ CSS ๊ฒŒ์ž„๋ณด์ด

4608 ๋‹จ์–ด htmldogcssjavascript
์•ˆ๋…•ํ•˜์„ธ์š”!

HTML๊ณผ CSS๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋งจ ์ฒ˜์Œ๋ถ€ํ„ฐ ๋งŒ๋“  ์ˆ˜์ œ Nintendo Gameboy๋ฅผ ๋ณด์—ฌ๋“œ๋ฆฌ๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค. Javascript์— ์˜ํ•ด (์•ฝ๊ฐ„) ์• ๋‹ˆ๋ฉ”์ด์…˜๋ฉ๋‹ˆ๋‹ค. ๋‚ด ์ฒซ ๋ฒˆ์งธ ๊ฒŒ์ž„ ์ฝ˜์†”์ด์—ˆ์Šต๋‹ˆ๋‹ค. ์–ผ๋งˆ๋‚˜ ์•„๋ฆ„๋‹ค์šด ์ถ”์–ต์ž…๋‹ˆ๊นŒ! ๐Ÿ˜

๐Ÿ‘‰ ๋ผ์ด๋ธŒ ๋ฐ๋ชจ: https://baumannzone.github.io/gameboy-css/





๐Ÿ‘‰ ์†Œ์Šค ์ฝ”๋“œ:




๋ฐ”์šฐ๋งŒ์กด / ๊ฒŒ์ž„๋ณด์ด CSS


๐Ÿ‘พ Pure CSS GameBoy - ์• ๋‹ˆ๋ฉ”์ด์…˜๊ณผ ์˜ค๋ฆฌ์ง€๋„ ์‚ฌ์šด๋“œ ํฌํ•จ ๐Ÿ”Š




๋™์˜์ƒ:





์‹œ์ž‘ํ•˜์ž!



HTML์€ Pug(์ด์ „์—๋Š” jade๋ผ๊ณ  ํ•จ)๋กœ, CSS๋Š” Stylus CSS์œผ๋กœ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ด๊ฒƒ์€ ์‚ฌ์šฉ๋œ ์œ ์ผํ•œ HTML(Pug)์ž…๋‹ˆ๋‹ค.

  .gameboy
    .screen-cont
      .power
      .screen
        .header DOT MATRIX WITH STEREO SOUND
        .animated-text Nintendo
          .copy ยฎ
    .controls-cont
      .btn-direction
        .vertical
        .horizontal
      .btn-AB
      .btn-start-select
    .speakers
    .on-off < off-on >
    .phones phones

์—ฌ๊ธฐ์—์„œ ์ „์ฒด ํŒŒ์ผ์„ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค: index.pug .
๋˜ํ•œ ๋‹ค์Œ์€ CSS ํŒŒ์ผ(์Šคํƒ€์ผ๋Ÿฌ์Šค)์ž…๋‹ˆ๋‹ค. main.styl

Pure CSS Gameboy๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ์ง€๋งŒ ์•ฝ๊ฐ„์˜ ๋งˆ๋ฒ•์„ ์ถ”๊ฐ€ํ•˜๊ณ  ์‹ถ์—ˆ๊ธฐ ๋•Œ๋ฌธ์— ์•ฝ๊ฐ„์˜ Javascript์™€ CSS๋กœ ์• ๋‹ˆ๋ฉ”์ด์…˜๊ณผ ํšจ๊ณผ๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค ๐Ÿ”ฎ.
  • ๊ฒŒ์ž„๋ณด์ด๋ฅผ ์ผค ๋•Œ ๊ฐ€์žฅ ๋จผ์ € ๋ณด์ด๋Š” ๊ฒƒ์€ Nintendo ๋‹จ์–ด ์ „ํ™˜
  • ์ž…๋‹ˆ๋‹ค.
  • ์ „ํ™˜์ด ์™„๋ฃŒ๋˜๋ฉด "beep "๐Ÿ”Š ์†Œ๋ฆฌ๊ฐ€ ๋“ค๋ฆฝ๋‹ˆ๋‹ค.
  • ๋งˆ์ง€๋ง‰์œผ๋กœ ์žฅ์น˜๋ฅผ "์ผœ๋ฉด"์ „์› ํ‘œ์‹œ๋“ฑ์ด ์ผœ์ง€๋Š” ๊ฒƒ์„ ์‹œ๋ฎฌ๋ ˆ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.

  • ์ถ”๊ฐ€ โœ๏ธ: ์‚ฌ์šฉ๋œ ๊ธ€๊ผด์€ ๋‹Œํ…๋„์™€ ์œ ์‚ฌํ•œ ๊ธ€๊ผด์ธ jackster3000์˜ "Pretendo"์ž…๋‹ˆ๋‹ค. ์ง„์งœ ๋‹Œํ…๋„ ํฐํŠธ๋Š” ์ž˜ ์•Œ๋ ค์ ธ ์žˆ์ง€ ์•Š์Šต๋‹ˆ๋‹ค.



  • ๐Ÿท ๊ทธ๊ฒŒ ๋‹ค์•ผ, ์—ฌ๋Ÿฌ๋ถ„!

    ์งˆ๋ฌธ์ด ์žˆ์œผ์‹ ๊ฐ€์š”? ์•„๋ž˜ ๋Œ“๊ธ€์—์„œ ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜๋Š”์ง€ ์•Œ๋ ค์ฃผ์‹œ๊ฑฐ๋‚˜ ํŠธ์œ„ํ„ฐ( )์— ๋ช‡ ๋งˆ๋”” ๋‚จ๊ฒจ์ฃผ์„ธ์š”.

    ๋‹ค์Œ "Pure CSS"์•„์ด๋””์–ด๊ฐ€ ๋ฌด์—‡์ผ์ง€ ์•„์ง ์ƒ๊ฐ ์ค‘์ž…๋‹ˆ๋‹ค. ๋ฌด์—‡์„ ๋ณด๊ณ  ์‹ถ์œผ์‹ ๊ฐ€์š”?

    ์ด ๊ฒŒ์‹œ๋ฌผ์˜ ๋‚ด์šฉ์ด ๋งˆ์Œ์— ๋“œ์…จ๋‹ค๋ฉด ์ƒˆ๋กœ ์ถœ์‹œ๋œ ์ œ ์œ ํŠœ๋ธŒ ์ฑ„๋„์„ ๊ตฌ๋…ํ•˜์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค: .

    ๋˜ํ•œ ์›น ๊ฐœ๋ฐœ๊ณผ ๊ด€๋ จ๋œ #vuejs, #css #javascript, #testing ๋˜๋Š” ๊ธฐํƒ€ ์ฃผ์ œ์— ๊ด€์‹ฌ์ด ์žˆ๋‹ค๋ฉด Github์—์„œ ๋‚˜๋ฅผ ํŒ”๋กœ์šฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ €๋Š” ์ž์ฃผ ์˜คํ”ˆ ์†Œ์Šค ์ฝ˜ํ…์ธ ๋ฅผ ๋งŒ๋“ค๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.

    ์ด ๊ธฐ์‚ฌ๊ฐ€ ๋งˆ์Œ์— ๋“ค๋ฉด css-art ์‹œ๋ฆฌ์ฆˆ์˜ "Pure CSS Zombie"๋ฅผ ํ™•์ธํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.






    ๐Ÿฆ„ ์ฝ์–ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ๊ณง ๋ต™๊ฒ ์Šต๋‹ˆ๋‹ค! ๐Ÿฅณ
    ์•ˆ๋…•ํ•˜์„ธ์š”! | Github |

    ์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ