nextjs,tailwindcss,vercel

tailwind css ์—์„œ ์š”์†Œ๋“ค ๋ชจ๋‘ ๊ฐ€์šด๋ฐ ์ •๋ ฌํ•˜๊ธฐ

์ฃผ์˜ ๐Ÿฑ 2024. 6. 4. 18:05
728x90
๋ฐ˜์‘ํ˜•

tailwind css์—์„œ ํ•˜์œ„ ์š”์†Œ๋ฅผ ๊ฐ€์šด๋ฐ๋กœ ์ •๋ ฌํ•˜๋Š” ๋ฐฉ๋ฒ• 

 

์ตœ๊ทผ ๋ฐฐ๋‹นํˆฌ์ž ๊ณ„์‚ฐ๊ธฐ ์‚ฌ์ดํŠธ ๊ฐœ๋ฐœํ•˜๋Š” ์ค‘์— ๊ฐ€์šด๋ฐ ์ •๋ ฌ์„ ์ž๋™์œผ๋กœ ํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ๊ถ๊ธˆํ–ˆ๋‹ค. 

์•„๋ž˜๋Š” ๋‚ด๊ฐ€ ๊ฐœ๋ฐœํ•œ ๋ฐฐ๋‹นํˆฌ์ž ์‚ฌ์ดํŠธ!

https://www.turtleinvest.site/ko

 

์ƒ์œ„div์— classname์„ ์•„๋ž˜์™€ ๊ฐ™์ด ์ฃผ๊ณ , 

flex-container items-center justify-center

 

ํ•˜์œ„ ๊ฐ€์šด๋ฐ ์ •๋ ฌํ•  ์š”์†Œ๋“ค์— className = 'text-center" ๋ฅผ ์ฃผ๋ฉด๋œ๋‹ค

text-center

 

์ผ์ผ์ด ํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ๋ฒˆ๊ฑฐ๋กœ์›Œ์„œ ์•„์˜ˆ ์ž๋™ํ™”ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ์‹์ด ์žˆ๋‚˜ ์ฐพ๋Š”์ค‘

 

์“ด ์ฝ”๋“œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค. 

 
<div className="my-3 flex-container items-center justify-center" >
 
<h1 className="text-3xl my-4">๋ฐฐ๋‹น ํˆฌ์ž ๊ณ„์‚ฐ๊ธฐ ์‚ฌ์šฉ ๋ฐฉ๋ฒ•</h1>
<p className="text-center">๊ฐ ํ•ญ๋ชฉ์„ ์ฑ„์›Œ๋„ฃ์€ ํ›„, ๊ณ„์‚ฐ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์‹ญ์‹œ์˜ค.</p>
๋ฐ˜์‘ํ˜•