-
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
7 changed files
with
521 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,53 @@ | ||
--- | ||
interface Props { | ||
id: string; | ||
} | ||
const { id } = Astro.props; | ||
--- | ||
<div class="holder" id={id}> | ||
<div class="loader"></div> | ||
</div> | ||
|
||
<style> | ||
.holder { | ||
margin: 20px auto; | ||
height: calc(40px * 2.33); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
/* Créditos: https://css-loaders.com/colorful/ */ | ||
.loader { | ||
width: 40px; | ||
aspect-ratio: 1; | ||
border-radius: 50%; | ||
margin-top: -30px; | ||
display: flex; | ||
justify-content: center; | ||
overflow: hidden; | ||
transform-origin: 50% 116.5%; | ||
animation: l17 2s infinite linear; | ||
} | ||
.loader:before { | ||
content:""; | ||
min-width: 233%; | ||
height: 233%; | ||
/* background: | ||
radial-gradient(farthest-side,#00DA3C 90%,#0000) top, | ||
radial-gradient(farthest-side,#00CBE7 90%,#0000) left, | ||
radial-gradient(farthest-side,#FD8603 90%,#0000) bottom, | ||
radial-gradient(farthest-side,#F4F328 90%,#0000) right; | ||
background-size: 43% 43%; */ | ||
background: url(/assets/img/andifes-isf-400x200.png); | ||
background-size: 284px 141px; | ||
background-position: -187px 3px; | ||
background-repeat: no-repeat; | ||
animation: inherit; | ||
animation-direction: reverse; | ||
} | ||
@keyframes l17 { | ||
100% {transform: rotate(360deg)} | ||
} | ||
</style> |
Oops, something went wrong.