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
Browse files- index.html +2 -0
- style.css +87 -18
index.html
CHANGED
|
@@ -5,11 +5,13 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>EvalFlip - AI Benchmark Universe</title>
|
| 7 |
<link rel="stylesheet" href="style.css">
|
|
|
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
<script src="components/navbar.js"></script>
|
| 12 |
<script src="components/footer.js"></script>
|
|
|
|
| 13 |
</head>
|
| 14 |
<body class="bg-gray-50 min-h-screen flex flex-col">
|
| 15 |
<custom-navbar></custom-navbar>
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>EvalFlip - AI Benchmark Universe</title>
|
| 7 |
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
| 9 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 12 |
<script src="components/navbar.js"></script>
|
| 13 |
<script src="components/footer.js"></script>
|
| 14 |
+
<script src="script.js"></script>
|
| 15 |
</head>
|
| 16 |
<body class="bg-gray-50 min-h-screen flex flex-col">
|
| 17 |
<custom-navbar></custom-navbar>
|
style.css
CHANGED
|
@@ -1,28 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
-
.
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
}
|
|
|
|
| 1 |
+
|
| 2 |
+
:root {
|
| 3 |
+
--indigo-600: #4f46e5;
|
| 4 |
+
--emerald-600: #059669;
|
| 5 |
+
--amber-600: #d97706;
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
body {
|
| 9 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
| 10 |
+
background-color: #f9fafb;
|
| 11 |
+
padding: 0;
|
| 12 |
+
margin: 0;
|
| 13 |
+
min-height: 100vh;
|
| 14 |
}
|
| 15 |
|
| 16 |
+
.eval-card {
|
| 17 |
+
perspective: 1000px;
|
| 18 |
+
height: 280px;
|
| 19 |
+
cursor: pointer;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.card-inner {
|
| 23 |
+
position: relative;
|
| 24 |
+
width: 100%;
|
| 25 |
+
height: 100%;
|
| 26 |
+
transition: transform 0.6s;
|
| 27 |
+
transform-style: preserve-3d;
|
| 28 |
}
|
| 29 |
|
| 30 |
+
.eval-card.flipped .card-inner {
|
| 31 |
+
transform: rotateY(180deg);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.card-front,
|
| 35 |
+
.card-back {
|
| 36 |
+
position: absolute;
|
| 37 |
+
width: 100%;
|
| 38 |
+
height: 100%;
|
| 39 |
+
backface-visibility: hidden;
|
| 40 |
+
border-radius: 12px;
|
| 41 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
| 42 |
+
padding: 24px;
|
| 43 |
+
display: flex;
|
| 44 |
+
flex-direction: column;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.card-back {
|
| 48 |
+
background: white;
|
| 49 |
+
transform: rotateY(180deg);
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.card-back h2 {
|
| 53 |
+
margin-top: 0;
|
| 54 |
+
font-size: 20px;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.card-back p {
|
| 58 |
+
margin: 8px 0;
|
| 59 |
+
color: #4b5563;
|
| 60 |
+
font-size: 14px;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.badge {
|
| 64 |
+
display: inline-block;
|
| 65 |
+
padding: 4px 8px;
|
| 66 |
+
border-radius: 9999px;
|
| 67 |
+
font-size: 12px;
|
| 68 |
+
font-weight: 500;
|
| 69 |
+
background-color: rgba(255, 255, 255, 0.2);
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
main {
|
| 73 |
+
max-width: 1200px;
|
| 74 |
+
margin: 0 auto;
|
| 75 |
+
padding: 40px 20px;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
h1 {
|
| 79 |
+
font-size: 32px;
|
| 80 |
+
font-weight: 800;
|
| 81 |
+
color: #111827;
|
| 82 |
+
margin-bottom: 40px;
|
| 83 |
+
text-align: center;
|
| 84 |
}
|
| 85 |
|
| 86 |
+
.grid {
|
| 87 |
+
display: grid;
|
| 88 |
+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
| 89 |
+
gap: 24px;
|
| 90 |
+
margin-top: 20px;
|
|
|
|
| 91 |
}
|
| 92 |
|
| 93 |
+
@media (min-width: 768px) {
|
| 94 |
+
.grid {
|
| 95 |
+
grid-template-columns: repeat(3, 1fr);
|
| 96 |
+
}
|
| 97 |
}
|