mirror of
https://github.com/ArthurDanjou/artmcp.git
synced 2026-01-14 12:54:21 +01:00
49 lines
1.1 KiB
Vue
49 lines
1.1 KiB
Vue
<script setup lang="ts">
|
|
const runtimeConfig = useRuntimeConfig()
|
|
const colors = ['#f87171', '#fb923c', '#fbbf24', '#facc15', '#a3e635', '#4ade80', '#34d399', '#2dd4bf', '#22d3ee', '#38bdf8', '#60a5fa', '#818cf8', '#a78bfa', '#c084fc', '#e879f9', '#f472b6', '#fb7185']
|
|
const color = useState('color', () => colors[Math.floor(Math.random() * colors.length)])
|
|
</script>
|
|
|
|
<template>
|
|
<div class="centered">
|
|
<h1 :style="{ color }">
|
|
{{ runtimeConfig.public.helloText }}
|
|
</h1>
|
|
<NuxtLink
|
|
to="/"
|
|
external
|
|
>
|
|
refresh
|
|
</NuxtLink>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.centered {
|
|
position: absolute;
|
|
width: 100%;
|
|
text-align: center;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
margin: 0;
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
}
|
|
h1 {
|
|
font-size: 32px;
|
|
}
|
|
@media (min-width: 768px) {
|
|
h1 {
|
|
font-size: 64px;
|
|
}
|
|
}
|
|
a {
|
|
color: #888;
|
|
text-decoration: none;
|
|
font-size: 18px;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
</style>
|