From 77bffa20acd934f860e8e8c77801c3666f996af1 Mon Sep 17 00:00:00 2001 From: Connor Hay Date: Thu, 21 Oct 2021 07:44:34 +0000 Subject: [PATCH] Update about page and add new /about/pod page --- front/src/components/About.vue | 341 +++++++++++------------- front/src/components/AboutPod.vue | 345 +++++++++++++++++++++++++ front/src/components/LogoText.vue | 41 +++ front/src/router/index.js | 6 + front/src/style/components/_card.scss | 4 + front/src/style/components/_table.scss | 6 + front/src/style/pages/_about.scss | 139 ++++++++++ 7 files changed, 693 insertions(+), 189 deletions(-) create mode 100644 front/src/components/AboutPod.vue create mode 100644 front/src/components/LogoText.vue diff --git a/front/src/components/About.vue b/front/src/components/About.vue index a9ef88111..dd1b5eeaa 100644 --- a/front/src/components/About.vue +++ b/front/src/components/About.vue @@ -1,201 +1,139 @@ @@ -204,7 +142,14 @@ import { mapState } from "vuex" import _ from '@/lodash' import showdown from 'showdown' +import SignupForm from "@/components/auth/SignupForm" +import LogoText from "@/components/LogoText" + export default { + components: { + SignupForm, + LogoText, + }, data () { return { markdown: new showdown.Converter(), @@ -290,3 +235,21 @@ export default { } } + + diff --git a/front/src/components/AboutPod.vue b/front/src/components/AboutPod.vue new file mode 100644 index 000000000..c53a3bc87 --- /dev/null +++ b/front/src/components/AboutPod.vue @@ -0,0 +1,345 @@ + + + diff --git a/front/src/components/LogoText.vue b/front/src/components/LogoText.vue new file mode 100644 index 000000000..f60b3f326 --- /dev/null +++ b/front/src/components/LogoText.vue @@ -0,0 +1,41 @@ + + + diff --git a/front/src/router/index.js b/front/src/router/index.js index bd0c7c7cf..35ce8be5d 100644 --- a/front/src/router/index.js +++ b/front/src/router/index.js @@ -71,6 +71,12 @@ export default new Router({ component: () => import(/* webpackChunkName: "about" */ '@/components/About') }, + { + path: '/about/pod', + name: 'about-pod', + component: () => + import(/* webpackChunkName: "about" */ '@/components/AboutPod') + }, { path: '/login', name: 'login', diff --git a/front/src/style/components/_card.scss b/front/src/style/components/_card.scss index 894d9eeed..f653cdc06 100644 --- a/front/src/style/components/_card.scss +++ b/front/src/style/components/_card.scss @@ -123,3 +123,7 @@ } } } + +.ui.cards a.card:hover, .ui.link.cards .card:not(.icon):hover, a.ui.card:hover, .ui.link.card:hover { + background: var(--light-background-color); +} diff --git a/front/src/style/components/_table.scss b/front/src/style/components/_table.scss index 61497f9ac..a6c6556bb 100644 --- a/front/src/style/components/_table.scss +++ b/front/src/style/components/_table.scss @@ -36,3 +36,9 @@ td.align.right { text-align: right; } + + + +.ui.basic.table > tbody > tr { + border-bottom: var(--table-border); +} diff --git a/front/src/style/pages/_about.scss b/front/src/style/pages/_about.scss index 608ea008b..02eaee16f 100644 --- a/front/src/style/pages/_about.scss +++ b/front/src/style/pages/_about.scss @@ -3,6 +3,24 @@ padding: 0; } + .ui.basic.segment { + margin: 0; + } + + section.ui.segment.head { + border-radius: .5em; + } + + table.ui.very.basic { + border-radius: 0; + border-top: var(--table-border); + border-bottom: var(--table-border); + + tr:last-child { + border-bottom: 0; + } + } + h1.header, h1 .sub.header { text-shadow: 0 2px 0 rgba(0,0,0,.8); color: #fff !important; @@ -28,4 +46,125 @@ display: block; } + .signup-form { + display: flex; + flex-direction: column; + justify-content: center; + } + + .about-pod-info-container { + display: flex; + flex-wrap: wrap; + flex-direction: column; + + margin-top: 2em; + + .about-pod-info-toc { + margin-bottom: 2em; + + .ui.secondary.pointing.menu { + &.vertical { + border-right-width: 0; + border-right-style: none; + border-left: var(--table-border); + border-left-width: 2px; + + .item { + border-right-style: none; + border-right-width: 0; + border-left-color: transparent; + border-left-style: solid; + border-left-width: 2px; + margin: 0 0 0 -2px; + + transition: all .2s ease-in-out; + + padding-top: .5em; + padding-bottom: .5em; + + &.active { + border-left-color: currentColor; + + &:not(.router-link-exact-active) { + border-left: 4px solid currentColor; + margin-left: -3px; + margin-right: -1px; + } + } + } + } + + .active.item { + color: var(--vibrant-color); + } + } + } + } + + .statistics-container { + padding-top: .5rem; + padding-bottom: 1rem; + display: flex; + flex-wrap: wrap; + + .statistics-statistic { + padding-top: .5rem; + padding-bottom: .5rem; + display: inline-flex; + flex-basis: 25%; + + .statistics-figure { + color: var(--really-discrete-text-color); + padding-bottom: 1rem; + + span { + display: inline-block; + padding-bottom: .25rem; + } + } + } + } + + .features-container { + padding-top: .5rem; + padding-bottom: 1rem; + + .features-status { + color: var(--really-discrete-text-color); + } + } + + @include media('>desktop') { + .about-pod-info-container { + flex-direction: row-reverse; + + .about-pod-info-toc { + width: 25%; + } + + .about-pod-info { + width: 75%; + padding-right: 2em; + } + } + } + + @include media('