From 5c734c44693bb52b46a60b264e01b867b8f81f0f Mon Sep 17 00:00:00 2001 From: alirizaadiyahsi Date: Tue, 4 Dec 2018 21:43:08 +0300 Subject: [PATCH] Add timelines to home page with dummy data. Fixed: #118 --- .../src/admin/views/home/home.ts | 25 +++ .../src/admin/views/home/home.vue | 175 ++++++++++-------- 2 files changed, 126 insertions(+), 74 deletions(-) diff --git a/src/Nucleus.Web.Vue/src/admin/views/home/home.ts b/src/Nucleus.Web.Vue/src/admin/views/home/home.ts index b00f96f..326583a 100644 --- a/src/Nucleus.Web.Vue/src/admin/views/home/home.ts +++ b/src/Nucleus.Web.Vue/src/admin/views/home/home.ts @@ -68,4 +68,29 @@ export default class HomeComponent extends NucleusComponentBase { } ]; } + + public get years() { + return [ + { + color: 'cyan', + year: '1960' + }, + { + color: 'green', + year: '1970' + }, + { + color: 'pink', + year: '1980' + }, + { + color: 'amber', + year: '1990' + }, + { + color: 'orange', + year: '2000' + } + ]; + } } \ No newline at end of file diff --git a/src/Nucleus.Web.Vue/src/admin/views/home/home.vue b/src/Nucleus.Web.Vue/src/admin/views/home/home.vue index e14c324..d6c6f9e 100644 --- a/src/Nucleus.Web.Vue/src/admin/views/home/home.vue +++ b/src/Nucleus.Web.Vue/src/admin/views/home/home.vue @@ -76,81 +76,108 @@ - - - - This is a header - - - - - {{ props.item.name }} - - - - - - Calories: - {{ props.item.calories }} - - - - Fat: - {{ props.item.fat }} - - - - Carbs: - {{ props.item.carbs }} - - - - Protein: - {{ props.item.protein }} - - - - Sodium: - {{ props.item.sodium }} - - - - Calcium: - {{ props.item.calcium }} - - - - Iron: - {{ props.item.iron }} - - - - - - - This is a footer - - + + + + + This is a header + + + + + {{ props.item.name }} + + + + + + Calories: + {{ props.item.calories }} + + + + Fat: + {{ props.item.fat }} + + + + Carbs: + {{ props.item.carbs }} + + + + Protein: + {{ props.item.protein }} + + + + Sodium: + {{ props.item.sodium }} + + + + Calcium: + {{ props.item.calcium }} + + + + Iron: + {{ props.item.iron }} + + + + + + + This is a footer + + + + + + + +
+ This is a header +
+
+ + + + +
+

Lorem ipsum

+
+ Lorem ipsum dolor sit amet, no nam oblique veritus. Commune scaevola imperdiet nec ut, sed euismod convenire principes at. Est et nobis iisque percipit, an vim zril disputando voluptatibus, vix an salutandi sententiae. +
+
+
+
+
-