renders card components randomly extracted from a shuffled deck

This commit is contained in:
2022-07-18 18:57:32 -05:00
parent fed8853b94
commit 80bc389f6f
10 changed files with 385 additions and 140 deletions

View File

@@ -1,41 +1,41 @@
#root {
display: flex;
align-items: center;
justify-content: center;
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
.card-row {
display: flex;
flex-flow: column nowrap;
margin: 2rem;
width: 80vw;
}
@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
.card-row-cards-visible {
display: flex;
flex-flow: row nowrap;
width: 100%;
justify-content: space-around;
}
.card {
padding: 2em;
width: 25%;
}
.read-the-docs {
color: #888;
.tier-1 {
background-color: green;
}
.tier-2 {
background-color: yellow;
color: black;
}
.tier-3 {
background-color: blue;
}