From ace222749a9d050323b1a6769578f4c7cd633b0b Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sun, 6 Sep 2020 22:31:15 +0200 Subject: [PATCH 1/5] Person highscore overview page. --- src/components/HighscorePage.vue | 233 +++++++++++++++++++++++++++++++ src/router.js | 5 + 2 files changed, 238 insertions(+) create mode 100644 src/components/HighscorePage.vue diff --git a/src/components/HighscorePage.vue b/src/components/HighscorePage.vue new file mode 100644 index 0000000..75f14d9 --- /dev/null +++ b/src/components/HighscorePage.vue @@ -0,0 +1,233 @@ + + + + + diff --git a/src/router.js b/src/router.js index 32ae017..a5fbaaf 100644 --- a/src/router.js +++ b/src/router.js @@ -11,6 +11,7 @@ import AdminPage from "@/components/AdminPage"; import WinnerPage from "@/components/WinnerPage"; import LotteryPage from "@/components/LotteryPage"; import HistoryPage from "@/components/HistoryPage"; +import HighscorePage from "@/components/HighscorePage"; const routes = [ { @@ -52,6 +53,10 @@ const routes = [ { path: "/history", component: HistoryPage + }, + { + path: "/highscore", + component: HighscorePage } ]; -- 2.34.1 From 2cc5c81df603c59f99a996c7dcec9538668f3d78 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sun, 6 Sep 2020 22:32:30 +0200 Subject: [PATCH 2/5] More positioning and global style rules. --- src/styles/global.scss | 38 +++++++++++++++++++++++++++++++++++++ src/styles/positioning.scss | 18 +++++++++++++++++- 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/src/styles/global.scss b/src/styles/global.scss index 0a1b41e..5db96b1 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -153,6 +153,44 @@ textarea { } } + +.cursor { + &-pointer { + cursor: pointer; + } +} + +.text-center { + text-align: center; +} + +.vin-link { + font-weight: bold; + border-bottom: 1px solid #ff5fff; + font-size: 1rem; + margin-left: 15px; +} + + +.margin-top { + &-md { + margin-top: 3rem; + } +} + +.margin-bottom { + &-md { + margin-bottom: 3rem; + } + &-sm { + margin-bottom: 1rem; + } + &-0 { + margin-bottom: 0; + } +} + + .no-margin { margin: 0 !important; } diff --git a/src/styles/positioning.scss b/src/styles/positioning.scss index c5597c7..db9abcb 100644 --- a/src/styles/positioning.scss +++ b/src/styles/positioning.scss @@ -1,7 +1,23 @@ .flex { display: flex; - &-column { + & .column { flex-direction: column; } + + & .row { + flex-direction: row; + } + + & .wrap { + flex-wrap: wrap; + } + + &.justify-center { + justify-content: center; + } + + &.align-center { + align-items: center; + } } \ No newline at end of file -- 2.34.1 From 9174338621397d124219c85ca8f73de779186827 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sun, 6 Sep 2020 22:34:19 +0200 Subject: [PATCH 3/5] Highscore has viewmore link for highscorePage. --- src/ui/Highscore.vue | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/ui/Highscore.vue b/src/ui/Highscore.vue index 3201460..89e1e8e 100644 --- a/src/ui/Highscore.vue +++ b/src/ui/Highscore.vue @@ -1,6 +1,10 @@