🎨 Improve code readability by reformatting and updating function definitions and comments
This commit is contained in:
@@ -1,71 +1,51 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<ProfessorPokeball size="150px" color="#F44336" :animate="true" />
|
||||
<h1>Pokedex Online</h1>
|
||||
<p class="subtitle">Your Digital Pokédex Companion</p>
|
||||
<p class="description">
|
||||
A modern web application for housing different apps that make a professors
|
||||
life easier. Built with ❤️ for Pokémon Professors everywhere.
|
||||
</p>
|
||||
<div class="status">
|
||||
<strong>Status:</strong> In Development<br />
|
||||
Check back soon for updates!
|
||||
</div>
|
||||
<div id="app">
|
||||
<Transition name="view-transition" mode="out-in">
|
||||
<router-view />
|
||||
</Transition>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import ProfessorPokeball from './components/shared/ProfessorPokeball.vue';
|
||||
// App now acts as the router container with transitions
|
||||
</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;
|
||||
<style>
|
||||
/* Global styles and transitions */
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #333;
|
||||
margin-bottom: 20px;
|
||||
font-size: 2.5em;
|
||||
/* Transition animations for view changes */
|
||||
.view-transition-enter-active {
|
||||
animation: slideIn 0.5s ease-out;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
color: #667eea;
|
||||
font-size: 1.2em;
|
||||
margin-bottom: 30px;
|
||||
.view-transition-leave-active {
|
||||
animation: dropOut 0.4s ease-in;
|
||||
}
|
||||
|
||||
.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;
|
||||
@keyframes slideIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateX(100px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
@keyframes dropOut {
|
||||
from {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: translateY(50px) scale(0.95);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user