generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Nick DeJesus <[email protected]>
- Loading branch information
1 parent
b19976c
commit cfa6c37
Showing
10 changed files
with
410 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import * as React from "react"; | ||
import { SVGProps } from "react"; | ||
const ArrowRight = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width={25} | ||
height={25} | ||
fill="none" | ||
{...props} | ||
> | ||
<path fill="currentColor" d="M4.5 11.5v2h12v2h2v-2h2v-2h-2v-2h-2v2h-12Z" /> | ||
<path | ||
fill="currentColor" | ||
fillRule="evenodd" | ||
d="M14.5 7.5h-2v-2h2v2Zm0 0h2v2h-2v-2Z" | ||
clipRule="evenodd" | ||
/> | ||
<path fill="currentColor" d="M14.5 17.5h2v-2h-2v2ZM14.5 17.5h-2v2h2v-2Z" /> | ||
</svg> | ||
); | ||
export default ArrowRight; |
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,21 @@ | ||
import clsx from "clsx"; | ||
import styles from "./loading.module.css"; | ||
import React from "react"; | ||
|
||
const Loading = () => { | ||
return ( | ||
<div className={styles["loader"]}> | ||
<div className={clsx(styles["cell"], styles["d-0"])}></div> | ||
<div className={clsx(styles["cell"], styles["d-1"])}></div> | ||
<div className={clsx(styles["cell"], styles["d-2"])}></div> | ||
<div className={clsx(styles["cell"], styles["d-1"])}></div> | ||
<div className={clsx(styles["cell"], styles["d-2"])}></div> | ||
<div className={clsx(styles["cell"], styles["d-2"])}></div> | ||
<div className={clsx(styles["cell"], styles["d-3"])}></div> | ||
<div className={clsx(styles["cell"], styles["d-3"])}></div> | ||
<div className={clsx(styles["cell"], styles["d-4"])}></div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Loading; |
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 { default as Loading } from "./Loading"; |
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,102 @@ | ||
/* From Uiverse.io by alexruix */ | ||
.loader { | ||
--cell-size: 52px; | ||
--cell-spacing: 1px; | ||
--cells: 3; | ||
--total-size: calc(var(--cells) * (var(--cell-size) + 2 * var(--cell-spacing))); | ||
display: flex; | ||
flex-wrap: wrap; | ||
width: var(--total-size); | ||
height: var(--total-size); | ||
} | ||
|
||
.cell { | ||
flex: 0 0 var(--cell-size); | ||
margin: var(--cell-spacing); | ||
background-color: transparent; | ||
box-sizing: border-box; | ||
border-radius: 4px; | ||
animation: 1.5s ripple ease infinite; | ||
} | ||
|
||
.cell.d-1 { | ||
animation-delay: 100ms; | ||
} | ||
|
||
.cell.d-2 { | ||
animation-delay: 200ms; | ||
} | ||
|
||
.cell.d-3 { | ||
animation-delay: 300ms; | ||
} | ||
|
||
.cell.d-4 { | ||
animation-delay: 400ms; | ||
} | ||
|
||
.cell:nth-child(1) { | ||
--cell-color: #FFF870; | ||
/* tbd-yellow-tint-2 */ | ||
} | ||
|
||
.cell:nth-child(2) { | ||
--cell-color: #FFF53D; | ||
/* tbd-yellow-tint-1 */ | ||
} | ||
|
||
.cell:nth-child(3) { | ||
--cell-color: #FFEC19; | ||
/* tbd-yellow */ | ||
} | ||
|
||
.cell:nth-child(4) { | ||
--cell-color: #FAE100; | ||
/* tbd-yellow-shade-1 */ | ||
} | ||
|
||
.cell:nth-child(5) { | ||
--cell-color: #F5D800; | ||
/* tbd-yellow-shade-2 */ | ||
} | ||
|
||
.cell:nth-child(6) { | ||
--cell-color: #FFF870; | ||
/* tbd-yellow-tint-2 */ | ||
} | ||
|
||
.cell:nth-child(7) { | ||
--cell-color: #FFF53D; | ||
/* tbd-yellow-tint-1 */ | ||
} | ||
|
||
.cell:nth-child(8) { | ||
--cell-color: #FFEC19; | ||
/* tbd-yellow */ | ||
} | ||
|
||
.cell:nth-child(9) { | ||
--cell-color: #FAE100; | ||
} | ||
|
||
|
||
|
||
|
||
/*Animation*/ | ||
@keyframes ripple { | ||
0% { | ||
background-color: transparent; | ||
} | ||
|
||
30% { | ||
background-color: var(--cell-color); | ||
} | ||
|
||
60% { | ||
background-color: transparent; | ||
} | ||
|
||
100% { | ||
background-color: transparent; | ||
} | ||
} |
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.