Skip to content

Commit

Permalink
Realigned some stylings in Onboarding flow
Browse files Browse the repository at this point in the history
  • Loading branch information
khankamolk committed Nov 13, 2024
1 parent 1b90047 commit 5969ab4
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 43 deletions.
27 changes: 0 additions & 27 deletions src/App.css

This file was deleted.

5 changes: 2 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import "./App.css";
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import SetUpPage from "./components/SetUpPage"
import AddDegree from "./components/AddDegree/AddDegree";
import SemesterHome from './SemesterHome';
import SemesterHome from './app/SemesterHome/SemesterHome';

function App() {
return (
Expand All @@ -11,7 +10,7 @@ function App() {
<Route path="/" element={<SetUpPage />} />
<Route path="/add-major" element={<AddDegree isMajor={true}/>} />
<Route path="/add-minor" element={<AddDegree isMajor={false}/>} />
<Route path="/next" element={<SemesterHome />} />
<Route path="/semester-home" element={<SemesterHome />} />
</Routes>
</Router>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
/* .body {
display: block !important;
} */
.semester-home-container {
display: flex;
direction: row;
height: 100vh;
width: 100vh;
}

.content {
display: flex;
flex: 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import { useLocation } from 'react-router-dom';
import SemesterBlock from "./components/SemesterBlock"
import SemesterBlock from "../../components/SemesterBlock"
import { Flex } from '@radix-ui/themes';
import SidePanel from "./components/SidePanel/SidePanel"
import { requirements } from "./components/SidePanel/types"
import SidePanel from "../../components/SidePanel/SidePanel"
import { requirements } from "../../components/SidePanel/types"
import "./SemesterHome.css"


Expand Down
2 changes: 1 addition & 1 deletion src/components/AddDegree/AddDegree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function AddDegree({ isMajor }: AddDegreeProps) {
};

const handleConfirmClick = () => {
navigate('/next', { state : { startYear, gradYear, summerCheck } })
navigate('/semester-home', { state : { startYear, gradYear, summerCheck } })
};

const DegreeSelect = () => (
Expand Down
8 changes: 5 additions & 3 deletions src/components/SetUpPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ function SetUpPage() {
return (
<Flex className="setup-container" direction="column" gap="32px" width="100%" align="center">
<Flex direction="column" gap="8px" width="100%" align="center">
<Text className="setup">Set Up</Text>
<Text className="enteryear">Enter your start year and graduation year</Text>
<h1>Set Up</h1>
<p className="secondary-text">
Enter your start year and graduation year
</p>
</Flex>

<Flex className= "yearContainer" direction="row" gap="16px" align="center">
Expand All @@ -55,7 +57,7 @@ function SetUpPage() {
Include Summer Semesters?
</Flex>
</Text>
<Button className='next-btn' onClick={handleNextClick}>Next</Button>
<button className="primary" onClick={handleNextClick}>Next</button>
</Flex>
);
}
Expand Down
15 changes: 9 additions & 6 deletions src/components/SetUpPage/setup.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@
align-items: center;
place-items: center;
}

.setup-container {
width: 420px;
margin-left: 500px;
background-color: white !important;
display: flex;
justify-content: center !important;
align-items: center !important;
width: 500px;
flex-direction: column;
gap: var(--L, 32px);
align-items: flex-start;
justify-content: center;
align-self: stretch;
margin-left: 450px;
}
@media (max-width: 600px) {
.container {
width: 100%;
}
}


body {
background-color: white;
/* display: inline !important; */
Expand Down

0 comments on commit 5969ab4

Please sign in to comment.