diff --git a/app.vue b/app.vue index 2b1be09..270cf64 100644 --- a/app.vue +++ b/app.vue @@ -1,5 +1,93 @@ + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..e8f58d4 --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + + WebAdmin + + +
+ +
+ + diff --git a/main.js b/main.js new file mode 100644 index 0000000..e69de29 diff --git a/pages/adresses.vue b/pages/adresses.vue new file mode 100644 index 0000000..b528df3 --- /dev/null +++ b/pages/adresses.vue @@ -0,0 +1,12 @@ + diff --git a/pages/index.vue b/pages/index.vue index 3d2a298..a395fc6 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,195 +1,5 @@ - - diff --git a/pages/prisma.vue b/pages/prisma.vue deleted file mode 100644 index 8aecc62..0000000 --- a/pages/prisma.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/pages/trpc.vue b/pages/trpc.vue deleted file mode 100644 index 38b4072..0000000 --- a/pages/trpc.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/public/main.css b/public/main.css new file mode 100644 index 0000000..92de306 --- /dev/null +++ b/public/main.css @@ -0,0 +1,68 @@ +.main-container { + max-width: 45vw; + margin: auto; + padding-top: 60px; +} + +/* The side navigation menu */ +.sidenav { + height: 100%; + width: 250px; + position: fixed; + z-index: 1; + top: 0; + left: 0; + background-color: #a5aeb5; + overflow-x: hidden; + padding-top: 20px; +} + +.sidenav-content { + padding: 15px; +} + +/* The menu title */ +.menu-heading { + color: #f1f1f1; + width: 200px; + height: 75px; + font-weight: 600; + font-size: 40px; +} + +/* The navigation menu links */ +.sidenav a { + padding: 8px 8px 8px 32px; + text-decoration: none; + font-size: 25px; + color: #e0e2e3; + display: block; + transition: 0.3s; +} + +/* When you mouse over the navigation links, change their color */ +.sidenav a:hover { + color: #f1f1f1; +} + +/* Position and style the close button (top right corner) */ +.sidenav .closebtn { + position: absolute; + top: 0; + right: 25px; + font-size: 36px; + margin-left: 50px; +} + +/* Style page content - use this if you want to push the page content to the right when you open the side navigation */ +#main { + transition: margin-left .5s; + padding: 20px; +} + +/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */ +@media screen and (max-height: 450px) { + .sidenav {padding-top: 15px;} + .sidenav a {font-size: 18px;} +} + diff --git a/router/index.js b/router/index.js new file mode 100644 index 0000000..ea75dea --- /dev/null +++ b/router/index.js @@ -0,0 +1,19 @@ +import { createRouter, createWebHistory } from 'vue-router' +import index from '@/pages/index.vue' +import adresses from '@/pages/adresses.vue' + +const routes = [ + { path: '/', name: 'Home', component: index }, + { path: '/adresses', name: 'Adressverwaltung', component: adresses } +] + +const router = createRouter({ + history: createWebHistory(), + routes +}) + +const app = createApp({}) + +app.use(router) + +export default router