1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 19:04:41 +00:00

feat(pages): default app layout and index page

This commit is contained in:
2022-11-09 19:58:03 +07:00
parent 0a5c607387
commit 10498fe8b3
3 changed files with 95 additions and 9 deletions

7
src/pages/catalog.vue Normal file
View File

@@ -0,0 +1,7 @@
<template>
Test
</template>
<style scoped>
</style>

View File

@@ -1,17 +1,25 @@
<script setup lang="ts">
const axes = ['x', 'y', 'z'];
</script>
<template>
<div>
<Head>
<Title>Главная</Title>
</Head>
<h1>Hello, Nuxt </h1>
<div class="container">
<Accordion title="Перемещение">
<FormRange v-for="axis in axes" :label="`${axis} =`" :min="-10" :max="10" :step="0.1" :defaultValue="0"/>
</Accordion>
<Accordion title="Вращение">
<FormRange v-for="axis in axes" :label="`${axis} =`" :min="0" :max="359" :step="1" :defaultValue="0"/>
</Accordion>
<Accordion title="Масштабирование">
<FormRange v-for="axis in axes" :key="axis" :label="`${axis} =`" :min="0.1" :max="5" :step="0.1" :defaultValue="1"/>
</Accordion>
</div>
</template>
<style scoped>
div {
height: 100%;
.container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
row-gap: 16px;
}
</style>