-
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
Showing
10 changed files
with
229 additions
and
68 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
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,11 @@ | ||
import React from 'react' | ||
|
||
const Support: React.FC = () => { | ||
return ( | ||
<div> | ||
<h1>Support</h1> | ||
</div> | ||
) | ||
} | ||
|
||
export {Support}; |
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 was deleted.
Oops, something went wrong.
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,12 +1,28 @@ | ||
import React from "react"; | ||
import { useNavigate } from "react-router-dom"; | ||
import { IoCloudUploadOutline } from "react-icons/io5"; | ||
import { UploadNavBar, UploadButton } from "./index" | ||
import { Footer } from "../components"; | ||
|
||
function UploadFile() { | ||
return( | ||
<> | ||
<h1>File</h1> | ||
</> | ||
const UploadFile: React.FC = () => { | ||
return ( | ||
<div> | ||
<div className="h-lvh"> | ||
<div className="flex flex-col justify-center items-center w-4/6 mx-auto"> | ||
<UploadNavBar /> | ||
<div className="bg-[#F1F1F1] w-full h-[550px] relative"> | ||
<div className="bg-light-green h-96 w-5/6 mx-auto mt-14 rounded-xl outline-dashed outline-green outline-[2.5px] text-center flex flex-col justify-center items-center gap-10"> | ||
<IoCloudUploadOutline className="text-[100px] text-green" /> | ||
<h2 className="text-xl">Choose a file and drag it here</h2> | ||
</div> | ||
<div className="absolute bottom-10 right-10"> | ||
<UploadButton /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<Footer /> | ||
</div> | ||
) | ||
} | ||
|
||
export {UploadFile}; | ||
export { UploadFile }; |
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,25 @@ | ||
import React from "react"; | ||
import { UploadNavBar, UploadButton } from "./index"; | ||
import { Footer } from "../components"; | ||
|
||
const UploadLink: React.FC = () => { | ||
return ( | ||
<div> | ||
<div className="h-lvh"> | ||
<div className="flex flex-col justify-center items-center w-4/6 mx-auto"> | ||
<UploadNavBar /> | ||
<div className="bg-[#F1F1F1] w-full h-[250px] relative flex justify-center items-center gap-24"> | ||
<form className="text-xl flex items-center"> | ||
<label className="">Enter link here: </label> | ||
<input type="text" className="ml-4 w-[530px] h-[40px] border rounded-md focus:outline-none focus:ring-2 focus:ring-green-500 px-4"></input> | ||
<div className="ml-8"><UploadButton /></div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
<Footer /> | ||
</div> | ||
); | ||
}; | ||
|
||
export { UploadLink }; |
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,87 @@ | ||
import React from 'react'; | ||
import { UploadNavBar, UploadButton } from "./index"; | ||
import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'; | ||
import { Footer } from "../components"; | ||
import { DemoContainer } from '@mui/x-date-pickers/internals/demo'; | ||
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; | ||
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; | ||
|
||
const UploadManual: React.FC = () => { | ||
return ( | ||
<div> | ||
<div className="h-lvh"> | ||
|
||
<div className="flex flex-col justify-center items-center w-4/6 mx-auto relative"> | ||
<UploadNavBar /> | ||
<div className="bg-[#F1F1F1] w-full h-[620px] px-20 pt-10"> | ||
<form> | ||
<div className="mb-4"> | ||
<label className="block text-gray-700">Course Number<span className="text-red">*</span></label> | ||
<input | ||
type="text" | ||
className="w-full px-4 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" | ||
required | ||
/> | ||
</div> | ||
<div className="mb-4"> | ||
<label className="block text-gray-700">Event Type<span className="text-red">*</span></label> | ||
<select | ||
className="w-full px-4 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" | ||
required | ||
> | ||
<option value="">Select Event Type</option> | ||
<option value="Academics">Academics</option> | ||
<option value="Club">Club</option> | ||
<option value="Career">Career</option> | ||
</select> | ||
</div> | ||
<div className="mb-4"> | ||
<div className="flex gap-4"> | ||
<div className="w-1/2"> | ||
<label className="block text-gray-700">From<span className="text-red">*</span></label> | ||
<LocalizationProvider dateAdapter={AdapterDayjs}> | ||
<DateTimePicker className="w-full"/> | ||
</LocalizationProvider> | ||
</div> | ||
<div className="w-1/2"> | ||
<label className="block text-gray-700">To<span className="text-red">*</span></label> | ||
<LocalizationProvider dateAdapter={AdapterDayjs}> | ||
<DateTimePicker className="w-full"/> | ||
</LocalizationProvider> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="mb-4"> | ||
<label className="block text-gray-700">Location/Meeting Link<span className="text-red">*</span></label> | ||
<input | ||
type="text" | ||
className="w-full px-4 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" | ||
required | ||
/> | ||
</div> | ||
<div className="mb-4"> | ||
<label className="block text-gray-700">Instructor/TA</label> | ||
<input | ||
type="text" | ||
className="w-full px-4 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" | ||
/> | ||
</div> | ||
<div className="mb-4"> | ||
<label className="block text-gray-700">Notes</label> | ||
<textarea | ||
className="w-full px-4 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" | ||
rows={2} | ||
></textarea> | ||
</div> | ||
<div className="absolute bottom-5 right-20"><UploadButton /></div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
<Footer /> | ||
</div> | ||
|
||
); | ||
}; | ||
|
||
export { UploadManual }; |
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,44 @@ | ||
import React from "react"; | ||
import { useNavigate, useLocation } from "react-router-dom"; | ||
|
||
const UploadNavBar: React.FC = () => { | ||
let navigate = useNavigate(); | ||
let location = useLocation(); | ||
|
||
const redirectTo = (path: string) => { | ||
navigate(path); | ||
}; | ||
|
||
return ( | ||
<div className="bg-green w-full h-4/6 mt-20 text-white flex gap-44 justify-center items-center text-xl py-4"> | ||
<div className={`cursor-pointer ${location.pathname === '/upload/file' ? 'text-teal font-medium' : 'text-white'}`} onClick={() => redirectTo('/upload/file')}> | ||
Upload File | ||
</div> | ||
<div className={`cursor-pointer ${location.pathname === '/upload/link' ? 'text-teal font-medium' : 'text-white'}`} onClick={() => redirectTo('/upload/link')}> | ||
Upload Link | ||
</div> | ||
<div className={`cursor-pointer ${location.pathname === '/upload/manual' ? 'text-teal font-medium' : 'text-white'}`} onClick={() => redirectTo('/upload/manual')}> | ||
Upload Manually | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const UploadButton: React.FC = () => { | ||
let navigate = useNavigate(); | ||
const routeChange = () => { | ||
let path = `/upload/revise`; | ||
navigate(path); | ||
}; | ||
|
||
return ( | ||
<button | ||
onClick={routeChange} | ||
className="w-[94px] h-[40px] rounded-md bg-teal text-white text-base text-center flex items-center justify-center" > | ||
Upload | ||
</button> | ||
); | ||
}; | ||
|
||
|
||
export { UploadNavBar, UploadButton }; |
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,11 @@ | ||
import React from "react"; | ||
import {UploadNavBar} from "./index" | ||
|
||
const UploadRevise: React.FC = () => { | ||
return ( | ||
<div className="flex flex-col justify-center items-center w-4/6 mx-auto">Revise | ||
</div> | ||
) | ||
} | ||
|
||
export { UploadRevise }; |
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,8 +1,11 @@ | ||
export * from "./Academics"; | ||
export * from "./Careers"; | ||
export * from "./Clubs"; | ||
export * from "./Instructions"; | ||
export * from "./Support"; | ||
export * from "./Upload"; | ||
export * from "./UploadFile"; | ||
export * from "./UploadEdit"; | ||
export * from "./UploadLink"; | ||
export * from "./UploadNavBar"; | ||
export * from "./UploadManual"; | ||
export * from "./UploadRevise"; | ||
export * from "./Welcome"; |