Udacity - Responsive Web Design
170201 ์ ๋ค์ํฐ
Responsive Web Design Fundamentals
์ปดํจํฐ๋ณด๋ค ๋ชจ๋ฐ์ผ์ ๋ ๋ง์ด ์ด์ฉํ๋ ์ธ์์ด๋ค. ๊ทธ๋ฌ๋ฏ๋ก response design์ ํ์ง ์์ผ๋ฉด ์๋๋ค. ๋ค์ํ ๊ธฐ๊ธฐ์ size๋ณ๋ก ์ ์ฉ์ด ๋๋๋ก ํด์ผํ๋ค.
Simulator / Emulator
Emulator๋ ํ ์์คํ ์์ ๋ค๋ฅธ ์์คํ ์ ๋ณต์ ํ๋ค. ๊ทธ๋ฆฌํ์ฌ ๋ ๋ฒ์งธ ์์คํ ์ด ์ฒซ ๋ฒ์งธ ์์คํ ์ ๋ฐ๋ผ ํ๋ํ๋ ๊ฒ์ด๋ค. ์ธ๋ถ์ ํ๋์ ๋ํด ๋๊ฐ์ด ๋ฐ๋ผํ๋ ค๊ณ ํ๋ ์ด ๊ด์ ์ ์๋ฎฌ๋ ์ด์ ๊ณผ๋ ์ ๋ฐ๋์ด๋ค. ์๋ํ๋ฉด, ์๋ฎฌ๋ ์ด์ ์ ์์ฃผ ๋ด๋ถ ์ํ์ ๊ด๋ จํ์ฌ, ํ๋ด๋ด๋ ์์คํ ์ ์ถ์์ ์ธ ๋ชจ๋ธ๊ณผ ๊ด๊ณ๊ฐ ์๊ธฐ ๋๋ฌธ์ด๋ค. Simulation์ ์ค์ ๋ก ์คํํ๊ธฐ ์ด๋ ค์ด ์คํ์ ๊ฐ๋จํ ํํ๋ ๋ชจ์์คํ์ ๋ปํ๋ค.
crome Web Development :
โ+โฅ+j
Pixels
Device Independent Pixels
Hardware Pixels
Hardware Pixels / DPR = DIP
setting the viewport
<meta name="viewport" content="width=device-width,initial=scale=1">viewport๋ฅผ ์ ํ ํ๋ ๊ฒ์ ์์ง๋ง๋ผ!
CSS๋ viewport๊ฐ overview๋๋ ๊ฒ์ ํ๋ฝํ๋ค.
๋ฅผ ์ค์ ํด์ฃผ๋ ๊ฒ์ ์ถ์ฒํ๋ค.
์ ์ด๋ ํด๋ฆญ(๋ณด์ฌ์ผ)ํ๋๊ฑด 48px๋ ๋์ด์ผํ๋ค.
https://www.w3.org/community/webed/wiki/CSS/Properties#Border
Stylesheet
media
@import url("no.css") only screen and (min-width: 500px);
import tag๋ ํผํด๋ผ!
min-devise-width๋ max-devise-width์ ์ฌ์ฉ์ ํผํด๋ผ. ์๋ํ๋ฉด ๊ธฐ๊ณ์ ํ๋ฉด์ ๊ฐ์ ๊ฐ์ ธ์ค๋ ๊ฒ์ธ๋ฐ ์๋๋ก์ด๋์ ๊ฒฝ์ฐ์๋ ์๋ชป๋ ๊ฐ์ ๋ฐํํ๋ ๊ฒฝ์ฐ๋ ์๋ค.
Breakpoints
: the point a which your sites content will respond to provide the user with the best possible layout to consume the information.
breakpoint๋ฅผ ์ด๋์ ์ค์ ํด์ผํ๋์?
based on specific devices, products, brand names or anything else, will almost always result in a maintenance nigthmare.
breakpoint๋ ๋ฐ๊ฒฌํ๋ ๊ฒ์ด๋ค.
Flexbox
flex๋ row๊ฐ ๊ธฐ์ค์ด๋ค. flex-wrap: wrap์ ๊ฐ๋ ค์ง๋ ๊ฒฝ์ฐ ๋ค์์ค๋ก!
order์ ๋ํ๋๋ ์์๋ฅผ ๋ํ๋ธ๋ค.
Patterns
Mostly Fluid
Layout Shifter
Column Drop
Off Canvas
Responsive Tables
Hidden Column :
display: none;์ ๋ณด์ฌ์ง์ง ์๊ฒ ์จ๊ธฐ๋ ๊ฒ.No More Tables :
Minor BreakPoints
:fontsize, icon size๊ณผ ๊ฐ์ ์ฌ์ํ ๋ณํ
Last updated
Was this helpful?