p5/8 done

This commit is contained in:
2026-04-14 23:08:44 +10:00
parent 5b921cbbbb
commit d7c5eedee5
6 changed files with 75 additions and 9 deletions

View File

@@ -4,8 +4,10 @@ import structures from "../../data";
import Box from '@mui/material/Box';
import Container from '@mui/material/Container';
import ImageListItemBar from '@mui/material/ImageListItemBar';
import { Link } from 'react-router-dom';
const imgData = structures.slice(0, -1);
function Gallery() {
return (
<Container maxWidth="lg">
@@ -21,7 +23,8 @@ function Gallery() {
},
}}
gap={8}>
{imgData.map((item) => (
{imgData.map((item, index) => (
<Link key={index} to={"/building/" + index}>
<ImageListItem key={item.img}>
<img
srcSet={item.img}
@@ -29,8 +32,9 @@ function Gallery() {
alt={item.title}
loading="lazy"
/>
<ImageListItemBar position="bottom" title={ item.title } />
<ImageListItemBar position="bottom" title={item.title} />
</ImageListItem>
</Link>
))}
</ImageList>
</Box>