Skip to content
Open
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
6 changes: 5 additions & 1 deletion src/components/ProjectList.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import Box from '@mui/material/Box';

const ProjectList = ({projects}) => {

const HEIGHT = 25;

const [rowHeight, setRowHeight] = useState(200); // valor por defecto

useEffect(() => {
Expand Down Expand Up @@ -38,7 +40,9 @@ const ProjectList = ({projects}) => {
}
};

return <ImageList cols={widescreen? 4 : 2} gap={widescreen? 10 : 6} sx={{margin: {xs: 1, md: 2}}} rowHeight={widescreen? rowHeight : 200}>
const COLUMNS = widescreen? 3 : 2;

return <ImageList cols={COLUMNS} gap={widescreen? 10 : 6} sx={{margin: {xs: 1, md: 2}}} rowHeight={widescreen? rowHeight : 200}>
{projects.map((project) => (
<ImageListItem key={project.img}>
<Box sx={imageContent}>
Expand Down
11 changes: 10 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ export const CONFIG = {
title: 'Calidad ecológica de los ríos de Barcelona',
url: 'https://www.ub.edu/barcelonarius/visor22/#/indicator/ibmwp_rang/2021/0',
},
{
img: 'img/firepoctep.png',
title: 'Firepoctep',
url: 'https://labs.geomatico.es/firepoctep/#/es/map',
},
{
img: 'img/IDE-Cetemas.png',
title: 'IDE Cetemas',
url: 'https://www.cetemas.es/ide/',
},
{
img: 'img/energeticas.png',
title: 'Comunidades energéticas',
Expand All @@ -60,6 +70,5 @@ export const CONFIG = {
title: 'Mapa del cultivo del aguacate',
url: 'https://goaguacatespain.com/mapa/',
},

]
};
Binary file added static/img/IDE-Cetemas.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 static/img/firepoctep.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.