-
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
31 changed files
with
668 additions
and
80 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Empty file.
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 |
---|---|---|
@@ -1,7 +1,33 @@ | ||
import { motion } from "framer-motion"; | ||
import { useAccount } from "wagmi"; | ||
|
||
const variants = { | ||
onTop: { | ||
top: "5vh", | ||
left: "5vw", | ||
}, | ||
onCenter: { | ||
top: "50vh", | ||
}, | ||
}; | ||
export const ConnectWallet = () => { | ||
const { isConnected } = useAccount(); | ||
return ( | ||
<div className="w-screen h-screen flex justify-center items-center"> | ||
<w3m-button></w3m-button> | ||
</div> | ||
<motion.div | ||
style={{ | ||
position: "absolute", | ||
}} | ||
initial={{ top: "50vh" }} | ||
animate={isConnected ? "onTop" : "onCenter"} | ||
variants={variants} | ||
transition={{ duration: 0.5 }} | ||
> | ||
<w3m-button | ||
//@ts-ignore | ||
style={{ | ||
scale: "1.4", | ||
}} | ||
></w3m-button> | ||
</motion.div> | ||
); | ||
}; |
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 @@ | ||
export * from './loadingSpinner' |
15 changes: 15 additions & 0 deletions
15
frontend/src/components/loadingSpinner/loadingSpinner.module.css
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,15 @@ | ||
@keyframes pulse { | ||
0%, | ||
100% { | ||
opacity: 1; | ||
transform: scale(1); | ||
} | ||
50% { | ||
opacity: .2; | ||
transform: scale(0.5); | ||
} | ||
} | ||
|
||
.pulsar { | ||
animation: pulse 1s infinite cubic-bezier(0.4, 0, 0.6, 1); | ||
} |
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,18 @@ | ||
import style from './loadingSpinner.module.css' | ||
export const LoadingSpinner = () => { | ||
return ( | ||
<div className="flex justify-center items-center h-screen"> | ||
<div className="relative"> | ||
<div className="animate-spin rounded-full h-24 w-24 border-t-4 border-b-4 border-golemblue"></div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export const PulsingDotLoader = ({ className }: { className: string }) => { | ||
return ( | ||
<div | ||
className={`${style.pulsar} rounded-full ${className} bg-golemblue`} | ||
></div> | ||
) | ||
} |
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
Oops, something went wrong.