主页面优化
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-11-14 14:39:10 +08:00
parent 2a5650a8ef
commit ff6661b2ee
2 changed files with 49 additions and 2 deletions

View File

@ -1,5 +1,6 @@
{
"lockfileVersion": 1,
"configVersion": 0,
"workspaces": {
"": {
"name": "konabot-web",

View File

@ -1,2 +1,48 @@
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
<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>