diff --git a/src/components/ColorPage.jsx b/src/components/ColorPage.jsx
index bcabeb9..823bade 100644
--- a/src/components/ColorPage.jsx
+++ b/src/components/ColorPage.jsx
@@ -1,11 +1,23 @@
import { useParams } from 'react-router-dom';
import '../styles/ColorPage.css';
+} />
function ColorPage() {
return (
-
- 배경 페이지입니다
+
+ 배경 페이지입니다 : {id}
);
}
diff --git a/src/components/MainPage.jsx b/src/components/MainPage.jsx
index 540d1b2..9630397 100644
--- a/src/components/MainPage.jsx
+++ b/src/components/MainPage.jsx
@@ -1,14 +1,35 @@
import { useNavigate } from 'react-router-dom';
import '../styles/MainPage.css';
-const Mainpage = () => {
-
+const colors = ["red", "blue", "pink", "orange", "yellow"];
+
+const MainPage = () => {
+ const navigate = useNavigate();
+
return (
React 색상 선택
+ {colors.map((color) => (
+
+ ))}
+
);
};
-export default Mainpage;
+export default MainPage;