From 031e2a797d2a279a741db05aed889846d82f3a1a Mon Sep 17 00:00:00 2001
From: Ramon Wenger
Date: Mon, 27 Aug 2018 16:38:26 +0200
Subject: [PATCH] Add book and topic views including styling
---
client/src/components/BookSidebar.vue | 65 ++++++++++++++-----
client/src/components/TopNavigation.vue | 2 +-
.../src/components/modules/ModuleTeaser.vue | 19 ++++--
client/src/layouts/DefaultLayout.vue | 1 +
client/src/pages/book.vue | 5 ++
client/src/pages/topic.vue | 48 ++++++++++++--
6 files changed, 112 insertions(+), 28 deletions(-)
diff --git a/client/src/components/BookSidebar.vue b/client/src/components/BookSidebar.vue
index 8db505fa..ddee0482 100644
--- a/client/src/components/BookSidebar.vue
+++ b/client/src/components/BookSidebar.vue
@@ -1,11 +1,15 @@
-
@@ -15,17 +19,48 @@
data: () => {
return {
topics: [
- {id: 1, title: 'Berufliche Grundbildung'},
+ {id: 1, title: 'Berufliche Grundbildung', active: true},
{id: 2, title: 'Geld und Kauf'},
- {id: 3, title: 'Geld und Kauf'},
- {id: 4, title: 'Geld und Kauf'},
- {id: 5, title: 'Kauf und Geld'},
- {id: 6, title: 'Geld und Kauf'},
- {id: 7, title: 'Geld und Kauf'},
- {id: 8, title: 'Geld und Kauf'},
- {id: 9, title: 'Geld und Kauf'}
+ {id: 3, title: 'Risiko und Sicherheit'},
+ {id: 4, title: 'Demokratie und Mitgestaltung'},
+ {id: 5, title: 'Kultur und Kunst'},
+ {id: 6, title: 'Die Schweiz in Europa und der Welt'},
+ {id: 7, title: 'Markt und Konsum'},
+ {id: 8, title: 'Globale Herausforderungen'},
+ {id: 9, title: 'Wohnen und Zusammenleben'},
+ {id: 10, title: 'Arbeit und Zukunft'},
+ {id: 11, title: 'Grundsätzliches zum Recht'}
]
}
}
}
+
+
diff --git a/client/src/components/TopNavigation.vue b/client/src/components/TopNavigation.vue
index e933fa11..7106e6ee 100644
--- a/client/src/components/TopNavigation.vue
+++ b/client/src/components/TopNavigation.vue
@@ -1,6 +1,6 @@
diff --git a/client/src/components/modules/ModuleTeaser.vue b/client/src/components/modules/ModuleTeaser.vue
index 87b03456..9173ac62 100644
--- a/client/src/components/modules/ModuleTeaser.vue
+++ b/client/src/components/modules/ModuleTeaser.vue
@@ -1,15 +1,18 @@
-
-

+
+
-
-
Mein neues Umfeld
-
Wie erging es Ihnen am ersten Arbeits- und Schultag?
+
+
{{title}}
+
{{description}}
-
+
diff --git a/client/src/pages/topic.vue b/client/src/pages/topic.vue
index b8cd50ad..e241ce1c 100644
--- a/client/src/pages/topic.vue
+++ b/client/src/pages/topic.vue
@@ -8,10 +8,7 @@
das Zusammenleben und Zusammenarbeiten.
-
-
-
-
+
@@ -22,6 +19,43 @@
export default {
components: {
ModuleTeaser
+ },
+
+ data() {
+ return {
+ modules: [
+ {
+ id: 1,
+ metaTitle: 'Intro',
+ title: 'Video',
+ description: 'Die Berufsbildung ist ein neuer Lebensabschnitt'
+ },
+ {
+ id: 2,
+ metaTitle: 'Modul 1',
+ title: 'Mein neues Umfeld',
+ description: 'Wie erging es Ihnen am ersten Arbeits- und Schultag?'
+ },
+ {
+ id: 3,
+ metaTitle: 'Modul 2',
+ title: 'Lehrvertrag',
+ description: 'Haben Sie etwas in Ihrem Lehrvertrag noch nicht verstanden?'
+ },
+ {
+ id: 4,
+ metaTitle: 'Modul 3',
+ title: 'Miteinander reden',
+ description: 'Welches war Ihre letzte schwierige Gesprächs- situation?'
+ },
+ {
+ id: 5,
+ metaTitle: 'Modul 4',
+ title: 'Lerntipps',
+ description: 'Wie gehen Sie vor, wenn Sie sich auf eine Prüfung vor-bereiten?'
+ }
+ ]
+ }
}
}
@@ -34,7 +68,9 @@
color: $color-grey;
font-size: 1.2rem;
line-height: 25px;
- max-width: 895px;
+ width: 90%;
+ max-width: 900px;
+ font-family: $sans-serif-font-family;
}
&__modules {
@@ -45,6 +81,8 @@
}
grid-template-columns: repeat(3, 1fr);
grid-column-gap: 40px;
+ grid-row-gap: 30px;
+
}
}