Komponenten eingebaut und benutzt (erste Schritte)
This commit is contained in:
44
app.vue
44
app.vue
@ -1,43 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="main-container">
|
<NuxtLayout>
|
||||||
<div class="header">
|
<NuxtPage />
|
||||||
<table id="header-table">
|
</NuxtLayout>
|
||||||
<tr>
|
|
||||||
<th>
|
|
||||||
<router-link to="/header/help">
|
|
||||||
Hilfe
|
|
||||||
</router-link>
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
<router-link to="/header/info">
|
|
||||||
Info
|
|
||||||
</router-link>
|
|
||||||
</th>
|
|
||||||
<th> Logout </th>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="sidenav">
|
|
||||||
<div class="sidenav-content">
|
|
||||||
<h1 class="menu-heading">
|
|
||||||
WebAdmin
|
|
||||||
</h1>
|
|
||||||
<p>
|
|
||||||
<router-link to="/">
|
|
||||||
Home
|
|
||||||
</router-link>
|
|
||||||
<router-link to="/adresses/adresses_index">
|
|
||||||
Adressverwaltung
|
|
||||||
</router-link>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="container">
|
|
||||||
<router-view />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script></script>
|
<script setup lang="ts">
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
<style src="@/assets/main.css"></style>
|
<style src="@/assets/main.css"></style>
|
||||||
|
|||||||
@ -5,12 +5,23 @@
|
|||||||
font-family: "Times New Roman";
|
font-family: "Times New Roman";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Header */
|
.main-content {
|
||||||
|
margin-left: 275px;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* 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;}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Header */
|
||||||
.header {
|
.header {
|
||||||
background-color: #a5aeb5;
|
background-color: #a5aeb5;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
margin-left: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header-table th {
|
#header-table th {
|
||||||
@ -29,11 +40,18 @@
|
|||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* main content field */
|
/* The navigation menu links */
|
||||||
.main-container {
|
.header a {
|
||||||
max-width: 70vw;
|
text-decoration: none;
|
||||||
margin: auto;
|
font-size: 18px;
|
||||||
padding-top: 10px;
|
color: #e0e2e3;
|
||||||
|
display: block;
|
||||||
|
transition: 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* When you mouse over the navigation links, change their color */
|
||||||
|
.header a:hover {
|
||||||
|
color: #f1f1f1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The side navigation menu */
|
/* The side navigation menu */
|
||||||
@ -76,49 +94,7 @@
|
|||||||
color: #f1f1f1;
|
color: #f1f1f1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Position and style the close button (top right corner) */
|
/* Adress Content */
|
||||||
.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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Styling for adresses */
|
|
||||||
/* search input */
|
|
||||||
input {
|
|
||||||
display: block;
|
|
||||||
width: 350px;
|
|
||||||
margin: 20px auto;
|
|
||||||
padding: 10px 45px;
|
|
||||||
background: white url("assets/search.svg") no-repeat 15px center;
|
|
||||||
background-size: 15px 15px;
|
|
||||||
font-size: 16px;
|
|
||||||
border: none;
|
|
||||||
border-radius: 5px;
|
|
||||||
box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
|
|
||||||
rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* error message */
|
|
||||||
.error {
|
|
||||||
background-color: tomato;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Adress Table */
|
|
||||||
.adress-content {
|
.adress-content {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -133,22 +109,6 @@ input {
|
|||||||
rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
|
rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.adresses {
|
|
||||||
border: none;
|
|
||||||
border-radius: 5px;
|
|
||||||
box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
|
|
||||||
rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.adress-th {
|
|
||||||
border-radius: 1px;
|
|
||||||
border-style: groove;
|
|
||||||
}
|
|
||||||
|
|
||||||
.adress-td {
|
|
||||||
border-radius: 1px;
|
|
||||||
border-style: groove;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
19
components/AppHeader.vue
Normal file
19
components/AppHeader.vue
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<div class="header">
|
||||||
|
<table id="header-table">
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<NuxtLink to="/header/help">
|
||||||
|
Hilfe
|
||||||
|
</NuxtLink>
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
<NuxtLink to="/header/info">
|
||||||
|
Info
|
||||||
|
</NuxtLink>
|
||||||
|
</th>
|
||||||
|
<th> Logout </th>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
17
components/TheSidenav.vue
Normal file
17
components/TheSidenav.vue
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<template>
|
||||||
|
<div class="sidenav">
|
||||||
|
<div class="sidenav-content">
|
||||||
|
<h1 class="menu-heading">
|
||||||
|
WebAdmin
|
||||||
|
</h1>
|
||||||
|
<p>
|
||||||
|
<NuxtLink to="/">
|
||||||
|
Home
|
||||||
|
</NuxtLink>
|
||||||
|
<NuxtLink to="/address-management/adresses_index">
|
||||||
|
Adressverwaltung
|
||||||
|
</NuxtLink>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
7
layouts/default.vue
Normal file
7
layouts/default.vue
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<AppHeader />
|
||||||
|
<slot />
|
||||||
|
<TheSidenav />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
@ -1,10 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="main-container">
|
<div class="main-content">
|
||||||
<div class="heading">
|
|
||||||
<h1>
|
<h1>
|
||||||
Willkommen in der Adressverwaltung
|
Willkommen in der Adressverwaltung
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
|
||||||
<div class="adress-content">
|
<div class="adress-content">
|
||||||
Text
|
Text
|
||||||
</div>
|
</div>
|
||||||
@ -1,14 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="main-container">
|
|
||||||
<div class="heading">
|
|
||||||
<h1>
|
|
||||||
Kundenname
|
|
||||||
</h1>
|
|
||||||
</div>
|
|
||||||
<div class="content">
|
|
||||||
<p>Hier findest einen Kunden</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style scoped src="@/assets/main.css"></style>
|
|
||||||
Reference in New Issue
Block a user