-
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.
🚧 feat: criou painel que mostra informações de cryptos
- Loading branch information
1 parent
aafd81e
commit 2cfa7c2
Showing
502 changed files
with
582 additions
and
17 deletions.
There are no files selected for viewing
11 changes: 9 additions & 2 deletions
11
src/app/components/crypto-infos/crypto-infos.component.html
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,3 +1,10 @@ | ||
<header id="crypto-infos-container"> | ||
<p id="info">INFOS CRYPTOS</p> | ||
<header id="slide-wrapper"> | ||
<div class="slide-track"> | ||
<div class="slide" *ngFor="let crypto of cryptoInfos"> | ||
<img class="crypto-icon" src="{{ crypto.symbol }}" /> | ||
<p id="info">{{ crypto.name }}</p> | ||
<p id="info">{{ crypto.buyValue }}</p> | ||
<p id="info">{{ crypto.priceVariationPercentage }}</p> | ||
</div> | ||
</div> | ||
</header> |
61 changes: 55 additions & 6 deletions
61
src/app/components/crypto-infos/crypto-infos.component.scss
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,10 +1,59 @@ | ||
#crypto-infos-container { | ||
#slide-wrapper { | ||
width: 100%; | ||
height: 6vh; | ||
height: 10vh; | ||
background-color: black; | ||
display: flex; | ||
flex-direction: row; | ||
overflow-x: scroll; | ||
&::-webkit-scrollbar { | ||
display: none; | ||
} | ||
|
||
} | ||
|
||
#info { | ||
height: 10vh; | ||
margin: 0px; | ||
} | ||
.crypto-icon { | ||
width: 20px; | ||
} | ||
|
||
.slide-track { | ||
display: flex; | ||
width: calc(250*6); | ||
animation: slidescroll 80s linear infinite; | ||
|
||
} | ||
|
||
.slide-track:hover { | ||
animation-play-state: paused; | ||
} | ||
|
||
@keyframes slidescroll { | ||
0% { | ||
transform: translateX(0); | ||
} | ||
|
||
100% { | ||
transform: translateX(calc(-100%*1)); | ||
} | ||
} | ||
|
||
.slide { | ||
width: 400px; | ||
height: 50px; | ||
display: flex; | ||
justify-content: space-evenly; | ||
align-items: center; | ||
padding: 10px; | ||
color: white; | ||
overflow: hidden; | ||
perspective: 100px; | ||
cursor: pointer; | ||
} | ||
|
||
.slide-wrapper::after { | ||
|
||
right: -2px; | ||
top: 0; | ||
transform: rotateZ(180deg); | ||
} | ||
|
||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.