From d5338d97d42857e80cf6db40db4c5836ede5d447 Mon Sep 17 00:00:00 2001 From: ilham saleh Date: Fri, 16 Feb 2024 10:17:03 +0000 Subject: [PATCH 01/35] Create user profile image --- src/App.css | 8 ++ src/App.js | 15 +++- src/components/navigation/index.js | 4 +- src/pages/userProfile/index.js | 123 +++++++++++++++++++++++++++++ 4 files changed, 146 insertions(+), 4 deletions(-) create mode 100644 src/pages/userProfile/index.js diff --git a/src/App.css b/src/App.css index 5ff3d270..06d49ca6 100644 --- a/src/App.css +++ b/src/App.css @@ -21,3 +21,11 @@ font-size: 18px; text-align: center; } + +.profile-container { + display: grid; + grid-template-columns: repeat(2, 1fr); + grid-template-rows: repeat(2, 1fr); + gap: 4rem; + +} diff --git a/src/App.js b/src/App.js index e5f74fea..58407e81 100644 --- a/src/App.js +++ b/src/App.js @@ -11,6 +11,8 @@ import Welcome from "./pages/welcome" import MyCohort from "./pages/myCohort" import Cohorts from "./pages/cohorts" import UserSearchResult from "./pages/UserSearchResult" +import UserProfile from "./pages/userProfile" + const App = () => { return ( @@ -23,6 +25,15 @@ const App = () => { } /> } /> + + + + } + /> + { } /> - - + } /> diff --git a/src/components/navigation/index.js b/src/components/navigation/index.js index 4df2bc85..dcfc74f2 100644 --- a/src/components/navigation/index.js +++ b/src/components/navigation/index.js @@ -6,7 +6,7 @@ import "./style.css" import { useTranslation } from "react-i18next" const Navigation = () => { - const {t} = useTranslation() + const { t } = useTranslation() return (