Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jurisdiction icons #71

Merged
merged 3 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/images/jurisdictions/LAC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/jurisdictions/NMDOH-Logo-White.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/jurisdictions/Philly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 27 additions & 17 deletions src/app/components/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,30 @@ import 'slick-carousel/slick/slick-theme.css';

export default function Carousel() {
const images = [
`${basePath}/images/placeholder-carousel-numbered-1.png`,
`${basePath}/images/placeholder-carousel-numbered-2.png`,
`${basePath}/images/placeholder-carousel-numbered-3.png`,
`${basePath}/images/placeholder-carousel-numbered-4.png`,
`${basePath}/images/placeholder-carousel-numbered-5.png`,
`${basePath}/images/placeholder-carousel-numbered-6.png`,
`${basePath}/images/placeholder-carousel-numbered-7.png`,
`${basePath}/images/placeholder-carousel-numbered-1.png`,
`${basePath}/images/placeholder-carousel-numbered-2.png`,
`${basePath}/images/placeholder-carousel-numbered-3.png`,
`${basePath}/images/placeholder-carousel-numbered-4.png`,
`${basePath}/images/placeholder-carousel-numbered-5.png`,
`${basePath}/images/placeholder-carousel-numbered-6.png`,
`${basePath}/images/placeholder-carousel-numbered-7.png`,
{
image: `${basePath}/images/jurisdictions/LAC.png`,
alt: 'County of Los Angeles Public Health',
},
{
image: `${basePath}/images/jurisdictions/NMDOH-Logo-White.png`,
alt: 'NM Health',
},
{
image: `${basePath}/images/jurisdictions/Philly.png`,
alt: 'City of Philadelphia',
},
{
image: `${basePath}/images/jurisdictions/LAC.png`,
alt: 'County of Los Angeles Public Health',
},
{
image: `${basePath}/images/jurisdictions/NMDOH-Logo-White.png`,
alt: 'NM Health',
},
{
image: `${basePath}/images/jurisdictions/Philly.png`,
alt: 'City of Philadelphia',
},
];

const settings = {
Expand All @@ -37,11 +47,11 @@ export default function Carousel() {
return (
<div className={'sliderContainer'}>
<Slider {...settings}>
{images.map((src, index) => (
{images.map((imgObj, index) => (
<div key={index}>
<Image
src={src}
alt={`Slide ${index + 1}`}
src={imgObj.image}
alt={imgObj.alt}
width={160}
height={100}
draggable={false}
Expand Down
Loading