Skip to content

Commit e9bf0a1

Browse files
Adding dianegative versions of project logos
1 parent 9cbf7bf commit e9bf0a1

File tree

6 files changed

+21
-8
lines changed

6 files changed

+21
-8
lines changed
54 KB
Loading
46.9 KB
Loading
25 KB
Loading

src/components/project-card.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
import { Image, Link } from '@/components/mdx'
1+
import { Link } from '@/components/mdx'
22
import { Box, Card, CardBody, Stack, Text } from '@chakra-ui/react'
3+
import { ColorModeImage } from '@/components/ColorModeImage'
34

4-
export const ProjectCard = ({ name, description, repo, homepage, logo }) => {
5+
export const ProjectCard = ({
6+
name,
7+
description,
8+
repo,
9+
homepage,
10+
logo_light,
11+
logo_dark,
12+
}) => {
513
return (
614
<Card
715
as={Link}
@@ -27,10 +35,11 @@ export const ProjectCard = ({ name, description, repo, homepage, logo }) => {
2735
gap={0}
2836
>
2937
<Box>
30-
<Image
38+
<ColorModeImage
3139
h={'128'}
3240
w={'full'}
33-
src={logo}
41+
lightSrc={logo_light}
42+
darkSrc={logo_dark}
3443
alt={name}
3544
layout='fill'
3645
objectFit='contain'

src/components/projects.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export const Projects = () => {
3030
<ProjectCard
3131
key={index}
3232
name={project.name}
33-
logo={project.logo}
33+
logo_light={project.logo_light}
34+
logo_dark={project.logo_dark}
3435
description={project.description}
3536
repo={project.repo}
3637
homepage={project.homepage}

src/data/projects.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ export const Projects = [
55
'PlasticParcels is a Python package to simulate the transport and dispersion of plastics in the ocean.',
66
repo: 'https://github.com/OceanParcels/plasticparcels',
77
homepage: 'https://plastic.oceanparcels.org/en/latest/',
8-
logo: '/projects/plasticparcelslogo.png',
8+
logo_light: '/projects/plasticparcelslogo.png',
9+
logo_dark: '/projects/plasticparcelslogo_dia.png',
910
},
1011
{
1112
name: 'VirtualShip Parcels',
1213
description:
1314
'VirtualShipParcels is a command-line simulator to plan and conduct a virtual research expedition.',
1415
repo: 'https://github.com/OceanParcels/virtualship',
1516
homepage: 'https://virtualship.oceanparcels.org/en/latest/',
16-
logo: '/projects/virtual_ship_logo.png',
17+
logo_light: '/projects/virtual_ship_logo.png',
18+
logo_dark: '/projects/virtual_ship_logo_dia.png',
1719
},
1820
// {
1921
// // TODO fix planktondrift website
@@ -28,6 +30,7 @@ export const Projects = [
2830
description:
2931
'Virtual Fleet is a Python tool that simulates Argo floats trajectories and measurement.',
3032
homepage: 'https://github.com/euroargodev/VirtualFleet',
31-
logo: '/projects/virtualfleet_logo.png',
33+
logo_light: '/projects/virtualfleet_logo.png',
34+
logo_dark: '/projects/virtualfleet_logo_dia.png',
3235
},
3336
]

0 commit comments

Comments
 (0)