diff --git a/src/App.vue b/src/App.vue index ba29a77..981d760 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,19 +8,14 @@ body, } #app { - // border-top: rem(4px) solid $brand-6; - // border-bottom: rem(4px) solid $brand-6; - - background-color: $sky; - background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cpolygon fill='%23cc7847' points='957 450 539 900 1396 900'/%3E%3Cpolygon fill='%23aa3e13' points='957 450 872.9 900 1396 900'/%3E%3Cpolygon fill='%23c58134' points='-60 900 398 662 816 900'/%3E%3Cpolygon fill='%239c5200' points='337 900 398 662 816 900'/%3E%3Cpolygon fill='%23b88b21' points='1203 546 1552 900 876 900'/%3E%3Cpolygon fill='%23876400' points='1203 546 1552 900 1162 900'/%3E%3Cpolygon fill='%23a5960f' points='641 695 886 900 367 900'/%3E%3Cpolygon fill='%236e7200' points='587 900 641 695 886 900'/%3E%3Cpolygon fill='%238ca00a' points='1710 900 1401 632 1096 900'/%3E%3Cpolygon fill='%234f7e00' points='1710 900 1401 632 1365 900'/%3E%3Cpolygon fill='%236baa1d' points='1210 900 971 687 725 900'/%3E%3Cpolygon fill='%2316882a' points='943 900 1210 900 971 687'/%3E%3C/svg%3E"); + background: url("./assets/img/bg-mountains.png") bottom center $sky no-repeat; background-attachment: fixed; - background-size: cover; + background-size: auto 48vh; } - @@ -29,6 +24,5 @@ body, import Navigation from "@/components/Navigation.vue"; export default { name: "app", - // components: { Navigation } }; diff --git a/src/assets/img/bg-diamond.svg b/src/assets/img/bg-diamond.svg new file mode 100644 index 0000000..3854307 --- /dev/null +++ b/src/assets/img/bg-diamond.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/img/bg-mountains.png b/src/assets/img/bg-mountains.png new file mode 100644 index 0000000..3ee4222 Binary files /dev/null and b/src/assets/img/bg-mountains.png differ diff --git a/src/assets/img/bg-mountains.svg b/src/assets/img/bg-mountains.svg new file mode 100644 index 0000000..05bdad5 --- /dev/null +++ b/src/assets/img/bg-mountains.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/Board.vue b/src/components/Board.vue index 9e1871d..604c9e7 100644 --- a/src/components/Board.vue +++ b/src/components/Board.vue @@ -360,15 +360,12 @@ export default class BoardComponent extends Vue { } .board { background: $light; - // box-shadow: 1px 1px 3px $gray-60; border-radius: $border-radius-sm; max-width: 100%; height: 100%; - // width: rem($board-width) + $grid-gutter-width * 2; - // height: rem($board-width) + $grid-gutter-width * 2; background-color: white; - background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M81.28 88H68.413l19.298 19.298L81.28 88zm2.107 0h13.226L90 107.838 83.387 88zm15.334 0h12.866l-19.298 19.298L98.72 88zm-32.927-2.207L73.586 78h32.827l.5.5 7.294 7.293L115.414 87l-24.707 24.707-.707.707L64.586 87l1.207-1.207zm2.62.207L74 80.414 79.586 86H68.414zm16 0L90 80.414 95.586 86H84.414zm16 0L106 80.414 111.586 86h-11.172zm-8-6h11.173L98 85.586 92.414 80zM82 85.586L87.586 80H76.414L82 85.586zM17.414 0L.707 16.707 0 17.414V0h17.414zM4.28 0L0 12.838V0h4.28zm10.306 0L2.288 12.298 6.388 0h8.198zM180 17.414L162.586 0H180v17.414zM165.414 0l12.298 12.298L173.612 0h-8.198zM180 12.838L175.72 0H180v12.838zM0 163h16.413l.5.5 7.294 7.293L25.414 172l-8 8H0v-17zm0 10h6.613l-2.334 7H0v-7zm14.586 7l7-7H8.72l-2.333 7h8.2zM0 165.414L5.586 171H0v-5.586zM10.414 171L16 165.414 21.586 171H10.414zm-8-6h11.172L8 170.586 2.414 165zM180 163h-16.413l-7.794 7.793-1.207 1.207 8 8H180v-17zm-14.586 17l-7-7h12.865l2.333 7h-8.2zM180 173h-6.613l2.334 7H180v-7zm-21.586-2l5.586-5.586 5.586 5.586h-11.172zM180 165.414L174.414 171H180v-5.586zm-8 5.172l5.586-5.586h-11.172l5.586 5.586zM152.933 25.653l1.414 1.414-33.94 33.942-1.416-1.416 33.943-33.94zm1.414 127.28l-1.414 1.414-33.942-33.94 1.416-1.416 33.94 33.943zm-127.28 1.414l-1.414-1.414 33.94-33.942 1.416 1.416-33.943 33.94zm-1.414-127.28l1.414-1.414 33.942 33.94-1.416 1.416-33.94-33.943zM0 85c2.21 0 4 1.79 4 4s-1.79 4-4 4v-8zm180 0c-2.21 0-4 1.79-4 4s1.79 4 4 4v-8zM94 0c0 2.21-1.79 4-4 4s-4-1.79-4-4h8zm0 180c0-2.21-1.79-4-4-4s-4 1.79-4 4h8z' fill='%23d6e6ec' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E"); + background-image: url("../assets/img/bg-diamond.svg"); } .board-inner { position: relative; @@ -377,13 +374,7 @@ export default class BoardComponent extends Vue { .road { max-width: 100%; height: 100%; - // width: rem($board-width); - // height: rem($board-width); - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; + @include absolute-cover; } .aspect-ratio-box { @@ -412,7 +403,7 @@ export default class BoardComponent extends Vue { height: rem(32px); } .menu-icon { - transition: all 300ms ease 75ms; + transition: all 300ms ease; position: absolute; background-size: rem(32px); @@ -423,13 +414,13 @@ export default class BoardComponent extends Vue { .menu-open { background: url("../assets/img/menu.svg") no-repeat center; &.fade-enter-to { - transition-delay: 200ms; + transition-delay: 150ms; } } .menu-close { background: url("../assets/img/close.svg") no-repeat center; &.fade-enter-to { - transition-delay: 200ms; + transition-delay: 150ms; } } diff --git a/src/components/Marbles.vue b/src/components/Marbles.vue index f7ce6f6..5c4a51a 100644 --- a/src/components/Marbles.vue +++ b/src/components/Marbles.vue @@ -29,10 +29,6 @@ export default class MarblesComponent extends Vue { diff --git a/src/components/MenuBoard.vue b/src/components/MenuBoard.vue index 2fe3e8c..defb2d7 100644 --- a/src/components/MenuBoard.vue +++ b/src/components/MenuBoard.vue @@ -83,4 +83,7 @@ export default class BoardComponent extends Vue { border-radius: $border-radius; @include absolute-cover; } +.btn { + text-transform: uppercase; +} diff --git a/src/components/Step.vue b/src/components/Step.vue index 438827a..9f14f9f 100644 --- a/src/components/Step.vue +++ b/src/components/Step.vue @@ -55,11 +55,7 @@ export default class StepComponent extends Vue { content: ""; width: 100%; height: 100%; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; + @include absolute-cover; } &.side-1 { &::before { diff --git a/src/styles/global.scss b/src/styles/global.scss index c1797ae..3eeec59 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -4,7 +4,3 @@ .text-rtl { direction: rtl; } - -body { - -} diff --git a/src/views/Home.vue b/src/views/Home.vue index aaee43a..db97a09 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,10 +1,14 @@ - - Ludo Game - - Play - About - + + + + Ludo Game + + Play + About + + + @@ -18,6 +22,15 @@ export default {