67 lines
1.3 KiB
HTML
67 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link
|
|
rel="icon"
|
|
type="image/svg+xml"
|
|
href="/vite.svg"
|
|
/>
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
|
|
/>
|
|
<title>Vue FormKit Example</title>
|
|
<link
|
|
rel="stylesheet"
|
|
href="/src/assets/tailwind.css"
|
|
/>
|
|
<link
|
|
rel="stylesheet"
|
|
href="/src/assets/main.css"
|
|
/>
|
|
|
|
<script>
|
|
function setAppHeight() {
|
|
const app = document.getElementById('app');
|
|
app.style.minHeight = `${window.innerHeight}px`;
|
|
}
|
|
|
|
window.addEventListener('resize', setAppHeight);
|
|
window.addEventListener('load', setAppHeight);
|
|
</script>
|
|
<style>
|
|
#app {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
@supports (min-height: 100dvh) {
|
|
#app {
|
|
min-height: 100dvh;
|
|
}
|
|
}
|
|
|
|
.page-wrapper {
|
|
flex-grow: 1;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="app">
|
|
<div
|
|
class="page-wrapper"
|
|
style="display: flex; justify-content: center; align-items: center"
|
|
>
|
|
Loading...
|
|
</div>
|
|
</div>
|
|
<script
|
|
type="module"
|
|
src="/src/main.ts"
|
|
></script>
|
|
</body>
|
|
</html>
|