From 53571f747c6cc77b0fdb139d404f1ab775e2a2ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Thu, 3 May 2018 16:55:34 -0500 Subject: [PATCH] Finished design for the homepage --- .vuepress/media/svg/discord.svg | 4 + .vuepress/media/svg/reddit.svg | 4 + .vuepress/media/svg/slack.svg | 4 + .vuepress/scss/pages/_ancillary.scss | 2 + .vuepress/scss/pages/_home.scss | 78 +++++++++++++++- .vuepress/scss/partials/_footer.scss | 40 +++++++++ .vuepress/scss/partials/_navigation.scss | 1 - .vuepress/theme/Layout.vue | 109 +++++++++-------------- 8 files changed, 170 insertions(+), 72 deletions(-) create mode 100644 .vuepress/media/svg/discord.svg create mode 100644 .vuepress/media/svg/reddit.svg create mode 100644 .vuepress/media/svg/slack.svg create mode 100644 .vuepress/scss/pages/_ancillary.scss create mode 100644 .vuepress/scss/partials/_footer.scss diff --git a/.vuepress/media/svg/discord.svg b/.vuepress/media/svg/discord.svg new file mode 100644 index 0000000..cf27f74 --- /dev/null +++ b/.vuepress/media/svg/discord.svg @@ -0,0 +1,4 @@ + + + + diff --git a/.vuepress/media/svg/reddit.svg b/.vuepress/media/svg/reddit.svg new file mode 100644 index 0000000..73c3d68 --- /dev/null +++ b/.vuepress/media/svg/reddit.svg @@ -0,0 +1,4 @@ + + + + diff --git a/.vuepress/media/svg/slack.svg b/.vuepress/media/svg/slack.svg new file mode 100644 index 0000000..6a54e84 --- /dev/null +++ b/.vuepress/media/svg/slack.svg @@ -0,0 +1,4 @@ + + + + diff --git a/.vuepress/scss/pages/_ancillary.scss b/.vuepress/scss/pages/_ancillary.scss new file mode 100644 index 0000000..9851f5a --- /dev/null +++ b/.vuepress/scss/pages/_ancillary.scss @@ -0,0 +1,2 @@ +.ancillary { +} diff --git a/.vuepress/scss/pages/_home.scss b/.vuepress/scss/pages/_home.scss index bb3abd6..47bae5e 100644 --- a/.vuepress/scss/pages/_home.scss +++ b/.vuepress/scss/pages/_home.scss @@ -129,10 +129,66 @@ border-bottom: 1px solid rgba($black, 0.05); } - &.docs, - &.develop { - h3 { - // text-align: right; + &.community { + p { + margin-right: auto; + margin-left: auto; + text-align: center; + } + + ul { + list-style-type: none; + padding-top: 1rem; + + &::after { + @include clearfix; + } + + li { + float: left; + font-size: 1.5rem; + padding-top: 5rem; + position: relative; + text-align: center; + width: calc(100% / 3); + + &::before { + width: 100%; height: 100%; + top: 0; left: 0; + + background-position: center 0; + background-repeat: no-repeat; + background-size: 5rem; + content: ""; + position: absolute; + } + + a { + display: block; + position: relative; + transition: color 0.2s; + + &:not(:hover) { + color: inherit; + } + + &:hover { + color: $teal; + } + } + + &:nth-child(1)::before { + background-image: url("../media/svg/discord.svg"); + } + + &:nth-child(2)::before { + background-image: url("../media/svg/reddit.svg"); + } + + &:nth-child(3)::before { + background-image: url("../media/svg/slack.svg"); + } + } } } @@ -170,6 +226,20 @@ position: absolute; } + a { + display: block; + position: relative; + transition: color 0.2s; + + &:not(:hover) { + color: inherit; + } + + &:hover { + color: $teal; + } + } + &:nth-child(1)::before { background-image: url("../media/svg/flag.svg"); } diff --git a/.vuepress/scss/partials/_footer.scss b/.vuepress/scss/partials/_footer.scss new file mode 100644 index 0000000..b9ef2b8 --- /dev/null +++ b/.vuepress/scss/partials/_footer.scss @@ -0,0 +1,40 @@ +.footer { + background-color: $black; + color: $white; + font-size: 1rem; + padding-top: 2rem; + padding-bottom: 2rem; + + ul { + align-items: stretch; + display: flex; + flex-flow: row wrap; + list-style-type: none; + + li { + padding-right: 0.5rem; + padding-left: 0.5rem; + + &:first-of-type { + flex: 1; + } + + &:last-of-type { + cursor: default; + opacity: 0.3; + } + } + } + + a { + transition: color 0.2s; + + &:not(:hover) { + color: inherit; + } + + &:hover { + color: $teal; + } + } +} diff --git a/.vuepress/scss/partials/_navigation.scss b/.vuepress/scss/partials/_navigation.scss index 4f05bfb..5a634ab 100644 --- a/.vuepress/scss/partials/_navigation.scss +++ b/.vuepress/scss/partials/_navigation.scss @@ -3,7 +3,6 @@ background-color: $white; box-shadow: 0 1px 5px rgba($black, 0.1); - // color: $white; position: fixed; width: 100%; z-index: 10; diff --git a/.vuepress/theme/Layout.vue b/.vuepress/theme/Layout.vue index a6841f3..8699e23 100644 --- a/.vuepress/theme/Layout.vue +++ b/.vuepress/theme/Layout.vue @@ -39,7 +39,6 @@ + @@ -211,8 +220,6 @@ function updateMetaTags (meta, current) { } - -