From 0419bae903c5f452b2d1fd5967b0f10a74121c83 Mon Sep 17 00:00:00 2001 From: jainsujay02 Date: Tue, 7 Mar 2023 11:49:21 -0800 Subject: [PATCH 1/2] Added Components to Router app.js: Added Dashboard and SearchLanding components to router. --- src/App.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 02ebbb46..4623c228 100644 --- a/src/App.js +++ b/src/App.js @@ -6,6 +6,8 @@ import Home from "./components/Home"; import Footer from "./components/Footer"; import Navbar from "./components/Header.js"; import ErrorComponent from "./components/ErrorComponent"; +import Dashboard from "./components/Dashboard.js"; +import SearchLanding from "./components/SearchLanding.js" import ProfileForm from "./components/profileform"; import { ProtectedRoute } from "./components/ProtectedRoute"; import { AuthProvider } from "./components/hooks/useAuth"; @@ -22,7 +24,7 @@ function App() { path="/dashboard" element={ - + } > @@ -30,7 +32,7 @@ function App() { path="/search" element={ - + } > From 5118a4ed3c941e1092a8e907d8c27b74b1ee8ca7 Mon Sep 17 00:00:00 2001 From: jainsujay02 Date: Wed, 8 Mar 2023 12:33:47 -0800 Subject: [PATCH 2/2] Added Styling and Required attributes to ProfileForm Profileform.js: fixed alignment issues, updated styling and added required attributes to input fields. --- src/components/profileform.js | 67 ++++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 28 deletions(-) diff --git a/src/components/profileform.js b/src/components/profileform.js index 51fe59b3..570261ca 100644 --- a/src/components/profileform.js +++ b/src/components/profileform.js @@ -119,10 +119,10 @@ const Form = () => {
- - + +

- { value={formValues.name} onChange={handleInputChange} style = {{width: 300}} - /> + sx= {{backgroundColor: 'white'}} + />



- - Year + + Year



- { />



- + Pronouns setButtonText("Uploaded")}/>

How should people contact you?

{

{ { />
- + +

Select your courses

{ @@ -289,19 +299,19 @@ const Form = () => { getOptionLabel={(option) => option.label} renderInput={(params) => ( )} />

-

-

Select a few hobbies or interests (max. 3)

+

Select a few hobbies or interests

{ getOptionLabel={(option) => option.label} renderInput={(params) => ( )} />

-

Help similar buddi’s find you

- - +

+

+