Formatting and typing
This commit is contained in:
		
							parent
							
								
									9c824f1d7b
								
							
						
					
					
						commit
						40f7241550
					
				
					 9 changed files with 155 additions and 110 deletions
				
			
		|  | @ -1,26 +1,38 @@ | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function PMProjectPage() { | ||||
|    | ||||
|   const content =  | ||||
| <>  | ||||
|   <h1 className="font-bold text-[30px] mb-[20px]">ProjectNameExample</h1> | ||||
|   <div className="border-4 border-black bg-white flex flex-col items-center justify-center min-h-[65vh] h-fit w-[50vw] rounded-3xl content-center overflow-scroll space-y-[5vh] p-[30px]"> | ||||
|     <h1 className="font-bold underline text-[30px] cursor-pointer">Your Time Reports</h1> | ||||
|     <h1 className="font-bold underline text-[30px] cursor-pointer">New Time Report</h1> | ||||
|     <h1 className="font-bold underline text-[30px] cursor-pointer">Statistics</h1> | ||||
|     <h1 className="font-bold underline text-[30px] cursor-pointer">Unsigned Time Reports</h1> | ||||
|   </div> | ||||
| </> | ||||
|    | ||||
|   const buttons =  | ||||
|   <> | ||||
|   <Button text="Back" onClick={() => {}}/> | ||||
|   </> | ||||
| 
 | ||||
|   return ( | ||||
|     <BasicWindow username="Admin" content={content} buttons={buttons}/> | ||||
| function PMProjectPage(): JSX.Element { | ||||
|   const content = ( | ||||
|     <> | ||||
|       <h1 className="font-bold text-[30px] mb-[20px]">ProjectNameExample</h1> | ||||
|       <div className="border-4 border-black bg-white flex flex-col items-center justify-center min-h-[65vh] h-fit w-[50vw] rounded-3xl content-center overflow-scroll space-y-[5vh] p-[30px]"> | ||||
|         <h1 className="font-bold underline text-[30px] cursor-pointer"> | ||||
|           Your Time Reports | ||||
|         </h1> | ||||
|         <h1 className="font-bold underline text-[30px] cursor-pointer"> | ||||
|           New Time Report | ||||
|         </h1> | ||||
|         <h1 className="font-bold underline text-[30px] cursor-pointer"> | ||||
|           Statistics | ||||
|         </h1> | ||||
|         <h1 className="font-bold underline text-[30px] cursor-pointer"> | ||||
|           Unsigned Time Reports | ||||
|         </h1> | ||||
|       </div> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMProjectPage; | ||||
| export default PMProjectPage; | ||||
|  |  | |||
|  | @ -2,28 +2,36 @@ import { Link } from "react-router-dom"; | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function UserProjectPage() { | ||||
|    | ||||
|   const content =  | ||||
| <>  | ||||
| <Link to="/settingsPage"> | ||||
|   <h1 className="font-bold text-[30px] mb-[20px]">ProjectNameExample</h1> | ||||
| </Link> | ||||
|   <div className="border-4 border-black bg-white flex flex-col items-center justify-center min-h-[65vh] h-fit w-[50vw] rounded-3xl content-center overflow-scroll space-y-[10vh] p-[30px]"> | ||||
|     <h1 className="font-bold underline text-[30px] cursor-pointer">Your Time Reports</h1> | ||||
|     <h1 className="font-bold underline text-[30px] cursor-pointer">New Time Report</h1> | ||||
|   </div> | ||||
| </> | ||||
|    | ||||
|   const buttons =  | ||||
|   <> | ||||
|   <Link to="/your-projects"> | ||||
|   <Button text="Back" onClick={() => {}}/> | ||||
|   </Link> | ||||
|   </> | ||||
| 
 | ||||
|   return ( | ||||
|     <BasicWindow username="Admin" content={content} buttons={buttons}/> | ||||
| function UserProjectPage(): JSX.Element { | ||||
|   const content = ( | ||||
|     <> | ||||
|       <Link to="/settingsPage"> | ||||
|         <h1 className="font-bold text-[30px] mb-[20px]">ProjectNameExample</h1> | ||||
|       </Link> | ||||
|       <div className="border-4 border-black bg-white flex flex-col items-center justify-center min-h-[65vh] h-fit w-[50vw] rounded-3xl content-center overflow-scroll space-y-[10vh] p-[30px]"> | ||||
|         <h1 className="font-bold underline text-[30px] cursor-pointer"> | ||||
|           Your Time Reports | ||||
|         </h1> | ||||
|         <h1 className="font-bold underline text-[30px] cursor-pointer"> | ||||
|           New Time Report | ||||
|         </h1> | ||||
|       </div> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Link to="/your-projects"> | ||||
|         <Button | ||||
|           text="Back" | ||||
|           onClick={(): void => { | ||||
|             return; | ||||
|           }} | ||||
|         /> | ||||
|       </Link> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default UserProjectPage; | ||||
| export default UserProjectPage; | ||||
|  |  | |||
|  | @ -2,26 +2,30 @@ import { Link } from "react-router-dom"; | |||
| import BasicWindow from "../Components/BasicWindow"; | ||||
| 
 | ||||
| function YourProjectsPage() { | ||||
|    | ||||
|   const content =  | ||||
| <>  | ||||
|   <h1 className="font-bold text-[30px] mb-[20px]">Your Projects</h1> | ||||
|   <div className="border-4 border-black bg-white flex flex-col items-center justify-between min-h-[65vh] h-fit w-[50vw] rounded-3xl content-center overflow-scroll space-y-[10px] p-[30px]"> | ||||
|     <Link to="/project"> | ||||
|     <h1 className="underline text-[24px] cursor-pointer font-bold">ProjectNameExample</h1> | ||||
|     </Link> | ||||
|     <h1 className="underline text-[24px] cursor-pointer font-bold">ProjectNameExample</h1> | ||||
|     <h1 className="underline text-[24px] cursor-pointer font-bold">ProjectNameExample</h1> | ||||
|     <h1 className="underline text-[24px] cursor-pointer font-bold">ProjectNameExample</h1> | ||||
|   </div> | ||||
| </> | ||||
|    | ||||
|   const buttons =  | ||||
|   <> | ||||
|   </> | ||||
| 
 | ||||
|   return ( | ||||
|     <BasicWindow username="Admin" content={content} buttons={buttons}/> | ||||
|   const content = ( | ||||
|     <> | ||||
|       <h1 className="font-bold text-[30px] mb-[20px]">Your Projects</h1> | ||||
|       <div className="border-4 border-black bg-white flex flex-col items-center justify-between min-h-[65vh] h-fit w-[50vw] rounded-3xl content-center overflow-scroll space-y-[10px] p-[30px]"> | ||||
|         <Link to="/project"> | ||||
|           <h1 className="underline text-[24px] cursor-pointer font-bold"> | ||||
|             ProjectNameExample | ||||
|           </h1> | ||||
|         </Link> | ||||
|         <h1 className="underline text-[24px] cursor-pointer font-bold"> | ||||
|           ProjectNameExample | ||||
|         </h1> | ||||
|         <h1 className="underline text-[24px] cursor-pointer font-bold"> | ||||
|           ProjectNameExample | ||||
|         </h1> | ||||
|         <h1 className="underline text-[24px] cursor-pointer font-bold"> | ||||
|           ProjectNameExample | ||||
|         </h1> | ||||
|       </div> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   const buttons = <></>; | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default YourProjectsPage; | ||||
| export default YourProjectsPage; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Imbus
						Imbus