From 952cc64ef31accdb796b840093f4fea4e7669f73 Mon Sep 17 00:00:00 2001 From: Tony Yang Date: Wed, 31 Mar 2021 23:24:56 +0800 Subject: [PATCH 1/3] [Update] new arrow image --- src/assets/images/arrow-left.svg | 2 +- src/assets/images/arrow-right.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/images/arrow-left.svg b/src/assets/images/arrow-left.svg index c74b2f2..9b3c6ec 100644 --- a/src/assets/images/arrow-left.svg +++ b/src/assets/images/arrow-left.svg @@ -1,3 +1,3 @@ - + diff --git a/src/assets/images/arrow-right.svg b/src/assets/images/arrow-right.svg index 3ee986d..5fd91db 100644 --- a/src/assets/images/arrow-right.svg +++ b/src/assets/images/arrow-right.svg @@ -1,3 +1,3 @@ - + From 49fb3065c7b62b3ac531b3b623e44719aa79b67b Mon Sep 17 00:00:00 2001 From: Tony Yang Date: Thu, 1 Apr 2021 01:51:38 +0800 Subject: [PATCH 2/3] [Component] Block Title --- src/assets/images/title-block.svg | 3 +++ src/assets/scss/blocktitle.scss | 37 +++++++++++++++++++++++++++++++ src/components/BlockTitle.vue | 17 ++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 src/assets/images/title-block.svg create mode 100644 src/assets/scss/blocktitle.scss create mode 100644 src/components/BlockTitle.vue diff --git a/src/assets/images/title-block.svg b/src/assets/images/title-block.svg new file mode 100644 index 0000000..8c77521 --- /dev/null +++ b/src/assets/images/title-block.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/scss/blocktitle.scss b/src/assets/scss/blocktitle.scss new file mode 100644 index 0000000..b19823f --- /dev/null +++ b/src/assets/scss/blocktitle.scss @@ -0,0 +1,37 @@ +$fontFamily: "Noto Serif CJK TC -Black"; + +div.block.title { + display: flex; + justify-content: center; + + font-size: 26px; + font-family: $fontFamily; + font-weight: bold; + + line-height: 1.44; + + margin: 36px 0; + + span.text { + display: contents; + + &::before, &::after { + display: inline-block; + content: ''; + width: 1.44em; + height: 1.44em; + margin: auto; + vertical-align: middle; + background-image: url('../assets/images/title-block.svg'); + background-size: contain; + } + + &::before { + margin-right: 18px; + } + + &::after { + margin-left: 18px; + } + } +} \ No newline at end of file diff --git a/src/components/BlockTitle.vue b/src/components/BlockTitle.vue new file mode 100644 index 0000000..e81a78b --- /dev/null +++ b/src/components/BlockTitle.vue @@ -0,0 +1,17 @@ + + + + \ No newline at end of file From 39d778ab43cb9b9f459d3cb697cc6277312aa617 Mon Sep 17 00:00:00 2001 From: Tony Yang Date: Thu, 1 Apr 2021 01:55:24 +0800 Subject: [PATCH 3/3] [Add] vote introduction, rules and link Style: article text style Style: vote button Style: ordered list --- src/assets/scss/agenda.scss | 62 ++++++++++++++++++++++++++++++------- src/pages/Agenda.vue | 36 ++++++++++++++++++++- 2 files changed, 86 insertions(+), 12 deletions(-) diff --git a/src/assets/scss/agenda.scss b/src/assets/scss/agenda.scss index 76a6ea8..fa90a36 100644 --- a/src/assets/scss/agenda.scss +++ b/src/assets/scss/agenda.scss @@ -1,16 +1,56 @@ +@import './breakpoint'; +@import './color'; + +$fontFamily: "Noto Serif CJK TC -Black"; + #agenda { - margin: 0 auto; - max-width: 1200px; + margin: 0 auto; + max-width: 1200px; - div.event.container { - display: grid; - grid-template-columns: min-content repeat(6, 1fr) min-content; - column-gap: 30px; + font-family: $fontFamily; + font-size: 22px; - img.arrow { - margin: auto; - width: fit-content; - height: calc(99/217 * 100%); - } + article { + white-space: pre-wrap; + line-height: 2; + } + + p.vote { + text-align: center; + padding: 80px 0; + + a.vote.button { + display: inline-block; + padding: 7px 20px; + + background-color: $indigo-blue; + border: none; + border-radius: 32px; + + font: inherit; + color: white; + font-size: 26px; + line-height: 1.44; } + } + + ol.vote.rule { + counter-reset: 0; + + li { + line-height: 2; + } + } + + div.event.container { + display: grid; + grid-template-columns: min-content repeat(6, 1fr) min-content; + column-gap: 30px; + + img.arrow { + margin: auto; + width: fit-content; + height: calc(99/217 * 100%); + } + } } \ No newline at end of file diff --git a/src/pages/Agenda.vue b/src/pages/Agenda.vue index aa742bc..2964475 100644 --- a/src/pages/Agenda.vue +++ b/src/pages/Agenda.vue @@ -1,6 +1,27 @@