-
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
13 changed files
with
141 additions
and
49 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,55 @@ | ||
import { StaticImageData } from 'next/image'; | ||
import Image from 'next/image'; | ||
|
||
export type IdCardProps = { | ||
name: string; | ||
description?: string; | ||
role?: string; | ||
image?: StaticImageData; | ||
}; | ||
|
||
export default function IdCard({ | ||
name, | ||
description, | ||
role, | ||
image, | ||
organisation, | ||
}: { | ||
name: string; | ||
description?: string; | ||
role?: string; | ||
image?: StaticImageData; | ||
organisation?: boolean; | ||
}) { | ||
return ( | ||
<article | ||
className={`rounded-xl m-2 overflow-hidden w-56 flex flex-col ${organisation ? 'bg-secondary' : 'bg-accent'}`} | ||
> | ||
<header className="bg-secondary h-10 flex justify-center items-center"> | ||
<div | ||
className={`rounded-2xl w-12 h-3 mt-1 ${organisation ? 'bg-primary' : 'bg-accent'}`} | ||
/> | ||
</header> | ||
<main | ||
className={`flex-grow flex flex-col px-4 py-2 ${organisation ? 'mb-2' : 'text-black'}`} | ||
> | ||
{image && ( | ||
<Image | ||
src={image} | ||
alt={`Image of ${name}`} | ||
className={`mx-auto mb-2 ${organisation ? 'h-20 w-auto' : 'w-36 h-auto'}`} | ||
/> | ||
)} | ||
<h3 className="mt-auto text-xl font-bold leading-tight">{name}</h3> | ||
{description && ( | ||
<span className="block text-sm leading-tight">{description}</span> | ||
)} | ||
</main> | ||
{role && ( | ||
<footer className="bg-secondary text-xl uppercase font-bold pt-1 pb-2 px-2 mt-auto"> | ||
{role} | ||
</footer> | ||
)} | ||
</article> | ||
); | ||
} |
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,6 +1,6 @@ | ||
export default function Faq() { | ||
return ( | ||
<section> | ||
<section className="mb-12"> | ||
<h2>FAQ</h2> | ||
</section> | ||
); | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.