[ToyProject-Todomate] ํˆฌ๋‘๋ฉ”์ดํŠธ ํด๋ก  ํ”„๋กœ์ ํŠธ 15

2021. 12. 22. 23:51ใ†WEB Dev/ToyProject

728x90


๐Ÿ”ท CloneTodo โ˜‘ - Todomate Clone Project  |  Team CloneMate

 

CloneTodo : ๋งŽ์€ ์‚ฌ๋žŒ๋“ค์ด ์‚ฌ๋ž‘ํ•˜๋Š” ํˆฌ๋‘๋ฉ”์ดํŠธ๋ฅผ ํด๋ก ํ•˜์—ฌ ์›น ์„œ๋น„์Šค๋ฅผ ๋ฐฐํฌํ•ด๋ณด๋Š” ํ”„๋กœ์ ํŠธ

 


์˜ค๋Š˜์€ ๋ ˆ์ด์•„์›ƒ ๋ฐฐ์น˜๊นŒ์ง€๋Š” ํ•ด์•ผ๊ฒ ์ง€... ์‹ถ๋‹ค.

 

sx props๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ (์Šคํƒ€์ผ์„ ์ ์šฉํ•˜๋ ค๊ณ ) <div>๋ฅผ <Box>๋กœ ๋ฐ”๊ฟ”์ค€๋‹ค.

 

import Box from '@mui/material/Box';

 

์ƒ๋‹จ์—๋Š” Box ํŒจํ‚ค์ง€๋ฅผ ์ ์šฉํ•ด์ค˜์•ผ ํ•œ๋‹ค.

 

 

์šฐ์„  Main์€ 

 

import React from 'react';
import Content from './Content';
import Box from '@mui/material/Box';

export default function Main() {

    return (
        <Box className='main-wrap' backgroundColor='#e4f2b4' sx={{ position: 'relative', width: '100vw', height: '100vh' }}>
        {/* <p>main</p> */}
        <Content />
        </Box>
    );
}

 

 

 

์ด๋ ‡๊ฒŒ CSS๋ฅผ ๊ฐ„๋‹จํ•˜๊ฒŒ ์ธ๋ผ์ธ ๋ฐฉ์‹์œผ๋กœ ์„ ์–ธํ•ด์ค„ ์ˆ˜ ์žˆ๋‹ค.

 

 

 

๊ธฐ๋ณธ ๋ ˆ์ด์•„์›ƒ์€ ๋‹ค ์žก์•˜๋Š”๋ฐ ๋†’์ด๋Š” ๊ทธ๋ ‡๋‹ค ์ณ๋„ ๊ฐ€๋กœ๋ฅผ ๋ทฐํฌํŠธ๋กœ ์žก์œผ๋‹ˆ ํฌ๊ธฐ๊ฐ€ ์ค„์–ด๋“ค๋ฉด ์˜ˆ์˜๊ฒŒ ๋ ˆ์ด์•„์›ƒ์ด ๊ณ ์ •๋˜์ง€ ์•Š๋Š” ํ˜„์ƒ์ด ์žˆ๋‹ค.

grid ์—ฐ์Šต์„ ํ•ด๋ด์•ผ ํ•˜๋‚˜.....

728x90