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 {