Skip to content

Commit

Permalink
added correct links to site map
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmoose committed May 26, 2024
1 parent 945af9f commit e796ab9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/exhibits/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function ExhibitPreviewCard({
/>
</svg>
</div>
<Link href={`/wildlife-spotlights/${id}`}>
<Link href={`/exhibits#a${id}`}>
<h3 className="relative pr-[0.31rem] pl-[0.75rem] pt-[0.3rem] pb-[0rem]">
<p className="truncate font-medium font-lato text-night text-base leading-normal">
{name1}
Expand Down

0 comments on commit e796ab9

Please sign in to comment.