-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from polywrap/intro-pop-up
Creates Intro Pop Up
- Loading branch information
Showing
4 changed files
with
66 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
"use client"; | ||
|
||
import { X } from "@phosphor-icons/react/dist/ssr"; | ||
import { SparkleIcon } from "./Icons"; | ||
import { Dispatch, SetStateAction } from "react"; | ||
|
||
interface IntroPopupProps { | ||
setShowIntro: Dispatch<SetStateAction<boolean>>; | ||
} | ||
|
||
const IntroPopUp = ({ setShowIntro }: IntroPopupProps) => { | ||
const handleClose = () => { | ||
setShowIntro(false); | ||
localStorage.setItem("introClosed", "true"); | ||
}; | ||
|
||
return ( | ||
<div className='fixed bottom-16 left-1/2 transform -translate-x-1/2 max-w-screen-md w-[calc(100%-48px)] z-10'> | ||
<X | ||
onClick={handleClose} | ||
className='absolute top-3 right-3 text-indigo-800 hover:text-indigo-500 cursor-pointer' | ||
size={20} | ||
weight='bold' | ||
/> | ||
<div className='p-6 bg-indigo-25 rounded-2xl border-2 border-indigo-200 space-y-1 shadow-md shadow-primary-shadow/20'> | ||
<div className='flex items-center'> | ||
<SparkleIcon size={24} className='transform -translate-x-1' /> | ||
<div className='text-lg font-bold'> | ||
Welcome to fundpublicgoods.ai! | ||
</div> | ||
</div> | ||
<div className='text-[14px] leading-relaxed'> | ||
This is a proof-of-concept to showcase the potential of AI agents to | ||
assist users with complex transactions. Give it a try and let us know | ||
what you think! | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default IntroPopUp; |
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