🎨 Update styling and structure for improved UI/UX in Pokedex components and main application

This commit is contained in:
2026-01-28 04:37:34 +00:00
parent bcbcb36630
commit fe641a92b0
4 changed files with 149 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
<template>
<div class="pokeball">
<div class="pokeball-button"></div>
<div class="pokeball-line"></div>
</div>
</template>
<style scoped>
.pokeball {
width: 100px;
height: 100px;
margin: 0 auto 30px;
position: relative;
border-radius: 50%;
background: linear-gradient(180deg, #f44336 50%, white 50%);
border: 5px solid #333;
animation: spin 3s linear infinite;
}
.pokeball-button {
position: absolute;
width: 30px;
height: 30px;
background: white;
border: 5px solid #333;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.pokeball-line {
position: absolute;
width: 100%;
height: 5px;
background: #333;
top: 50%;
left: 0;
transform: translateY(-50%);
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.pokeball:hover {
animation-play-state: paused;
}
</style>