-
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.
* Lag routing til profilside * Lag profil komponent og legg til under /profil/:id * lint errors * fiks index.ts feil * fiks bildelink * Lag mine søknaderside og profilinfo * Lag søknaderkomponent * fiks linterrors * Fiks header posisjon * fiks merge --------- Co-authored-by: mauricew <[email protected]>
- Loading branch information
1 parent
d50bd38
commit 9fe9bf5
Showing
6 changed files
with
122 additions
and
3 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
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 React from "react"; | ||
|
||
interface ApplicationProps { | ||
applications: Application[]; | ||
} | ||
|
||
interface Application { | ||
role: string; | ||
status: string; | ||
expectedAction: string; | ||
} | ||
|
||
const Applications = ({ applications }: ApplicationProps) => { | ||
return ( | ||
<div className="flex flex-col justify-center mt-2"> | ||
{applications.map((application) => { | ||
return ( | ||
<div className="border-2 border-gray-200 shadow-md mt-4 max-w-lg mx-4 p-2 rounded-sm"> | ||
<h1 className="text-2xl font-medium text-vektor-darblue mt-2"> | ||
{application.role} | ||
</h1> | ||
<p className="text-gray-600 text-m font-medium mt-2"> | ||
<span className="font-bold">Status:</span> | ||
{" "} | ||
{application.status} | ||
</p> | ||
<p className="text-gray-600 text-m font-medium my-2"> | ||
<span className="font-bold">Forventet Handling:</span> | ||
{" "} | ||
{application.expectedAction} | ||
</p> | ||
</div> | ||
); | ||
})} | ||
</div> | ||
); | ||
}; | ||
|
||
export default Applications; |
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,41 @@ | ||
import React from "react"; | ||
import ProfileModal from "./ProfileModal"; | ||
import Applications from "./Applications"; | ||
|
||
const MineSoknader = (): JSX.Element => { | ||
return ( | ||
<div className="flex justify-center mb-10 w-full"> | ||
<div className="col-12 text-center"> | ||
<h1 className="text-4xl font-medium text-vektor-darblue pb-2 pt-4 md:mt-0 mt-14"> | ||
Mine Søknader | ||
</h1> | ||
<ProfileModal | ||
imgUrl="https://vektorprogrammet.no/media/cache/profile_img/images/Profile%20photos/644805d1e8ef2.jpeg" | ||
name="Aaryan Neupan" | ||
/> | ||
<Applications | ||
applications={[ | ||
{ | ||
role: "IT-leder Høst 2024", | ||
status: "Avslått", | ||
expectedAction: | ||
"Ingen videre handling er nødvendig. Du vil ikke bli leder for IT høsten 2024.", | ||
}, | ||
{ | ||
role: "Vektorassistent Høst 2023", | ||
status: "Under vurdering", | ||
expectedAction: "Vente på svar", | ||
}, | ||
{ | ||
role: "Vektorassistent Vår 2022", | ||
status: "Innvilget", | ||
expectedAction: "Vente på mail med videre informasjon", | ||
}, | ||
]} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default MineSoknader; |
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,26 @@ | ||
import React from "react"; | ||
|
||
interface ProfileModalProps { | ||
imgUrl: string; | ||
name: string; | ||
} | ||
|
||
const ProfileModal = ({ imgUrl, name }: ProfileModalProps): JSX.Element => { | ||
return ( | ||
<div> | ||
<div className="flex justify-center"> | ||
<img | ||
src={imgUrl} | ||
alt="Aaryan" | ||
className="max-w-sm mt-2 rounded-full w-1/2" | ||
/> | ||
</div> | ||
<p className=" text-gray-600 text-m font-medium mt-2"> | ||
Du er logget inn som | ||
</p> | ||
<h2 className="text-2xl font-medium text-vektor-darblue pb-2">{name}</h2> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ProfileModal; |
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,3 @@ | ||
import MineSoknader from "./components/MineSoknader"; | ||
|
||
export default MineSoknader; |