๐Ÿช„ ๊ฐ„๋‹จํ•œ ๊ธฐ๋Šฅ ๊ตฌํ˜„. Dashboard

[meษช]ยท2022๋…„ 1์›” 22์ผ
0

5. Mini Toy Projects

๋ชฉ๋ก ๋ณด๊ธฐ
15/17
post-thumbnail

๐Ÿ–ฅ

(Part 1.) Create Responsive Admin Dashboard using Html CSS & Javascript | Simple Dashboard Template Design


โž•

(Part 2.) Chart JS Integration | Responsive Admin Dashboard using Html CSS & Javascript | Charts And Graphs

#### 1) ํ•œ๊ณ„

(1) `.navigation`, `.card` ๋“ฑ์€ React component๋กœ ๋งŒ๋“œ๋Š” ๊ฒŒ ๋‚˜์„ ๊ฒƒ ๊ฐ™๋‹ค.
(2) ์ˆ˜์น˜ ๋ฐ data๋“ค์€ server์—์„œ ๋ถˆ๋Ÿฌ์˜ค๋Š” ๊ฑธ๋กœ ๋ฐ”๊พธ์–ด์•ผ ํ•œ๋‹ค.
(3) icon๋„ ์‹ค๋ฌด์—์„œ๋Š” desgign team์—์„œ ์ค„ ๊ฒƒ ๊ฐ™๋‹ค.
(4) class๋ช…์„ ๋” ๊ตฌ์ฒด์ ์œผ๋กœ ์ ์„ ํ•„์š”๊ฐ€ ์žˆ์–ด ๋ณด์ธ๋‹ค. e.g. class๋ช…์ด ๊ทธ๋ƒฅ `.btn`์ธ๋ฐ button์ด ์ด๊ฑฐ ํ•˜๋‚˜์ผ ํ™•๋ฅ ์€ ์ ์–ด๋ณด์ด๊ธฐ ๋•Œ๋ฌธ.
ใ„ด ์‚ฌ์‹ค ์ด toggle์€ button์ด ์•„๋‹ˆ๋ผ link์ด๊ธฐ ๋•Œ๋ฌธ์— ์• ์ดˆ์— `.btn`์œผ๋กœ class๋ช…์„ ๋งŒ๋“ค๋ฉด ์•ˆ ๋˜๋Š” ๊ฑฐ ์•„๋‹๊นŒ. ๋™๋ฃŒ๋“ค์—๊ฒŒ ํ˜ผ๋ž€์„ ์ค„ ๊ฒƒ ๊ฐ™์€๋ฐ.

#### 2) ๋” ์•Œ๊ณ  ์‹ถ์€ ๊ฒƒ

(1) profile ์‚ฌ์ง„ ๋น„์œจ ๊นจ์ง€์ง€ ์•Š๊ฒŒ ์ž…๋ ฅํ•˜๋Š” ๋ฒ•
ใ„ด ๊ทธ๋ž˜์„œ ๋‹ค๋ฅธ site๋“ค์€ ์‚ฌ์šฉ์ž๊ฐ€ ์ง์ ‘ ์‚ฌ์ง„์˜ ์˜์—ญ์„ ์„ ํƒํ•˜๊ฒŒ ๋งŒ๋“œ๋Š” ๊ฑด๊ฐ€?
(2) menu toggle์ด ์‚ฌ์šฉ์ž๊ฐ€ clickํ•˜๋Š” ๊ฒƒ๋ณด๋‹ค media query๊ฐ€ ์šฐ์„ ๋˜์–ด์„œ ์‚ฌ์šฉ์ž๊ฐ€ ์ด๋ฏธ menu๋ฅผ ์ตœ์†Œํ™”ํ–ˆ์Œ์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ  ํ™”๋ฉด ๊ฐ€๋กœ ๊ธธ์ด๋ฅผ ํ™•์žฅํ•˜๋ฉด menu ์˜์—ญ๋„ ๋”ฐ๋ผ์„œ ํ™•์žฅ๋œ๋‹ค.
ใ„ด ๊ทธ๋ฆฌ๊ณ  ์ƒˆ๋กœ๊ณ ์นจ ํ•˜๋ฉด ์—ญ์‹œ menu ์˜์—ญ์ด ํ™•์žฅ๋˜๋Š”๋ฐ, ์‚ฌ์šฉ์ž๊ฐ€ menu๋ฅผ ์ตœ์†Œํ™”ํ–ˆ๋‹ค๋ฉด ์ƒˆ๋กœ๊ณ ์นจ์„ ํ•œ ์ดํ›„์—๋„ ์‚ฌ์šฉ์ž์˜ ์„ค์ •์ด ์œ ์ง€๋˜์–ด์•ผ ํ•˜๋Š” ๊ฑด ์•„๋‹๊นŒ?

#### 3) ์ถ”๊ฐ€๋กœ ํ•œ ๊ฒƒ

(1) chart.js์˜ code์—์„œ var๊ฐ€ const๋กœ ๋ณ€๊ฒฝ๋˜์–ด ์žˆ๊ธธ๋ž˜ ๋‚˜๋„ ๊ทธ์— ๋งž๊ฒŒ ๋ณ€๊ฒฝํ•˜์˜€๋‹ค.
(2) `responsive: true,`๊ฐ€ ์ ์šฉ๋˜์ง€ ์•Š์•„ `maintainAspectRatio: false,`๋ฅผ ์ถ”๊ฐ€ํ•˜์˜€๋‹ค.
(3) ๊ทธ๋ž˜๋„ ์ƒˆ๋กœ๊ณ ์นจํ•˜์ง€ ์•Š๊ณ  ๋ฐ˜์‘ํ˜•์„ ๊ตฌํ˜„ํ•˜๋ ค๊ณ  ํ•˜๋ฉด ๋œป๋Œ€๋กœ ๋˜์ง€ ์•Š์•„ ์ผ๋‹จ body์—์„œ ์‚ญ์ œํ–ˆ๋˜ `overflow-x: hidden;`์„ ์ฃผ์„์ฒ˜๋ฆฌํ•ด ๋‘์—ˆ๋‹ค.

๐ŸŽจ

Ionicons
Charts.js


๐Ÿ™‡ the source of this content

Online Tutorials (Part 1.)
Online Tutorials (Part 2.)

profile
๋Š๋ ค๋„ ํ•  ๊ฑฐ์•ผ.......

0๊ฐœ์˜ ๋Œ“๊ธ€