diff --git a/.gitignore b/.gitignore index 12334c8..2bc3a1c 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,5 @@ deploy.sh src/firebase/cred.ts src/miscred/prelink.ts #Electron-builder output -/dist_electron \ No newline at end of file +/dist_electron +build \ No newline at end of file diff --git a/src/assets/icon.png b/src/assets/icon.png new file mode 100644 index 0000000..f4a3d05 Binary files /dev/null and b/src/assets/icon.png differ diff --git a/src/assets/noter.gif b/src/assets/noter.gif new file mode 100644 index 0000000..3c131b7 Binary files /dev/null and b/src/assets/noter.gif differ diff --git a/src/styles/default.scss b/src/styles/default.scss index 0756f12..373f784 100644 --- a/src/styles/default.scss +++ b/src/styles/default.scss @@ -3,7 +3,7 @@ $bg-primary: #ffffff; $primary: #101629; $primary-light: #434449; $secondary: #d4d4f5; -$secondary-light: #e1e1ff; +$secondary-light: #e1e1fb; //todo fonts @font-face { font-family: 'Merriweather Regular'; @@ -39,14 +39,14 @@ a { .n-btn { background: $secondary; color: $primary; - border-radius: 2px; + border-radius: 3px; border: none; - padding: 5px 15px; + padding: 7px 15px; margin: 5px; display: inline-block; font-family: inherit; cursor: pointer; - box-shadow: 0.5px 0.5px 7px 0.1px #3535353d; + // box-shadow: 0.5px 0.5px 7px 0.1px #3535353d; &:hover { color: $primary; background-color: $secondary-light; @@ -76,6 +76,10 @@ a { display: block; width: 100%; } + &.sm { + padding: 5px 10px; + font-size: 11px; + } } //todo media queries diff --git a/src/views/Home.vue b/src/views/Home.vue index 197c4e0..2d47cfb 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,40 +1,121 @@ @@ -43,11 +124,93 @@ import Vue from 'vue'; export default Vue.extend({ name: 'Home', + data() { + return { + version: '', + }; + }, + async mounted() { + await fetch( + ' https://api.github.com/repos/soulsam480/noter/releases/latest', + { + method: 'get', + }, + ) + .then((res) => res.json()) + + .then((dat) => { + console.log(dat); + this.version = dat.tag_name; + }); + }, components: {}, }); diff --git a/vue.config.js b/vue.config.js index 36ad33d..540daee 100644 --- a/vue.config.js +++ b/vue.config.js @@ -36,16 +36,6 @@ module.exports = { pluginOptions: { electronBuilder: { builderOptions: { - // name: 'Noter', - // description: - // "Noter is a collaborative note-taking platform built for simplicity and productivity. It's free fast and open source.", - // homepage: 'https://noter.sambitsahoo.com', - // author: { - // name: 'sambit Sahoo', - // email: 'soulsam480@hotmail.com', - // }, - // repository: 'https://github.com/soulsam480/noter', - // build: { appId: 'com.sambitsahoo.noter', productName: 'Noter', copyright: 'Copyright © 2021 Sambit Sahoo', @@ -53,7 +43,6 @@ module.exports = { nsis: { oneClick: false, }, - // }, }, }, },