-
Notifications
You must be signed in to change notification settings - Fork 9
Add dark mode support #141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e7cba43
Add dark mode support
VeckoTheGecko 3580ce6
Add color mode image component
VeckoTheGecko a2cc114
Merge branch 'main' into color-mode
erikvansebille 7d5375e
Adding diapositive logos of funders
erikvansebille b6b52d8
Adding diapositive versions of Parcels logos for dark mode
erikvansebille 9cbf7bf
Removing duplicate Image import
erikvansebille e9bf0a1
Adding dianegative versions of project logos
erikvansebille 5feb31b
Makign homaepage animation background transparent
erikvansebille 94d3c3a
Adding dianegative EPSR logo
erikvansebille 212899d
update theme to use system
VeckoTheGecko 67d2bb5
Fix blog page font colors
VeckoTheGecko 71656f3
Updating SH animated gif to cleaner border
erikvansebille File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| // So that we can easily use different images for light and dark mode | ||
| import { Image, useColorModeValue } from '@chakra-ui/react' | ||
|
|
||
| export function ColorModeImage({ lightSrc, darkSrc, alt, ...props }) { | ||
| const src = useColorModeValue(lightSrc, darkSrc) | ||
|
|
||
| return <Image src={src} alt={alt} {...props} /> | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import { IconButton, useColorMode } from '@chakra-ui/react' | ||
| import { SunIcon, MoonIcon } from '@chakra-ui/icons' | ||
|
|
||
| export function ColorModeToggle() { | ||
| const { colorMode, toggleColorMode } = useColorMode() | ||
|
|
||
| return ( | ||
| <IconButton | ||
| aria-label={`Switch to ${colorMode === 'light' ? 'dark' : 'light'} mode`} | ||
| icon={colorMode === 'light' ? <MoonIcon /> : <SunIcon />} | ||
| onClick={toggleColorMode} | ||
| variant='ghost' | ||
| size='md' | ||
| position='fixed' | ||
| top={4} | ||
| right={4} | ||
| zIndex={1000} | ||
| /> | ||
| ) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,32 @@ | ||
| export const Funders = [ | ||
| { | ||
| name: 'The Dutch Research Council (NWO)', | ||
| logo: '/funders-logos/NWOlogo.png', | ||
| logo_light: '/funders-logos/NWOlogo.png', | ||
| logo_dark: '/funders-logos/NWOlogo_dia.png', | ||
| url: 'https://www.nwo.nl/en', | ||
| }, | ||
| { | ||
| name: 'The European Research Council under the H2020 Starting Grant TOPIOS project (grant agreement No 715386).', | ||
| logo: '/funders-logos/ERClogo.png', | ||
| logo_light: '/funders-logos/ERClogo.png', | ||
| logo_dark: '/funders-logos/ERClogo_dia.png', | ||
| url: 'http://topios.org/', | ||
| }, | ||
| { | ||
| name: 'ESPRC', | ||
| logo: '/funders-logos/EPSRlogo.png', | ||
| logo_light: '/funders-logos/EPSRlogo.png', | ||
| logo_dark: '/funders-logos/EPSRlogo_dia.png', | ||
| url: 'https://www.ukri.org/councils/epsrc/', | ||
| }, | ||
| { | ||
| name: 'BMBF via the Warmworld project', | ||
| logo: '/funders-logos/BMBFlogo.png', | ||
| logo_light: '/funders-logos/BMBFlogo.png', | ||
| logo_dark: '/funders-logos/BMBFlogo_dia.png', | ||
| url: 'https://www.warmworld.de', | ||
| }, | ||
| { | ||
| name: 'Utrecht University', | ||
| logo: '/funders-logos/UUlogo.png', | ||
| logo_light: '/funders-logos/UUlogo.png', | ||
| logo_dark: '/funders-logos/UUlogo_dia.png', | ||
| url: 'https://www.uu.nl/en', | ||
| }, | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.