-
Notifications
You must be signed in to change notification settings - Fork 4
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
4 changed files
with
94 additions
and
5 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,72 @@ | ||
*, | ||
*::before, | ||
*::after { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
.loader-wrapper { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100vh; | ||
background: #00aef3; | ||
font-family: sans-serif; | ||
font-size: 8px; | ||
letter-spacing: 4px; | ||
color: white; | ||
} | ||
|
||
.vaultilo__loader { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
|
||
width: 100%; | ||
max-width: 650px; | ||
height: 300px; | ||
letter-spacing: 3px; | ||
padding: 25px; | ||
} | ||
|
||
.loader__item { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: center; | ||
height: 50px; | ||
margin: 25px; | ||
} | ||
|
||
/**********/ | ||
/* LOADER 4*/ | ||
/**********/ | ||
.load__4 { | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
flex-wrap: nowrap; | ||
animation: example-4 1s cubic-bezier(0.41, 0.25, 0.32, 0.83) infinite; | ||
} | ||
|
||
.loader-4 { | ||
background: #93edc7; | ||
border-radius: 50%; | ||
height: 20px; | ||
width: 20px; | ||
} | ||
|
||
@keyframes example-4 { | ||
0% { | ||
transform: rotate(0); | ||
} | ||
|
||
100% { | ||
transform: rotate(1turn); | ||
} | ||
} |
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,17 @@ | ||
import React from "react"; | ||
import './Loader.css'; | ||
|
||
export default function Loader() { | ||
return ( | ||
<div className="loader-wrapper"> | ||
<div className="vaultilo__loader"> | ||
<div className="loader__item"> | ||
<div className="loader load__4"> | ||
<div className="loader loader-4"></div> | ||
<div className="loader loader-4"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import React, { useEffect } from "react"; | ||
import { useBlockstack } from "react-blockstack"; | ||
import Loader from './Loader'; | ||
|
||
export default function Login() { | ||
const { signIn } = useBlockstack(); | ||
useEffect(() => { | ||
signIn(); | ||
}, []); | ||
return ( | ||
<div> | ||
Logging In... | ||
</div> | ||
<Loader /> | ||
); | ||
} |