From 0a88dfb547c42e95393be9d01cc426f8d0a70139 Mon Sep 17 00:00:00 2001 From: june Date: Tue, 20 May 2025 23:19:42 +0900 Subject: [PATCH] done --- src/App.js | 2 +- src/components/StaffProfile/StaffProfile.jsx | 10 +++++++--- src/components/UserProfile/UserProfile.jsx | 18 ++++++++++++++++-- src/page/HomePage.jsx | 8 +++----- src/page/StaffPage.jsx | 11 +++++++++-- 5 files changed, 36 insertions(+), 13 deletions(-) diff --git a/src/App.js b/src/App.js index c0acf5b..43bf294 100644 --- a/src/App.js +++ b/src/App.js @@ -4,7 +4,7 @@ import StaffPage from "./page/StaffPage"; /* 여기에 Page들을 import 한 후 하나 씩 확인!! */ const App = () => { - return
; + return ; }; export default App; diff --git a/src/components/StaffProfile/StaffProfile.jsx b/src/components/StaffProfile/StaffProfile.jsx index 88825d9..2fd7b17 100644 --- a/src/components/StaffProfile/StaffProfile.jsx +++ b/src/components/StaffProfile/StaffProfile.jsx @@ -1,8 +1,12 @@ -import React from "react"; import "./StaffProfile.css"; -const StaffProfile = () => { - return
; +const StaffProfile = ({ name, part }) => { + return ( +
+

이름: {name}

+

파트: {part}

+
+ ); }; export default StaffProfile; diff --git a/src/components/UserProfile/UserProfile.jsx b/src/components/UserProfile/UserProfile.jsx index e5ef1e1..78aa2ea 100644 --- a/src/components/UserProfile/UserProfile.jsx +++ b/src/components/UserProfile/UserProfile.jsx @@ -1,7 +1,21 @@ -import React from "react"; import "./UserProfile.css"; import lionImage from "./lion.jpeg"; -const UserProfile = () => {}; + +const UserProfile = ({ name, age, major }) => { + return ( +
+ +
+
+ +

이름: {name}

+

나이: {age}

+

학과: {major}

+
+
+
+ ); +}; export default UserProfile; diff --git a/src/page/HomePage.jsx b/src/page/HomePage.jsx index 1501d38..bd11245 100644 --- a/src/page/HomePage.jsx +++ b/src/page/HomePage.jsx @@ -1,11 +1,9 @@ -import UserProfile from "../components/UserProfile/UserProfile"; +import UserProfile from "../components/UserProfile/UserProfile.jsx"; const HomePage = () => { return ( -
- -
+ ); }; -export default HomePage; +export default HomePage; \ No newline at end of file diff --git a/src/page/StaffPage.jsx b/src/page/StaffPage.jsx index 54e68bc..5cf4f42 100644 --- a/src/page/StaffPage.jsx +++ b/src/page/StaffPage.jsx @@ -1,4 +1,5 @@ import React from "react"; +import StaffProfile from "../components/StaffProfile/StaffProfile.jsx"; const StaffPage = () => { const staffs = [ @@ -8,7 +9,13 @@ const StaffPage = () => { { name: "Yerin", part: "FE_홍보" }, ]; - return
; + return ( +
+ {staffs.map((staff, index) => ( + + ))} +
+ ); }; -export default StaffPage; +export default StaffPage; \ No newline at end of file