From 21e6254d13361470d4fcfcc22f183b529abb95c4 Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Sun, 1 Mar 2020 01:27:01 +1000 Subject: [PATCH] instructions --- assets/styles/app.scss | 1 + assets/styles/components/_base.scss | 3 ++ assets/styles/components/_ceremony.scss | 4 ++ components/Navbar.vue | 2 +- nuxt.config.js | 2 +- package.json | 3 +- pages/instructions.vue | 62 +++++++++++++++++++++++++ pages/make-contribution.vue | 5 +- plugins/highlight.js | 4 ++ yarn.lock | 12 +++++ 10 files changed, 93 insertions(+), 5 deletions(-) create mode 100644 pages/instructions.vue create mode 100644 plugins/highlight.js diff --git a/assets/styles/app.scss b/assets/styles/app.scss index a31a233..5469b35 100644 --- a/assets/styles/app.scss +++ b/assets/styles/app.scss @@ -10,6 +10,7 @@ @import 'components/status'; @import 'components/fieldset'; @import 'components/form'; +@import '~highlight.js/scss/vs2015.scss'; .wrapper { display: flex; diff --git a/assets/styles/components/_base.scss b/assets/styles/components/_base.scss index 652a255..6f06658 100644 --- a/assets/styles/components/_base.scss +++ b/assets/styles/components/_base.scss @@ -10,6 +10,7 @@ $warning: #ff8a00; $black: #2c4538; $danger: #FF0658; $dark: #242424; +$pre: #DCDCDC; $info: $primary-invert; $info-invert: $white; $custom-colors: ("black": ($black, $primary-invert)); @@ -159,6 +160,8 @@ $pagination-current-color: $primary-invert; $pagination-current-background-color: $primary; $pagination-current-border-color: $primary; +$pre-background: #1E1E1E; + .columns { @include from(576px) { &.is-small { diff --git a/assets/styles/components/_ceremony.scss b/assets/styles/components/_ceremony.scss index cd397fe..15524b4 100644 --- a/assets/styles/components/_ceremony.scss +++ b/assets/styles/components/_ceremony.scss @@ -25,6 +25,10 @@ text-decoration: underline; } } + + ul { + list-style: none; + } } .columns:not(:last-child) { diff --git a/components/Navbar.vue b/components/Navbar.vue index 8912d8a..65882c5 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -6,7 +6,7 @@ diff --git a/plugins/highlight.js b/plugins/highlight.js new file mode 100644 index 0000000..bf321ba --- /dev/null +++ b/plugins/highlight.js @@ -0,0 +1,4 @@ +import Vue from 'vue' +import VueHighlightJS from 'vue-highlightjs' + +Vue.use(VueHighlightJS) diff --git a/yarn.lock b/yarn.lock index ffe9c57..5a48bb5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4448,6 +4448,11 @@ hex-color-regex@^1.1.0: resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e" integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ== +highlight.js@*: + version "9.18.1" + resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.18.1.tgz#ed21aa001fe6252bb10a3d76d47573c6539fe13c" + integrity sha512-OrVKYz70LHsnCgmbXctv/bfuvntIKDz177h0Co37DQ5jamGZLVmoCVMtjMtNZY3X9DrCcKfklHPNeA0uPZhSJg== + hmac-drbg@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" @@ -9354,6 +9359,13 @@ vue-eslint-parser@^7.0.0: esquery "^1.0.1" lodash "^4.17.15" +vue-highlightjs@^1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/vue-highlightjs/-/vue-highlightjs-1.3.3.tgz#29a0d57132fc1ce15cfa61e896918f5b718c5d52" + integrity sha1-KaDVcTL8HOFc+mHolpGPW3GMXVI= + dependencies: + highlight.js "*" + vue-hot-reload-api@^2.3.0: version "2.3.4" resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"