Example pokédex app using Next.js.
All the pokemon data comes from PokéAPI, then stored in a Supabase DB (currently disabled)。
Opens when clicking a pokemon card in the home page:
The gauges use an animation to make the gauge seem like it's scrolling to the right (not well represented by this static image):
First set a gradient in the background using two colors to create a stripe pattern:
background: repeating-linear-gradient(45deg, #A1CD9B, #A1CD9B 5px, #91C58A 5px, #91C58A 10px);45deg: looking up and to the left#A1CD9B, #A1CD9B 5px: use the color '#A1CD9B'色 up to 5px from the origin#91C58A 5px, #91C58A 10px: use the color '#91C58A' from 5px to 10px from the origin
And here is the actual animation:
animation: 1s linear infinite stat-gauge-strips;@keyframes stat-gauge-stripes {
from {
background-position: 1rem 0;
}
to {
background-position: 0 0;
}
}Now the background is set to move 1rem, so we must also set the width and height of the stripe pattern to 1rem otherwise the animation will stutter:
background-size: 1rem 1rem;


