From 2d8318633cddbd904dde522205ef98d0f43c7646 Mon Sep 17 00:00:00 2001 From: Moritz Ruth Date: Sun, 10 Mar 2019 18:29:09 +0100 Subject: [PATCH] improve projects page --- assets/_responsive.scss | 6 ++++ assets/global.scss | 6 +++- components/CodingProject.vue | 61 ++++++++++++++++++++++++++---------- layouts/secondLevel.vue | 52 ++++++++++++++++++------------ pages/projects.vue | 20 +++++++++--- 5 files changed, 102 insertions(+), 43 deletions(-) diff --git a/assets/_responsive.scss b/assets/_responsive.scss index e6d8856..b115448 100644 --- a/assets/_responsive.scss +++ b/assets/_responsive.scss @@ -1,6 +1,12 @@ $desktop-min-breakpoint: 640px; $mobile-max-breakpoint: $desktop-min-breakpoint - 1px; +@mixin mobile { + @media only screen and (max-width: $mobile-max-breakpoint) { + @content + } +} + @mixin desktop { @media only screen and (min-width: 640px) { @content diff --git a/assets/global.scss b/assets/global.scss index d7c22c1..0051ffc 100644 --- a/assets/global.scss +++ b/assets/global.scss @@ -13,7 +13,11 @@ body { font-size: 16px; background-color: $c-background; - color: $c-text + color: $c-text; +} + +::selection { + background-color: rgba(255, 255, 255, 0.1); } *, diff --git a/components/CodingProject.vue b/components/CodingProject.vue index 6793e55..77f11e7 100644 --- a/components/CodingProject.vue +++ b/components/CodingProject.vue @@ -1,21 +1,24 @@ @@ -28,7 +31,8 @@ required: true }, npm: String, - github: String + github: String, + type: String }, computed: { links() { @@ -56,19 +60,37 @@ diff --git a/layouts/secondLevel.vue b/layouts/secondLevel.vue index 730e61b..06ee58c 100644 --- a/layouts/secondLevel.vue +++ b/layouts/secondLevel.vue @@ -1,6 +1,8 @@ @@ -36,8 +46,8 @@