From e796ab946990b93f58a211fc5bc83205de728dfc Mon Sep 17 00:00:00 2001 From: jxmoose Date: Sat, 25 May 2024 22:10:08 -0700 Subject: [PATCH 1/2] added correct links to site map --- src/app/exhibits/page.tsx | 4 ++-- src/components/userComponents/SiteMap/ExhibitPreviewCard.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/exhibits/page.tsx b/src/app/exhibits/page.tsx index 622c4e6..27bfab7 100644 --- a/src/app/exhibits/page.tsx +++ b/src/app/exhibits/page.tsx @@ -34,12 +34,12 @@ function App() { if (hash) { setTimeout(() => { const element = document.querySelector(hash); - const yOffset = -200; + const yOffset = -100; if (element) { const y = element.getBoundingClientRect().top + window.scrollY + yOffset; // check on this offset later - window.scrollTo({ top: y, behavior: 'auto' }); + window.scrollTo({ top: y, behavior: 'smooth' }); } }, 1000); } diff --git a/src/components/userComponents/SiteMap/ExhibitPreviewCard.tsx b/src/components/userComponents/SiteMap/ExhibitPreviewCard.tsx index 07dc1e3..310c951 100644 --- a/src/components/userComponents/SiteMap/ExhibitPreviewCard.tsx +++ b/src/components/userComponents/SiteMap/ExhibitPreviewCard.tsx @@ -145,7 +145,7 @@ function ExhibitPreviewCard({ /> - +

{name1} From cea957d19185f76f44025045b01a1a39d497c4c8 Mon Sep 17 00:00:00 2001 From: jxmoose Date: Sun, 26 May 2024 13:39:10 -0700 Subject: [PATCH 2/2] made images fit to exhibit component --- src/app/exhibits/page.tsx | 2 +- .../userComponents/Exhibit/Exhibit.tsx | 22 +++++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/app/exhibits/page.tsx b/src/app/exhibits/page.tsx index 27bfab7..311dd85 100644 --- a/src/app/exhibits/page.tsx +++ b/src/app/exhibits/page.tsx @@ -119,7 +119,7 @@ function App() {

-
+
{exhibits.map(exhibit => ( {description}

- Exhibit + Exhibit
@@ -46,16 +53,23 @@ export default function Exhibit({
-

+

{' '} {title} -

+

{description}

- Exhibit + Exhibit
)}