1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 02:28:54 +08:00

change code structure

This commit is contained in:
lana-k
2021-05-04 14:13:58 +02:00
parent a07f2d3d99
commit cc483f4720
72 changed files with 297 additions and 311 deletions

54
src/views/Welcome.vue Normal file
View File

@@ -0,0 +1,54 @@
<template>
<div id="dbloader-container">
<db-uploader type="illustrated" />
<div id="note">
Sqliteviz is fully client-side. Your database never leaves your computer.
</div>
<button id ="skip" class="secondary" @click="$router.push('/editor')">
Skip database loading
</button>
</div>
</template>
<script>
import DbUploader from '@/components/DbUploader'
export default {
name: 'Welcome',
components: { DbUploader }
}
</script>
<style scoped>
#dbloader-container {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
#note {
margin-top: 27px;
font-size: 13px;
color: var(--color-text-base);
}
#skip {
margin-top: 42px;
}
>>>.drop-area {
width: 706px;
height: 482px;
padding: 0 150px;
position: relative;
}
>>>.drop-area .text {
position: absolute;
bottom: 42px;
max-width: 300px;
}
</style>