🎨 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,71 @@
<template>
<div class="container">
<Pokeball />
<h1>Pokedex Online</h1>
<p class="subtitle">Your Digital Pokédex Companion</p>
<p class="description">
A modern web application for exploring Pokémon data, tracking collections,
and managing your Pokémon journey. Built with for trainers everywhere.
</p>
<div class="status">
<strong>Status:</strong> In Development<br>
Check back soon for updates!
</div>
</div>
</template>
<script setup>
import Pokeball from './components/Pokeball.vue';
</script>
<style scoped>
.container {
background: white;
border-radius: 20px;
padding: 60px 40px;
max-width: 600px;
width: 100%;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
text-align: center;
}
h1 {
color: #333;
margin-bottom: 20px;
font-size: 2.5em;
}
.subtitle {
color: #667eea;
font-size: 1.2em;
margin-bottom: 30px;
}
.description {
color: #666;
line-height: 1.6;
margin-bottom: 30px;
}
.status {
background: #f0f0f0;
padding: 15px;
border-radius: 10px;
color: #666;
font-size: 0.9em;
}
.status strong {
color: #667eea;
}
@media (max-width: 600px) {
.container {
padding: 40px 20px;
}
h1 {
font-size: 2em;
}
}
</style>

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>

View File

@@ -0,0 +1,5 @@
import { createApp } from 'vue';
import App from './App.vue';
import './style.css';
createApp(App).mount('#app');

View File

@@ -0,0 +1,19 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
#app {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}