-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* make sure the text isn't covered by the images * add close button to the fundraiser banner * make all the link tag styles consistent across the website * revert the uncompleted work for banner issue * fix the wierd duplicated banner issue * remove @nanostores/persistent pkg * fix the issue where page top-padding is too large event when fundraiser is hidden
- Loading branch information
Showing
18 changed files
with
149 additions
and
132 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 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 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 was deleted.
Oops, something went wrong.
This file contains 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,23 @@ | ||
import { atom, StoreValue } from 'nanostores' | ||
|
||
export const isNavigationOpen = atom<boolean>(false) | ||
export const isFundraiserOpen = atom<boolean>(true) | ||
|
||
// manipulate navigation menu | ||
export const openNavigation = (): StoreValue<typeof isNavigationOpen> => { | ||
isNavigationOpen.set(true) | ||
return isNavigationOpen.get() | ||
} | ||
export const closeNavigation = (): StoreValue<typeof isNavigationOpen> => { | ||
isNavigationOpen.set(false) | ||
return isNavigationOpen.get() | ||
} | ||
export const toggleNavigation = (): StoreValue<typeof isNavigationOpen> => { | ||
isNavigationOpen.set(!isNavigationOpen.get()) | ||
return isNavigationOpen.get() | ||
} | ||
|
||
export const closeFundraiser = (): StoreValue<typeof isFundraiserOpen> => { | ||
isFundraiserOpen.set(false) | ||
return isFundraiserOpen.get() | ||
} |
Oops, something went wrong.