From 35407b034f4bd0ec6591b4c9e820e8c4d3c90944 Mon Sep 17 00:00:00 2001 From: Katja Hedemann Date: Tue, 2 May 2023 16:07:30 +0200 Subject: [PATCH] Komponenten eingebaut und benutzt (erste Schritte) --- app.vue | 44 ++------- assets/main.css | 92 ++++++------------- components/AppHeader.vue | 19 ++++ components/TheSidenav.vue | 17 ++++ layouts/default.vue | 7 ++ .../adresses_index.vue | 10 +- pages/adresses/customer_mask.vue | 14 --- 7 files changed, 79 insertions(+), 124 deletions(-) create mode 100644 components/AppHeader.vue create mode 100644 components/TheSidenav.vue create mode 100644 layouts/default.vue rename pages/{adresses => address-management}/adresses_index.vue (52%) delete mode 100644 pages/adresses/customer_mask.vue diff --git a/app.vue b/app.vue index c6db2ea..a48da3c 100644 --- a/app.vue +++ b/app.vue @@ -1,43 +1,11 @@ - + diff --git a/assets/main.css b/assets/main.css index 7b53ceb..8591d54 100644 --- a/assets/main.css +++ b/assets/main.css @@ -5,12 +5,23 @@ 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 { background-color: #a5aeb5; width: 100%; - + margin-left: 250px; } #header-table th { @@ -29,11 +40,18 @@ padding: 8px; } -/* main content field */ -.main-container { - max-width: 70vw; - margin: auto; - padding-top: 10px; +/* The navigation menu links */ +.header a { + text-decoration: none; + font-size: 18px; + 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 */ @@ -76,49 +94,7 @@ 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;} -} - -/* 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; width: 100%; @@ -133,22 +109,6 @@ input { 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; -} diff --git a/components/AppHeader.vue b/components/AppHeader.vue new file mode 100644 index 0000000..81e3a84 --- /dev/null +++ b/components/AppHeader.vue @@ -0,0 +1,19 @@ + diff --git a/components/TheSidenav.vue b/components/TheSidenav.vue new file mode 100644 index 0000000..391913b --- /dev/null +++ b/components/TheSidenav.vue @@ -0,0 +1,17 @@ + diff --git a/layouts/default.vue b/layouts/default.vue new file mode 100644 index 0000000..31a1876 --- /dev/null +++ b/layouts/default.vue @@ -0,0 +1,7 @@ + diff --git a/pages/adresses/adresses_index.vue b/pages/address-management/adresses_index.vue similarity index 52% rename from pages/adresses/adresses_index.vue rename to pages/address-management/adresses_index.vue index 0558611..00808e8 100644 --- a/pages/adresses/adresses_index.vue +++ b/pages/address-management/adresses_index.vue @@ -1,10 +1,8 @@