|
| 1 | +import React from "react" |
| 2 | + |
| 3 | +const GalleryConf = () => { |
| 4 | + const images: number[] = [1, 2, 3, 4, 5, 6, 7, 8] |
| 5 | + const randomArrayImages: number[] = images.sort(() => Math.random() - 0.5) |
| 6 | + |
| 7 | + return ( |
| 8 | + <div className="mb-5"> |
| 9 | + <div className="container px-3 py-6 mx-auto"> |
| 10 | + <h1 className="text-center text-4xl text-white mb-10 font-bold"> |
| 11 | + Gallery |
| 12 | + </h1> |
| 13 | + <h2 className="text-center text-white text-lg mt-2 mb-10"> |
| 14 | + Full album link will be shared as soon as edited photos are available. |
| 15 | + </h2> |
| 16 | + <div className="flex flex-wrap md:-m-2 -m-1"> |
| 17 | + <div className="flex flex-wrap w-1/2"> |
| 18 | + <div className="md:p-2 p-1 w-1/2 hover:opacity-50 cursor-pointer"> |
| 19 | + <img |
| 20 | + alt="gallery" |
| 21 | + className="w-full object-cover h-full object-center block" |
| 22 | + src={`/img/conf/Gallery/${randomArrayImages[0]}.jpg`} |
| 23 | + /> |
| 24 | + </div> |
| 25 | + <div className="md:p-2 p-1 w-1/2 hover:opacity-50 cursor-pointer"> |
| 26 | + <img |
| 27 | + alt="gallery" |
| 28 | + className="w-full object-cover h-full object-center block" |
| 29 | + src={`/img/conf/Gallery/${randomArrayImages[1]}.jpg`} |
| 30 | + /> |
| 31 | + </div> |
| 32 | + <div className="md:p-2 p-1 w-full hover:opacity-50 cursor-pointer"> |
| 33 | + <img |
| 34 | + alt="gallery" |
| 35 | + className="w-full h-full object-cover object-center block" |
| 36 | + src={`/img/conf/Gallery/${randomArrayImages[2]}.jpg`} |
| 37 | + /> |
| 38 | + </div> |
| 39 | + <div className="md:p-2 p-1 w-1/2 hover:opacity-50 cursor-pointer"> |
| 40 | + <img |
| 41 | + alt="gallery" |
| 42 | + className="w-full h-full object-cover object-center block" |
| 43 | + src={`/img/conf/Gallery/${randomArrayImages[3]}.jpg`} |
| 44 | + /> |
| 45 | + </div> |
| 46 | + <div className="md:p-2 p-1 w-1/2 hover:opacity-50 cursor-pointer"> |
| 47 | + <img |
| 48 | + alt="gallery" |
| 49 | + className="w-full h-full object-cover object-center block" |
| 50 | + src={`/img/conf/Gallery/${randomArrayImages[4]}.jpg`} |
| 51 | + /> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + <div className="flex flex-wrap w-1/2 hover:opacity-50 cursor-pointer"> |
| 55 | + <div className="md:p-2 p-1 w-full"> |
| 56 | + <img |
| 57 | + alt="gallery" |
| 58 | + className="w-full h-full object-cover object-center block" |
| 59 | + src={`/img/conf/Gallery/${randomArrayImages[5]}.jpg`} |
| 60 | + /> |
| 61 | + </div> |
| 62 | + <div className="md:p-2 p-1 w-1/2 hover:opacity-50 cursor-pointer"> |
| 63 | + <img |
| 64 | + alt="gallery" |
| 65 | + className="w-full object-cover h-full object-center block" |
| 66 | + src={`/img/conf/Gallery/${randomArrayImages[6]}.jpg`} |
| 67 | + /> |
| 68 | + </div> |
| 69 | + <div className="md:p-2 p-1 w-1/2 hover:opacity-50 cursor-pointer"> |
| 70 | + <img |
| 71 | + alt="gallery" |
| 72 | + className="w-full object-cover h-full object-center block" |
| 73 | + src={`/img/conf/Gallery/${randomArrayImages[7]}.jpg`} |
| 74 | + /> |
| 75 | + </div> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + ) |
| 81 | +} |
| 82 | + |
| 83 | +export default GalleryConf |
0 commit comments