Skip to content

Commit

Permalink
Undoing exploreFurther as well
Browse files Browse the repository at this point in the history
  • Loading branch information
7emansell committed Oct 31, 2024
1 parent f299cb0 commit d63a18d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 6 additions & 12 deletions app/src/components/exploreFurther/exploreFurther.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
import { ExploreFurtherDataType } from "../../types/ExploreFurtherDataType";
import exploreFurtherData from "../../data/exploreFurtherData";
import { headerBreakpoints } from "../../utils/breakpoints";
import Image from "next/image";

const ExploreFurther = () => {
const data: ExploreFurtherDataType[] = exploreFurtherData;
Expand Down Expand Up @@ -49,18 +48,13 @@ const ExploreFurther = () => {
data-testid={`test-id-${index}`}
mainActionLink={item.url}
imageProps={{
component: (
<Image
src={item.image}
alt={""}
sizes="(max-width: 600px) 100vw, 25vw"
style={{
width: "100%",
minHeight: "100%",
}}
/>
),
alt: "",
aspectRatio: "sixteenByNine",
component: undefined,
isAtEnd: false,
isLazy: true,
size: "default",
src: item.imageSrc,
}}
layout="row"
sx={{
Expand Down
5 changes: 5 additions & 0 deletions app/src/data/exploreFurtherData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const exploreFurtherData: ExploreFurtherDataType[] = [
url: "http://nypl.artehouse.com/perl/home.pl",
image: serviceArtehouse,
imgAlt: "Service Artehouse",
imageSrc: "/service-artehouse.jpg",
},
{
title: "NYPL Archives and Manuscripts",
Expand All @@ -21,6 +22,7 @@ const exploreFurtherData: ExploreFurtherDataType[] = [
url: "http://archives.nypl.org/",
image: serviceArchives,
imgAlt: "Service Archives",
imageSrc: "/service-archives.jpg",
},
{
title: "NYPL Research Catalog",
Expand All @@ -29,6 +31,7 @@ const exploreFurtherData: ExploreFurtherDataType[] = [
url: "https://www.nypl.org/research/research-catalog/ ",
image: researchCatalog,
imgAlt: "NYPL Research Catalog",
imageSrc: "/ResearchCatalogThumbnail_v2.jpg",
},
{
title: "NYPL Digital Collections API",
Expand All @@ -37,6 +40,7 @@ const exploreFurtherData: ExploreFurtherDataType[] = [
url: "https://api.repo.nypl.org/",
image: serviceApi,
imgAlt: "Service API",
imageSrc: "/service-api.jpg",
},
{
title: "Digital Public Library of America",
Expand All @@ -45,6 +49,7 @@ const exploreFurtherData: ExploreFurtherDataType[] = [
url: "http://dp.la/",
image: serviceDpla,
imgAlt: "Service Digital Public Library",
imageSrc: "/service-dpla.jpg",
},
];

Expand Down
1 change: 1 addition & 0 deletions app/src/types/ExploreFurtherDataType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export interface ExploreFurtherDataType {
description: string;
imgAlt: string;
image: StaticImageData;
imageSrc: string;
}

0 comments on commit d63a18d

Please sign in to comment.