From e471a76377d511ad35b44099eee25fbc8640cc76 Mon Sep 17 00:00:00 2001 From: Xenia Date: Sun, 7 Apr 2019 23:15:09 +0200 Subject: [PATCH] =?UTF-8?q?Erster=20Code=20f=C3=BCr=20die=20Login=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 14 +++++++++++--- public/routes/login.js | 38 ++++++++++++++++++++++++++++++++++++++ public/style/style.css | 2 +- 3 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 public/routes/login.js diff --git a/public/index.html b/public/index.html index 20e4b25..b6c6c91 100644 --- a/public/index.html +++ b/public/index.html @@ -10,7 +10,7 @@ <<<<<<< HEAD - + @@ -76,6 +76,7 @@ + OHM News @@ -85,11 +86,13 @@
+
+
@@ -121,9 +124,14 @@ var app = new Vue({ router, el: '#api', + data: { + showLoginModal: false, + }, methods: { - - }, + onClickChild (value) { + this.showLoginModal= value; + }, + } }); diff --git a/public/routes/login.js b/public/routes/login.js new file mode 100644 index 0000000..42eb722 --- /dev/null +++ b/public/routes/login.js @@ -0,0 +1,38 @@ +Vue.component('login-panel', { + template: ` + `, + data: function () { + return { + user: "", + pwd:"", + }; + }, + methods: { + closeLogin (event) { + this.$emit('clicked', false) + } + }, + mounted: function () { + $(".modal").modal ('show'); + }, +}); diff --git a/public/style/style.css b/public/style/style.css index d57dbe8..e4d6f26 100644 --- a/public/style/style.css +++ b/public/style/style.css @@ -24,7 +24,7 @@ } .om-content { margin: 10px; - margin-top: 80px; + margin-top: 40px; margin-bottom: 80px; } .om-content a {