-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b43ce9c
commit 8e94c85
Showing
7 changed files
with
166 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; | ||
import LandingPage from "./pages/LandingPage"; | ||
import QueryPage from "./pages/QueryPage"; | ||
import SignupPage from "./pages/SignupPage"; | ||
|
||
function App() { | ||
return ( | ||
<> | ||
<Router> | ||
<Routes> | ||
<Route path="/" element={<LandingPage />} /> | ||
<Route path="/query" element={<QueryPage />} /> | ||
</Routes> | ||
</Router> | ||
</> | ||
); | ||
return ( | ||
<> | ||
<Router> | ||
<Routes> | ||
<Route path="/" element={<LandingPage />} /> | ||
<Route path="/query" element={<QueryPage />} /> | ||
<Route path="/signup" element={<SignupPage />} /> | ||
</Routes> | ||
</Router> | ||
</> | ||
); | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import { Box, Button, Typography } from "@mui/material"; | ||
import CustomTextField from "../TextField/TextField"; | ||
import { darken } from "@mui/material/styles"; | ||
|
||
export default function SignupForm() { | ||
return ( | ||
<> | ||
<Box | ||
sx={{ | ||
width: "50%", | ||
minWidth: "25rem", | ||
marginLeft: "max(10%, 2rem)", | ||
marginRight: "max(10%, 2rem)", | ||
display: "flex", | ||
flexDirection: "column", | ||
rowGap: "2.5rem", | ||
}} | ||
> | ||
<Box | ||
sx={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
rowGap: "0.4rem", | ||
}} | ||
> | ||
<Typography | ||
variant="h5" | ||
sx={{ | ||
textAlign: "center", | ||
fontFamily: "Roboto", | ||
fontWeight: 600, | ||
color: "var(--color-accent)", | ||
}} | ||
> | ||
SIGN UP | ||
</Typography> | ||
<Typography | ||
variant="subtitle1" | ||
sx={{ | ||
textAlign: "center", | ||
fontFamily: "Roboto", | ||
fontWeight: 300, | ||
color: "var(--color-accent)", | ||
}} | ||
> | ||
Already have an account? | ||
<a href="" style={{ color: "var(--color-tertiary)" }}> | ||
Login now | ||
</a> | ||
. | ||
</Typography> | ||
</Box> | ||
<Box | ||
sx={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
rowGap: "1rem", | ||
}} | ||
> | ||
<CustomTextField label={"Email address"} /> | ||
<CustomTextField label={"Name"} /> | ||
<CustomTextField label={"Password"} type="password" /> | ||
<CustomTextField | ||
label={"Confirm Password"} | ||
type="password" | ||
/> | ||
</Box> | ||
<Box sx={{ marginLeft: "auto" }}> | ||
<Button | ||
variant="contained" | ||
disableElevation | ||
sx={{ | ||
backgroundColor: "var(--color-secondary)", | ||
"&:hover": { | ||
backgroundColor: darken("#0C7489", 0.1), // Adjust the factor (0.1) as needed | ||
}, | ||
color: "var(--color-secondary)", | ||
padding: "0.5rem 1.5rem", | ||
}} | ||
> | ||
<Typography | ||
sx={{ | ||
color: "var(--color-accent)", | ||
fontSize: "1rem", | ||
}} | ||
> | ||
SIGN UP | ||
</Typography> | ||
</Button> | ||
</Box> | ||
</Box> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { TextField, styled } from "@mui/material"; | ||
import { outlinedInputClasses } from "@mui/material/OutlinedInput"; | ||
import { inputLabelClasses } from "@mui/material/InputLabel"; | ||
|
||
const CustomTextField = styled(TextField)({ | ||
[`& .${outlinedInputClasses.root} .${outlinedInputClasses.notchedOutline}`]: | ||
{ | ||
borderColor: "var(--color-tertiary)", | ||
}, | ||
[`&:hover .${outlinedInputClasses.root} .${outlinedInputClasses.notchedOutline}`]: | ||
{ | ||
borderColor: "var(--color-secondary)", | ||
}, | ||
[`& .${outlinedInputClasses.root}.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: | ||
{ | ||
borderColor: "var(--color-accent)", | ||
}, | ||
[`& .${outlinedInputClasses.input}`]: { | ||
color: "var(--color-tertiary)", | ||
}, | ||
[`&:hover .${outlinedInputClasses.input}`]: { | ||
color: "var(--color-tertiary)", | ||
}, | ||
[`& .${outlinedInputClasses.root}.${outlinedInputClasses.focused} .${outlinedInputClasses.input}`]: | ||
{ | ||
color: "var(--color-accent)", | ||
}, | ||
[`& .${inputLabelClasses.outlined}`]: { | ||
color: "var(--color-tertiary)", | ||
}, | ||
[`&:hover .${inputLabelClasses.outlined}`]: { | ||
color: "var(--color-secondary)", | ||
}, | ||
[`& .${inputLabelClasses.outlined}.${inputLabelClasses.focused}`]: { | ||
color: "var(--color-accent)", | ||
}, | ||
}); | ||
|
||
export default CustomTextField; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Box, TextField } from "@mui/material"; | ||
import SignupForm from "../components/Forms/SignupForm"; | ||
|
||
export default function SignupPage() { | ||
return ( | ||
<> | ||
<Box | ||
sx={{ | ||
minHeight: "100vh", | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
}} | ||
> | ||
<SignupForm /> | ||
</Box> | ||
</> | ||
); | ||
} |