-
Notifications
You must be signed in to change notification settings - Fork 2
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
4 changed files
with
385 additions
and
368 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 |
---|---|---|
|
@@ -14,6 +14,7 @@ export const metadata: Metadata = { | |
* | ||
* @param root0 | ||
* @param root0.children | ||
* @returns head of page | ||
*/ | ||
export default function RootLayout({ | ||
children, | ||
|
@@ -29,6 +30,12 @@ export default function RootLayout({ | |
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" | ||
crossOrigin="" | ||
/> | ||
<link | ||
href="https://fonts.googleapis.com/css?family=Lato:200,300,400,700" | ||
rel="stylesheet" | ||
integrity="sha384-S/0sPWyivHb0nXEN1JbIZoAHSDK4PQv0Zdl6399sbd0mYRatVZsKWdfflTIgipPy" | ||
crossOrigin="" | ||
/> | ||
<script | ||
src="https://unpkg.com/[email protected]/dist/leaflet.js" | ||
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" | ||
|
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,59 +1,40 @@ | ||
import React from 'react'; | ||
import { IoIosArrowRoundBack } from 'react-icons/io'; | ||
import Image from 'next/image'; | ||
|
||
/** | ||
* | ||
* @param root0 | ||
* @param root0.title | ||
* @param root0.createdAt | ||
* @param root0.contentLink | ||
* @param root0.id | ||
* @param root0 passed in | ||
* @param root0.title title of exhibit | ||
* @param root0.description description of exhibit | ||
* @param root0.category category of exhibit | ||
* @param root0.image image | ||
* @param root0.id id of exhibit | ||
* @returns exhibit component | ||
*/ | ||
|
||
/** | ||
* @param evt on click of button | ||
*/ | ||
function goBack(evt: React.SyntheticEvent) { | ||
// ignore the native anchor action | ||
evt.preventDefault(); | ||
|
||
window.history.back(); | ||
} | ||
|
||
/** | ||
* @returns back button | ||
*/ | ||
function BackButton() { | ||
return ( | ||
<button type="button" style={{ backgroundColor: '#4b711d' }} onClick={goBack}> | ||
{' '} | ||
<IoIosArrowRoundBack size={40} /> | ||
</button> | ||
); | ||
} | ||
|
||
/** | ||
* | ||
* @param root0 | ||
* @param root0.title | ||
* @param root0.createdAt | ||
* @param root0.contentLink | ||
* @param root0.id | ||
* @returns exhibit page | ||
*/ | ||
export default function Exhibit({ | ||
title, | ||
createdAt, | ||
contentLink, | ||
description, | ||
category, | ||
image, | ||
id, | ||
}: { | ||
title: string; | ||
createdAt: string; | ||
contentLink: string; | ||
description: string; | ||
category: string; | ||
image: string; | ||
id: string; | ||
}) { | ||
return ( | ||
<li key={id} /> | ||
<ul key={id}> | ||
<div className="w-[100%] px-4 pt-6 pb-7 bg-mint-cream rounded flex-col justify-start items-start gap-2.5 inline-flex mt-6"> | ||
<div className="flex-col justify-start items-start gap-5 flex"> | ||
<div className="justify-start items-center gap-2 inline-flex"> | ||
<div className="text-neutral-700 text-lg font-bold font-['Lato']"> {title}</div> | ||
</div> | ||
<div className="text-black text-base font-light font-['Lato']">{description}</div> | ||
<Image src={image} alt="Exhibit" width={354} height={150}/> | ||
</div> | ||
</div> | ||
</ul> | ||
); | ||
} |
Oops, something went wrong.