Skip to content

Commit

Permalink
Merge pull request #146 from acm-ucr/AldrieBarcena/GalleryComponent/Page
Browse files Browse the repository at this point in the history
AldrieBarcena/GalleryComponent/Page
  • Loading branch information
SafeDuck authored Nov 27, 2024
2 parents 5872819 + 1c9c884 commit 2bf86eb
Show file tree
Hide file tree
Showing 102 changed files with 171 additions and 3 deletions.
63 changes: 60 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"react": "^18.3.1",
"react-day-picker": "^8.10.1",
"react-dom": "^18.3.1",
"react-grid-gallery": "^1.0.1",
"react-hot-toast": "^2.4.1",
"react-icons": "^5.3.0",
"tailwind-merge": "^2.5.4",
Expand Down
Binary file removed public/fight-team/2023/image75.png
Binary file not shown.
Binary file added public/fight-team/2023/image75.webp
Binary file not shown.
Binary file removed public/fight-team/2023/image76.png
Binary file not shown.
Binary file added public/fight-team/2023/image76.webp
Binary file not shown.
Binary file removed public/fight-team/2023/image77.png
Binary file not shown.
Binary file added public/fight-team/2023/image77.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image10.png
Binary file not shown.
Binary file added public/fight-team/2024/image10.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image11.png
Binary file not shown.
Binary file added public/fight-team/2024/image11.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image12.png
Binary file not shown.
Binary file added public/fight-team/2024/image12.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image13.png
Binary file not shown.
Binary file added public/fight-team/2024/image13.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image14.png
Binary file not shown.
Binary file added public/fight-team/2024/image14.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image15.png
Binary file not shown.
Binary file added public/fight-team/2024/image15.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image16.png
Binary file not shown.
Binary file added public/fight-team/2024/image16.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image17.png
Binary file not shown.
Binary file added public/fight-team/2024/image17.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image18.png
Binary file not shown.
Binary file added public/fight-team/2024/image18.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image19.png
Binary file not shown.
Binary file added public/fight-team/2024/image19.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image20.png
Binary file not shown.
Binary file added public/fight-team/2024/image20.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image22.png
Binary file not shown.
Binary file added public/fight-team/2024/image22.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image23.png
Binary file not shown.
Binary file added public/fight-team/2024/image23.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image25.png
Binary file not shown.
Binary file added public/fight-team/2024/image25.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image26.png
Binary file not shown.
Binary file added public/fight-team/2024/image26.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image27.png
Binary file not shown.
Binary file added public/fight-team/2024/image27.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image28.png
Binary file not shown.
Binary file added public/fight-team/2024/image28.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image29.png
Binary file not shown.
Binary file added public/fight-team/2024/image29.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image30.png
Binary file not shown.
Binary file added public/fight-team/2024/image30.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image31.png
Binary file not shown.
Binary file added public/fight-team/2024/image31.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image32.png
Binary file not shown.
Binary file added public/fight-team/2024/image32.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image33.png
Binary file not shown.
Binary file added public/fight-team/2024/image33.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image34.png
Diff not rendered.
Binary file added public/fight-team/2024/image34.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image35.png
Diff not rendered.
Binary file added public/fight-team/2024/image35.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image5.png
Diff not rendered.
Binary file added public/fight-team/2024/image5.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image6.png
Diff not rendered.
Binary file added public/fight-team/2024/image6.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image7.png
Diff not rendered.
Binary file added public/fight-team/2024/image7.webp
Binary file not shown.
Binary file removed public/fight-team/2024/image8.png
Diff not rendered.
Binary file added public/fight-team/2024/image8.webp
Binary file not shown.
Binary file added public/gallery/image1.webp
Binary file not shown.
Binary file added public/gallery/image10.webp
Binary file not shown.
Binary file added public/gallery/image11.webp
Binary file not shown.
Binary file added public/gallery/image12.webp
Binary file not shown.
Binary file added public/gallery/image13.webp
Binary file not shown.
Binary file added public/gallery/image14.webp
Binary file not shown.
Binary file added public/gallery/image15.webp
Binary file not shown.
Binary file added public/gallery/image16.webp
Binary file not shown.
Binary file added public/gallery/image17.webp
Binary file not shown.
Binary file added public/gallery/image18.webp
Binary file not shown.
Binary file added public/gallery/image19.webp
Binary file not shown.
Binary file added public/gallery/image2.webp
Binary file not shown.
Binary file added public/gallery/image20.webp
Binary file not shown.
Binary file added public/gallery/image21.webp
Binary file not shown.
Binary file added public/gallery/image22.webp
Binary file not shown.
Binary file added public/gallery/image23.webp
Binary file not shown.
Binary file added public/gallery/image24.webp
Binary file not shown.
Binary file added public/gallery/image25.webp
Binary file not shown.
Binary file added public/gallery/image26.webp
Binary file not shown.
Binary file added public/gallery/image27.webp
Binary file not shown.
Binary file added public/gallery/image28.webp
Binary file not shown.
Binary file added public/gallery/image29.webp
Binary file not shown.
Binary file added public/gallery/image3.webp
Binary file not shown.
Binary file added public/gallery/image30.webp
Binary file not shown.
Binary file added public/gallery/image31.webp
Binary file not shown.
Binary file added public/gallery/image32.webp
Binary file not shown.
Binary file added public/gallery/image33.webp
Binary file not shown.
Binary file added public/gallery/image34.webp
Binary file not shown.
Binary file added public/gallery/image35.webp
Binary file not shown.
Binary file added public/gallery/image36.webp
Binary file not shown.
Binary file added public/gallery/image37.webp
Binary file not shown.
Binary file added public/gallery/image4.webp
Binary file not shown.
Binary file added public/gallery/image5.webp
Binary file not shown.
Binary file added public/gallery/image6.webp
Binary file not shown.
Binary file added public/gallery/image7.webp
Binary file not shown.
Binary file added public/gallery/image8.webp
Binary file not shown.
Binary file added public/gallery/image9.webp
Binary file not shown.
110 changes: 110 additions & 0 deletions src/app/gallery/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
"use client";
import { Gallery } from "react-grid-gallery";
import React from "react";

import image1 from "@/public/gallery/image1.webp";
import image2 from "@/public/gallery/image2.webp";
import image3 from "@/public/gallery/image3.webp";
import image4 from "@/public/gallery/image4.webp";
import image5 from "@/public/gallery/image5.webp";
import image6 from "@/public/gallery/image6.webp";
import image7 from "@/public/gallery/image7.webp";
import image8 from "@/public/gallery/image8.webp";
import image9 from "@/public/gallery/image9.webp";
import image10 from "@/public/gallery/image10.webp";
import image11 from "@/public/gallery/image11.webp";
import image12 from "@/public/gallery/image12.webp";
import image13 from "@/public/gallery/image13.webp";
import image14 from "@/public/gallery/image14.webp";
import image15 from "@/public/gallery/image15.webp";
import image16 from "@/public/gallery/image16.webp";
import image17 from "@/public/gallery/image17.webp";
import image18 from "@/public/gallery/image18.webp";
import image19 from "@/public/gallery/image19.webp";
import image20 from "@/public/gallery/image20.webp";
import image21 from "@/public/gallery/image21.webp";
import image22 from "@/public/gallery/image22.webp";
import image23 from "@/public/gallery/image23.webp";
import image24 from "@/public/gallery/image24.webp";
import image25 from "@/public/gallery/image25.webp";
import image26 from "@/public/gallery/image26.webp";
import image27 from "@/public/gallery/image27.webp";
import image28 from "@/public/gallery/image28.webp";
import image29 from "@/public/gallery/image29.webp";
import image30 from "@/public/gallery/image30.webp";
import image31 from "@/public/gallery/image31.webp";
import image32 from "@/public/gallery/image32.webp";
import image33 from "@/public/gallery/image33.webp";
import image34 from "@/public/gallery/image34.webp";
import image35 from "@/public/gallery/image35.webp";
import image36 from "@/public/gallery/image36.webp";
import image37 from "@/public/gallery/image37.webp";

type ImageProps = {
src: string;
width: number;
height: number;
caption?: string;
alt?: string;
};

const importedImages = [
image1,
image2,
image3,
image4,
image5,
image6,
image7,
image8,
image9,
image10,
image11,
image12,
image13,
image14,
image15,
image16,
image17,
image18,
image19,
image20,
image21,
image22,
image23,
image24,
image25,
image26,
image27,
image28,
image29,
image30,
image31,
image32,
image33,
image34,
image35,
image36,
image37,
];

const images: ImageProps[] = importedImages.map((image, index) => ({
src: image.src,
width: image.width,
height: image.height,
alt: `Image ${index + 1}`,
}));

const GalleryComponent = () => {
return (
<div className="w-full">
<div className="flex flex-col items-center justify-center">
<p className="py-1 font-archivo-black">2023 - 2024</p>
<div className="flex w-36 flex-col border-t-[2px] border-white pb-3" />
</div>
<Gallery images={images} />
</div>
);
};

export default GalleryComponent;

0 comments on commit 2bf86eb

Please sign in to comment.