๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

HTML5 & CSS355

HTML ์ด๋ž€? โšพ๏ธ HTTP ๋ž€? HyperText Transfer Protocol์˜ ์•ฝ์ž. ์ปดํ“จํ„ฐ๋“ค๋ผ๋ฆฌ HTMLํŒŒ์ผ์„ ์ฃผ๊ณ ๋ฐ›์„ ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” ์†Œํ†ต ๋ฐฉ์‹ ๋˜๋Š” ์•ฝ์†์ด๋‹ค. โšพ๏ธ HTTP์˜ ํŠน์ง• Request / Response (์š”์ฒญ/์‘๋‹ต) HTTP์˜ ํ†ต์‹ ์˜ ํ•ต์‹ฌ์€ ์š”์ฒญ๊ณผ ์‘๋‹ต์ด๋‹ค. ๋ณด๋‚ด๋Š” ์ฃผ์ฒด๋Š” ๋ฐ›๋Š” ์ฃผ์ฒด์—๊ฒŒ ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ๋ฐ›๋Š” ์ฃผ์ฒด๋Š” ์š”์ฒญ์„ ๋ณด๋‚ธ ์ฃผ์ฒด์—๊ฒŒ ์‘๋‹ต์„ ๋ณด๋‚ธ๋‹ค. Stateless (State(์ƒํƒœ) + less(์—†์Œ)) ๊ฐ๊ฐ์˜ HTTP ํ†ต์‹ (์š”์ฒญ/์‘๋‹ต)์€ ๋…๋ฆฝ์ ์ด๊ธฐ ๋•Œ๋ฌธ์— ๊ณผ๊ฑฐ์˜ ํ†ต์‹ (์š”์ฒญ/์‘๋‹ต)์— ๋Œ€ํ•œ ๋‚ด์šฉ์„ ์ „ํ˜€ ์•Œ์ง€ ๋ชปํ•œ๋‹ค. ๊ทธ๋Ÿฌ๋ฏ€๋กœ ๋งค ํ†ต์‹ ๋งˆ๋‹ค ํ•„์š”ํ•œ ๋ชจ๋“  ์ •๋ณด๋ฅผ ๋‹ด์•„์„œ ์š”์ฒญ์„ ๋ณด๋‚ด์•ผ ํ•œ๋‹ค. 2021. 11. 20.
[HTML] html๊ณผ ๊ธฐ๋ณธ tag ๋Š” ํƒœ๊ทธ(tag)๋ผ๊ณ  ๋ถ€๋ฅธ๋‹ค. ์•ž์— ์žˆ๋Š” ํƒœ๊ทธ๋ฅผ '์—ด๋ฆฌ๋Š” ํƒœ๊ทธ', ๋’ค์— ์žˆ๋Š” ํƒœ๊ทธ๋ฅผ '๋‹ซํžˆ๋Š” ํƒœ๊ทธ'๋ผ๊ณ  ํ•œ๋‹ค. ๐Ÿ“Œ์ง„ํ•˜๊ฒŒ ๊ฐ•์กฐํ•˜๊ธฐ ๐Ÿ“Œ๋ฐ‘์ค„ ์น˜๊ธฐ ๐Ÿ“Œ์ œ๋ชฉ ๐Ÿ“Œ์ค„ ๋ฐ”๊ฟˆ ๐Ÿ“Œ๋‹จ๋ฝ ๐Ÿ“Œ์ด๋ฏธ์ง€ ์‚ฝ์ž… ์œ„์— width="100%"๋ผ๋Š” ๊ฒƒ์€ ์†์„ฑ(Attribute)์ด๋ผ๊ณ  ํ•œ๋‹ค. ๐Ÿ“Œ๋ฆฌ์ŠคํŠธ ์™€ ๊ฐ™์€ ํ•ญ๋ชฉ๋“ค์€ ๊ทธ ํ•ญ๋ชฉ์ด ์–ด๋””์„œ๋ถ€ํ„ฐ ์–ด๋””๊นŒ์ง€๊ฐ€ ์„œ๋กœ ์—ฐ๊ด€๋œ ํ•ญ๋ชฉ์ธ์ง€๋ฅผ ๊ฒฝ๊ณ„๋ฅผ ์ง“๊ธฐ ์œ„ํ•œ, ๊ทธ๋ฃนํ•‘์„ ํ•˜๊ธฐ ์œ„ํ•œ ๋ถ€๋ชจ ํƒœ๊ทธ๊ฐ€ ํ•„์š”ํ•˜๋‹ค. ์ฆ‰, ํƒœ๊ทธ๋Š” ๋ฐ˜๋“œ์‹œ ๋ถ€๋ชจ ํƒœ๊ทธ๋ฅผ ๊ฐ–๊ณ  ์žˆ๋‹ค. ๐Ÿ“Œ๋ฆฌ์ŠคํŠธ์— ๋ฒˆํ˜ธ ๋งค๊ธฐ๊ธฐ ๐Ÿ“Œ์ด ๋ฌธ์„œ๋Š” html์ด๋‹ค. ๐Ÿ“Œ์ „์ฒด๋ฅผ ๊ฐ์Œˆ. 2021. 11. 20.
Scss์— ์ต์ˆ™ํ•œ ๋ถ„๋“ค์„ ์œ„ํ•œ ๊ฐ„๋‹จ styled-component ์‚ฌ์šฉ๋ฒ• Scss, Sass๋ฅผ ์‚ฌ์šฉํ•  ๋• ์•„๋ž˜์™€ ๊ฐ™์ด ์‚ฌ์šฉํ–ˆ์„ ๊ฒƒ์ด๋‹ค! .mainText { display: flex; margin: 0px; padding: 0px; } import React from 'react'; import './App.scss'; class App extends React.Component { render() { return ( hello world ); } } export default App; ํ•˜์ง€๋งŒ styled-component๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์‚ฌ์šฉํ•œ๋‹ค. import React from 'react'; import styled from 'styled-components'; const MainText = styled.div` display: flex; margin: 0px; paddi.. 2021. 11. 14.
Sass ๋ž€? ๐Ÿช€ Sass Syntactically Awesome Stylesheets์˜ ์•ฝ์ž. ์Šคํƒ€์ผ์‹œํŠธ ์–ธ์–ด. CSS์˜ ๋‹จ์ ์„ ๋ณด์™„ํ•˜๊ธฐ ์œ„ํ•œ CSS์˜ ํ™•์žฅ์œผ๋กœ ๋‚˜์˜จ ์Šคํฌ๋ฆฝํŠธ ์–ธ์–ด. CSS์˜ ์ „์ฒ˜๋ฆฌ๊ธฐ, ์ฆ‰ CSS๋ฅผ ๋งŒ๋“ค๊ธฐ ์œ„ํ•œ ๋„๊ตฌ์ด๋‹ค.CSS ๐Ÿ‘‰๐Ÿป Sass ์ปดํŒŒ์ผ๋Ÿฌ ๐Ÿ‘‰๐Ÿป SCSS ํ•ด์„๋˜์–ด CSS๋กœ ์ปดํŒŒ์ผ๋˜๋Š” ์Šคํฌ๋ฆฝํŠธ ์–ธ์–ด์ด๋‹ค. ํ”„๋กœ์ ํŠธ๊ฐ€ ์ ์  ์ปค์ง€๊ณ  ๋ณต์žกํ•ด์ง€๋ฉด ์Šคํƒ€์ผ์‹œํŠธ๋„ ๋ฉ๋‹ฌ์•„ ์ปค์ง€๊ณ  ๊ด€๋ฆฌํ• ๊ฒŒ ๋งŽ์•„์ง€๋ฉฐ ๋ณต์žกํ•ด์ง„๋‹ค. ์ด์— ๋”ฐ๋ผ ์œ ์ง€๋ณด์ˆ˜๋„ ํž˜๋“ค์–ด์ง„๋‹ค. Sass๋Š” CSS์˜ ๋ณต์žกํ•œ ์ž‘์—…์„ ์‰ฝ๊ฒŒ ํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๊ณ , ์ฝ”๋“œ์˜ ์žฌํ™œ์šฉ์„ฑ๊ณผ ๊ฐ€๋…์„ฑ์„ ํ†ตํ•ด ์œ ์ง€๋ณด์ˆ˜๋ฅผ ๋†’์—ฌ์ฃผ๋Š” ์–ธ์–ด์ด์ž ๋„๊ตฌ์ด๋‹ค. variable, nesting, mixin, inheritance ๋“ฑ์˜ ๊ฐœ๋…์ด ์ถ”๊ฐ€๋œ ๊ฒƒ์ด Sass์ด๋‹ค. Sass ๊ณต์‹ ๊ตฌํ˜„์ฒด๋Š” ์˜คํ”ˆ ์†Œ.. 2021. 11. 9.
CSS-Module ์ด๋ž€? ๐ŸŽจ CSS Module ์ด๋ž€? CSS๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ ํด๋ž˜์Šค ์ด๋ฆ„์„ ๊ณ ์œ ํ•œ ๊ฐ’์œผ๋กœ ์ž๋™์œผ๋กœ ๋งŒ๋“ค์–ด์„œ ์ปดํฌ๋„ŒํŠธ ์Šคํƒ€์ผ ํด๋ž˜์Šค ์ด๋ฆ„์ด ์ค‘์ฒฉ๋˜๋Š” ํ˜„์ƒ์„ ๋ฐฉ์ง€ํ•ด ์ฃผ๋Š” ๊ธฐ์ˆ ์ด๋‹ค. ์žฅ์  CSS Module์„ ์ด์šฉํ•˜๋ฉด ํด๋ž˜์Šค๋ช…์ด ์ถฉ๋Œํ•˜๋Š” ๋‹จ์ ์„ ๊ทน๋ณตํ•  ์ˆ˜ ์žˆ๋‹ค. CSS Module์€ ์ปดํฌ๋„ŒํŠธ ๋‹จ์œ„๋กœ ์Šคํƒ€์ผ์„ ์ ์šฉํ•  ๋•Œ ์œ ์šฉํ•˜๋‹ค. ๋ณธ์ธ์€ ๋ฆฌ์•กํŠธ์—์„œ CSS Module์„ ์‚ฌ์šฉํ•œ ๊ฒฝํ—˜์ด ์žˆ๋‹ค. Webpack์˜ css-louder๋กœ ๋ฒˆ๋“ค๋ง์„ ํ•ด์„œ ์‚ฌ์šฉ์„ ํ–ˆ์—ˆ๋‹ค. ์ปดํฌ๋„ŒํŠธ๋ณ„๋กœ ๊ด€๋ฆฌํ•  ๋•Œ ์‚ฌ์šฉํ•˜๊ธฐ ๋ชน์‹œ ํŽธ๋ฆฌํ–ˆ๊ณ , ๊ทธ๋™์•ˆ SCSS์—์„  ๋™์ผํ•œ ์Šคํƒ€์ผ์˜ ์†์„ฑ์„ include๋‚˜ mixin์„ ํ™œ์šฉํ•ด์„œ ์ค‘๋ณต์„ ์ตœ๋Œ€ํ•œ ์ค„์—ฌ๋„ ๊ฒฐ๊ตญ ํด๋ž˜์Šค๋ช…์€ ๋”ฐ๋กœ ์„ ์–ธํ•ด์ค˜์•ผ ๋˜๋Š” ์ ์ด ์•„์‰ฌ์› ๋‹ค. ํ•˜์ง€๋งŒ CSS Module์€ ์Šคํƒ€์ผ์˜ ์†์„ฑ์„ ํ•œ ๊ณณ์—์„œ๋งŒ ์ง€์ •ํ•˜๋ฉด.. 2021. 10. 16.
[์ƒํ™œ์ฝ”๋”ฉ-WEB1] ์›น์‚ฌ์ดํŠธ ์™„์„ฑ [์ถœ์ฒ˜ : Youtube - ์ƒํ™œ์ฝ”๋”ฉ] https://youtu.be/w5S0GACgL3U?list=PLuHgQVnccGMDZP7FJ_ZsUrdCGH68ppvPb ์šฐ๋ฆฌ๊ฐ€ ๋งŒ๋“  ์›นํŽ˜์ด์ง€๋“ค์„ ์—ฎ์–ด์„œ ํ•˜๋‚˜์˜ ์›น์‚ฌ์ดํŠธ๋กœ ๋งŒ๋“ค์–ด๋ณด์ž. index.html See the Pen eYvoRxL by ์ด์œค๊ฒฝ (@yunkyung-creator) on CodePen. 1.html See the Pen xxqerBN by ์ด์œค๊ฒฝ (@yunkyung-creator) on CodePen. 2.html See the Pen dyvLzoY by ์ด์œค๊ฒฝ (@yunkyung-creator) on CodePen. 3.html See the Pen OJpGjVg by ์ด์œค๊ฒฝ (@yunkyung-creator) on CodePen. 2021. 6. 20.
๋ฐ˜์‘ํ˜•