Files
konabot-web/src/routes/+page.svelte
MixBadGun ff6661b2ee
All checks were successful
continuous-integration/drone/push Build is passing
主页面优化
2025-11-14 14:39:10 +08:00

48 lines
1020 B
Svelte

<script>
const routes = [
{ name: '名人名言', path: '/makequote' },
{ name: 'Latex', path: '/latex' },
{ name: 'MarkDown', path: '/markdown' }
]
</script>
<ul>
{#each routes as route}
<li><a href="{route.path}">{route.name}</a></li>
{/each}
</ul>
<style>
ul {
list-style: none;
padding: 0;
display: flex;
gap: 1rem;
width: 100%;
height: 100vh;
justify-content: center;
align-items: center;
}
a {
text-decoration: none;
color: #ffffff;
display: inline-block;
margin: 1em;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 0.5em 1em;
border-radius: 0.2em;
background-color: rgb(0, 170, 0);
user-select: none;
cursor:default;
transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
a:hover {
transform: scale(1.1);
}
a:active {
transform: scale(0.9);
}
</style>