๐Ÿ’ป Dev/๐Ÿช„ ์›น (web) 4

[react] ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์—†์ด ๋ฌดํ•œ ์Šฌ๋ผ์ด๋“œ ์‡ผ ๊ตฌํ˜„ํ•˜๊ธฐ

์ž…๋ง›๋Œ€๋กœ ์Šฌ๋ผ์ด๋“œ ์‡ผ๋ฅผ ๊ตฌํ˜„ํ•˜๋ ค๋‹ค 3์ผ๊ฐ„ ์Œฉ์‡ผํ•œ ๋์— ์–ป์–ด๋‚ธ ์ฝ”๋“œ๋ฅผ ์ž๋ž‘ํ•˜๋Ÿฌ ์™”๋‹ค! ๋•๋ถ„์— ๋ฆฌ์•กํŠธ ๊ณต๋ถ€์— ์•„์ฃผ ํฐ ๋„์›€์ด ๋˜์—ˆ๋Š”๋ฐ, ์ฝ”๋“œ ๋˜ํ•œ ๋‚ด ์ž…๋ง›๋Œ€๋กœ์ด๋ฏ€๋กœ ํ˜น์—ฌ ์ง€์ €๋ถ„ํ•˜๋‹ค๊ณ  ๋Š๋ผ์‹ ๋‹ค๋ฉด ์ทจํ–ฅ ์ฐจ์ด๋‹ค!! ๋†๋‹ด์ž…๋‹ˆ๋‹ค ํ”ผ๋“œ๋ฐฑ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค๐Ÿค—๐Ÿค— + ์—ฌ๋Ÿฌ ๋ถ„๋“ค๊ป˜์„œ ์ž‘์„ฑํ•ด ์ฃผ์‹  ๋ฌดํ•œ ์Šฌ๋ผ์ด๋“œ ์‡ผ ๊ธ€์„ ์ฐธ๊ณ ํ•ด ๊ณต๋ถ€ํ•˜๊ณ  ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค โ˜๐Ÿป ๋ฌดํ•œ ์Šฌ๋ผ์ด๋“œ ์‡ผ ์›๋ฆฌ ๋จผ์ € ์›๋ฆฌ๋ฅผ ์•Œ์•„๋ณด์ž. ์•„๋ž˜์™€ ๊ฐ™์ด ์Šฌ๋ผ์ด๋“œ ์‡ผ๋กœ ๋ณด์—ฌ์ค„ ์ด๋ฏธ์ง€ 4์žฅ์„ ๊ฐ€๋กœ๋กœ ์ด์–ด ๋ถ™์ธ ๋ฐฐ์—ด์„ ๋งŒ๋“ค์–ด ์ค€๋‹ค. import bg1 from "../img/1.jpg"; import bg2 from "../img/2.jpg"; import bg3 from "../img/3.jpg"; import bg4 from "../img/4.jpg"; /* bg img Arr..

[vscode] VScode ํŒŒ์ด์ฌ ํ”Œ๋ผ์Šคํฌ ๊ฐœ๋ฐœํ™˜๊ฒฝ ๊ตฌ์ถ•ํ•˜๊ธฐ

๋‚˜๋Š” ํŒŒ์ด์ฌ๋„ ์—†๋Š”๋ฐ.. ๋‹ค๋“ค ํ”Œ๋ผ์Šคํฌ ์„ค์น˜๋ถ€ํ„ฐ ํ•˜์…”์„œ ๋‚ด๊ฐ€ ๊ตฌ์ถ•ํ•˜๋ฉด์„œ ์ •๋ฆฌ๋ฅผ ํ•ด๋ณด์•˜๋‹ค! 1. ํŒŒ์ด์ฌ ์„ค์น˜ https://www.python.org/downloads/ Download Python The official home of the Python Programming Language www.python.org ์œ„ ๋งํฌ๋กœ ๋“ค์–ด๊ฐ€ ์ตœ์‹ ๋ฒ„์ „ ํŒŒ์ด์ฌ์„ ๋‹ค์šด ๋ฐ›๋Š”๋‹ค. ์ด๋•Œ "Add Python 3.7 to PATH" ์˜ต์…˜ ๊ผญ ์„ ํƒํ•˜๊ธฐ ! ์ž˜ ์„ค์น˜ ๋˜์—ˆ์œผ๋ฉด cmd์ฐฝ์—์„œ "pip" ์ž…๋ ฅ ์‹œ ์•„๋ž˜์™€ ๊ฐ™์€ ๊ฒฐ๊ณผ๊ฐ€ ์ฐํžŒ๋‹ค. pip ๋งฅ OS์ผ ๊ฒฝ์šฐ "pip3"๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. pip3 2. VScode extension์—์„œ python์ด๋ž‘ flask-snippets ์„ค์น˜ VScode ์ฐฝ์„ ์—ด๊ณ  ์ขŒ์ธก ์ƒ๋‹จ extensio..

[vscode] VScode์— Prettier ๊น”๊ณ  ์ ์šฉํ•˜๊ธฐ

Visual Studio Code๋ฅผ ์ด์šฉํ•˜๋Š” ๋…ธ๋งˆ๋“œ์ฝ”๋” ํด๋ก  ์ฝ”๋”ฉ ๊ฐ•์˜์—์„œ ๋‹ˆ๊ผฌ์Œค์ด ์ถ”์ฒœํ•˜๋Š” ์ฝ”๋“œ ์ˆ˜์ •๊ธฐ(?)๊ฐ€ ์žˆ๋‹ค. ์ด๋ฆ„์€ Prettier. ์ด ์นœ๊ตฌ๋‹ค. Visual Studio Code ์ขŒ์ธก์—์„œ ๋ธ”๋ก ๋„ค๊ฐœ๋กœ ๋œ ์•„์ด์ฝ˜ ๋”ฑ ๋ด๋„ ์•ฑ์Šคํ† ์–ด์ฒ˜๋Ÿผ ์ƒ๊ธด ๊ฒƒ์„ ํด๋ฆญํ•˜๊ณ  Prettier ๋ผ๊ณ  ๊ฒ€์ƒ‰ํ•˜๋ฉด ๋‚˜์˜จ๋‹ค. ๊ฑฐ๊ธฐ์„œ install ํด๋ฆญํ•ด์„œ ๋‹ค์šด ๋ฐ›๊ธฐ. ์ด๊ฑธ ์ ์šฉํ•˜๋ ค๋ฉด ๋‘๊ฐ€์ง€ ์„ค์ •์ด ์•„๋ž˜์™€ ๊ฐ™์ด ๋˜์–ด์žˆ์–ด์•ผ ํ•œ๋‹ค. (์ฒซ๋ฒˆ์งธ๋งŒ ์„ค์ •๋งŒ ํ•ด์„œ ์ ์šฉ๋˜๋Š” ๊ฒฝ์šฐ๋„ ์žˆ๊ณ , ๋‘๋ฒˆ์งธ ์„ค์ •๊นŒ์ง€ ํ•ด์•ผ ์ ์šฉ๋˜๋Š” ๊ฒฝ์šฐ๋„ ์žˆ๋Š” ๋“ฏ) 1. ์ขŒ์ธก ํ•˜๋‹จ ์„ค์ • ์•„์ด์ฝ˜ > settings > editor ๊ฒ€์ƒ‰ > format on save ํ™œ์„ฑํ™” 2. default formatter ๊ฒ€์ƒ‰ > esbenp.prettier-vscode ์„ ํƒ ์œ„ ๋‘ ๊ฐ€..

[html/css] HTML, CSS, JS ๋ž€?

HTML: HyperText Markup Language ์›น๋ธŒ๋ผ์šฐ์ €์—๊ฒŒ ๋ณด์—ฌ์ฃผ๋Š” contents์™€ links์˜ ๋ชจ์Œ. ์•„๋ž˜์™€ ๊ฐ™์€ ๊ตฌ์กฐ๋‹ค. ๋‚ด์šฉ //ํ•„์ˆ˜, HTMLํŒŒ์ผ์ž„์„ ๋‚˜ํƒ€๋ƒ„. // ์„ค์ •๋ถ€๋ถ„, ๊ฒ€์ƒ‰์—”์ง„์„ ์œ„ํ•ด ์ž‘์„ฑ, invisible. // visible. CSS: Cascading Style Sheets HTML์˜ ๋””์ž์ธ์„ ๋‹ด๋‹นํ•˜๋Š” ๊ฒƒ์œผ๋กœ, HTML๊ณผ ํ•จ๊ป˜ ์‚ฌ์šฉํ•ด์•ผํ•œ๋‹ค. cascading, ์ฆ‰ ์œ„์—์„œ ์•„๋ž˜์˜ ์ˆœ์„œ๋Œ€๋กœ ์ ์šฉ์ด ๋œ๋‹ค. ์ฝ”๋“œ์˜ ์ˆœ์„œ๊ฐ€ ์˜ํ–ฅ์„ ๋ฏธ์นœ๋‹ค๋Š” ๋ง! 1) inline์œผ๋กœ HTML๋‚ด์— ์ž‘์„ฑํ•˜๊ธฐ 2) external๋กœ ์ž‘์„ฑํ•˜๊ธฐ - ์ด ๋ฐฉ๋ฒ•์„ ์ถ”์ฒœํ•œ๋‹ค (1๋ฒˆ์€ html ์ฝ”๋“œ ํŒŒ์ผ์ด ๋„ˆ๋ฌด ๊ธธ์–ด์ง€๊ธฐ ๋•Œ๋ฌธ!) CSSํŒŒ์ผ์€ ์•„๋ž˜์™€ ๊ฐ™์€ ๊ตฌ์กฐ๋‹ค. selector { attribute: value;..