-
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.
- Loading branch information
Showing
9 changed files
with
115 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react' | ||
|
||
const Ending = () => { | ||
return ( | ||
<div className="relative w-full h-full"> | ||
<img src="/imgs/narrative_six.png" alt="" className="w-full h-full" /> | ||
<div className="absolute left-8 bottom-[11rem] px-5 py-7 max-w-[57rem] bg-black bg-opacity-[.65] rounded-lg"> | ||
<p className="font-semibold text-[2rem]">FloodGen offers AI generative imagery that can show the predictable flooding, and improve preparedness</p> | ||
</div> | ||
<button className='absolute left-8 bottom-[5rem] px-5 py-4 text-semibold text-[1.5rem] bg-[#306DDD] rounded-[40px] cursor-pointer'>Explore Floodgen</button> | ||
<img src='/logos/fg_logo_white_sm.png' className='absolute right-6 bottom-4 z-30 w-8 h-8' /> | ||
</div> | ||
) | ||
} | ||
|
||
export default Ending |
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,16 @@ | ||
import React from 'react' | ||
|
||
const Introduction = () => { | ||
return ( | ||
<div className="relative w-full h-full"> | ||
<img src="/imgs/narrative_one.png" className="w-full h-full" /> | ||
<div className="absolute right-12 bottom-16 px-5 py-7 w-[36rem] bg-black bg-opacity-[.65] rounded-lg"> | ||
<h1 className="font-semibold text-[6.25rem]">1.3 million</h1> | ||
<p className="mb-[1rem] font-semibold text-[2rem]">New York City residents live within or directly adjacent to the floodplain. Flood damage is extensive, expensive, and often times predictable</p> | ||
<p className="font-semibold text-[1rem]">Source: Info, Photo</p> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Introduction |
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,11 @@ | ||
import React from 'react' | ||
|
||
const StreetView = () => { | ||
return ( | ||
<div className="relative w-full h-full"> | ||
<img src="/imgs/narrative_four.png" alt="" className="w-full h-full" /> | ||
</div> | ||
) | ||
} | ||
|
||
export default StreetView |
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,24 @@ | ||
import React, { createContext, useState, Dispatch, SetStateAction, ReactNode } from 'react' | ||
|
||
export type NarrativeType = { | ||
openNarrative: boolean | null, | ||
setOpenNarrative: Dispatch<SetStateAction<boolean>> | ||
} | ||
|
||
type Props = { | ||
children: ReactNode | ||
} | ||
|
||
const NarrativeContext = createContext<NarrativeType | null>(null) | ||
|
||
const NarrativeProvider = ({ children }: Props) => { | ||
const [openNarrative, setOpenNarrative] = useState(true) | ||
|
||
return ( | ||
<NarrativeContext.Provider value={{openNarrative, setOpenNarrative}}> | ||
{children} | ||
</NarrativeContext.Provider> | ||
) | ||
} | ||
|
||
export {NarrativeContext, NarrativeProvider} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.