-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: currency component and intro modal organization
- Loading branch information
Showing
8 changed files
with
83 additions
and
104 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { | ||
ClipboardPenIcon, | ||
FileQuestionIcon, | ||
LayoutDashboardIcon, | ||
UserIcon, | ||
} from "lucide-react"; | ||
|
||
const isServer = typeof window === "undefined"; | ||
|
||
export const introItems = [ | ||
{ | ||
title: "Project Overview", | ||
description: | ||
"Explore and compare over 400 project scenarios with ease. Apply filters for location, ecosystem type, activity, cost, abatement potential and project size. The global map visualizes project blue carbon potential across 9 countries, enabling comparisons based on cost-to-abatement ratios. Additionally, use the comparison table for detailed cost and score analyses, and select a project for additional details.", | ||
icon: LayoutDashboardIcon, | ||
}, | ||
{ | ||
title: "Create custom projects", | ||
description: | ||
"Design custom scenarios by modifying default parameters and exploring the resulting data in detail. Save your projects to revisit them anytime and quickly compare all the scenarios you’ve created.", | ||
icon: ClipboardPenIcon, | ||
}, | ||
{ | ||
title: "Methodology", | ||
description: | ||
"Explore for detailed information on model assumptions, estimations, and data sources.", | ||
icon: FileQuestionIcon, | ||
}, | ||
{ | ||
title: "Profile", | ||
description: "Access information about your personal account.", | ||
icon: UserIcon, | ||
}, | ||
]; | ||
|
||
export const showIntroModal = (): boolean => { | ||
if (isServer) return false; | ||
|
||
return ( | ||
!!process.env.HIDE_INTRO_MODAL || !localStorage.getItem("hideIntroModal") | ||
); | ||
}; | ||
|
||
export const setHideIntroModal = (): void => { | ||
if (isServer) return; | ||
|
||
localStorage.setItem("hideIntroModal", "true"); | ||
}; |
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