SaylorTwift's picture
SaylorTwift HF Staff
it's not really pretty make it better. Also, I want the bottom part of the cards to be hidden at only showed when clicking the card
77bb77e verified
:root {
--indigo-600: #4f46e5;
--emerald-600: #059669;
--amber-600: #d97706;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background-color: #f9fafb;
padding: 0;
margin: 0;
min-height: 100vh;
}
.eval-card {
perspective: 1000px;
height: 280px;
cursor: pointer;
}
.card-inner {
position: relative;
width: 100%;
height: 100%;
transition: transform 0.6s;
transform-style: preserve-3d;
}
.eval-card.flipped .card-inner {
transform: rotateY(180deg);
}
.card-front,
.card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
padding: 24px;
display: flex;
flex-direction: column;
}
.card-back {
background: white;
transform: rotateY(180deg);
}
.card-back h2 {
margin-top: 0;
font-size: 20px;
}
.card-back p {
margin: 8px 0;
color: #4b5563;
font-size: 14px;
}
.badge {
display: inline-block;
padding: 4px 8px;
border-radius: 9999px;
font-size: 12px;
font-weight: 500;
background-color: rgba(255, 255, 255, 0.2);
}
main {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}
h1 {
font-size: 32px;
font-weight: 800;
color: #111827;
margin-bottom: 40px;
text-align: center;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 24px;
margin-top: 20px;
}
@media (min-width: 768px) {
.grid {
grid-template-columns: repeat(3, 1fr);
}
}