diff --git a/src/components/App.css b/src/components/App.css index dbedb8f..fc0cba7 100644 --- a/src/components/App.css +++ b/src/components/App.css @@ -3,11 +3,11 @@ flex-direction: column; align-items: center; justify-content: center; - border: 2px dashed blue; border-radius: 10px; - margin-left: 15%; - margin-right: 15%; + padding-left: 15%; + padding-right: 15%; overflow: hidden; + background-color: var(--secondary-color-gray100) ; } .best-product-title, .on-sale-product-title { diff --git a/src/components/BestProducts.css b/src/components/BestProducts.css index 351d9a7..57281ab 100644 --- a/src/components/BestProducts.css +++ b/src/components/BestProducts.css @@ -30,7 +30,7 @@ .best-product-info { display: flex; flex-direction: column; - gap: 10px; + gap: 20px; margin-top: 10px; } @@ -50,8 +50,20 @@ color: var(--secondary-color-gray500); } -@media (max-width: 768px) { +@media only screen and (max-width: 768px) { + .best-products-container { + grid-template-columns: repeat(1, 1fr); + } +} + +@media only screen and (min-width: 769px) and (max-width: 1024px) { .best-products-container { grid-template-columns: repeat(2, 1fr); } +} + +@media only screen and (min-width: 1025px) { + .best-products-container { + grid-template-columns: repeat(4, 1fr); + } } \ No newline at end of file diff --git a/src/components/BestProducts.js b/src/components/BestProducts.js index 15add8a..582970a 100644 --- a/src/components/BestProducts.js +++ b/src/components/BestProducts.js @@ -37,7 +37,7 @@ export function BestProducts() { {product.name}

{product.name}

-

{product.price}원

+

{product.price.toLocaleString()}원