Initial style changes for UI
This commit is contained in:
parent
525c237b6c
commit
02bbb653ab
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 94 KiB |
Binary file not shown.
After Width: | Height: | Size: 129 KiB |
Binary file not shown.
After Width: | Height: | Size: 71 KiB |
|
@ -16,8 +16,7 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
background: url('../img/bg.png') repeat;
|
||||
background-size: 40px 164px;
|
||||
background: #03283d url('../img/mountains.png') no-repeat bottom center;
|
||||
|
||||
> .main-content {
|
||||
flex: 1;
|
||||
|
|
|
@ -4,11 +4,11 @@ $control-padding-vertical: calc(0.429em - #{$control-border-width});
|
|||
$control-padding-horizontal: calc(1.25em - #{$control-border-width});
|
||||
|
||||
$white: #eee;
|
||||
$primary: #94febf;
|
||||
$primary-invert: #000403;
|
||||
$warning: #ff8a00;
|
||||
$black: #2c4538;
|
||||
$danger: #FF0658;
|
||||
$primary: #138198;
|
||||
$primary-invert: #03283d;
|
||||
$warning: #FF8F50;
|
||||
$black: #08252b;
|
||||
$danger: #F44C6A;
|
||||
$dark: #242424;
|
||||
$pre: $white;
|
||||
$info: $primary-invert;
|
||||
|
@ -19,7 +19,7 @@ $block-spacing: 2rem;
|
|||
|
||||
@import '~bulma/sass/utilities/_all';
|
||||
|
||||
$body-family: 'PT Mono', monospace;
|
||||
$body-family: 'Arial', monospace;
|
||||
$body-background-color: $primary-invert;
|
||||
$body-color: $white;
|
||||
$body-size: 14px;
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
.ceremony {
|
||||
text-align: center;
|
||||
backdrop-filter: blur( 13.5px );
|
||||
-webkit-backdrop-filter: blur( 13.5px );
|
||||
background: rgba( 74, 144, 226, 0.20 );
|
||||
margin:10px;
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
|
||||
.title {
|
||||
color: $white;
|
||||
|
@ -47,7 +53,7 @@
|
|||
|
||||
&:hover, &.is-hovered {
|
||||
color: $primary;
|
||||
border-color: #94febf;
|
||||
border-color: $primary-invert;
|
||||
|
||||
.title {
|
||||
color: $primary;
|
||||
|
|
|
@ -25,10 +25,21 @@
|
|||
height: 40px;
|
||||
}
|
||||
|
||||
.navbar-menu {
|
||||
.navbar-item {
|
||||
padding-left: 1.25rem;
|
||||
padding-right: 1.25rem;
|
||||
}
|
||||
.navbar-item {
|
||||
font-size: 20px;
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
line-height: 30px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
img {
|
||||
max-height: 75px;
|
||||
}
|
||||
|
||||
.sherpa-header-label {
|
||||
padding-right: 1.5rem;
|
||||
color: #ff3a44;
|
||||
font-size: 50px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<button @click="logOut" class="button is-icon logout">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||||
<path
|
||||
fill="#94febf"
|
||||
fill="#138198"
|
||||
d="M14.08,15.59L16.67,13H7V11H16.67L14.08,8.41L15.5,7L20.5,12L15.5,17L14.08,15.59M19,3A2,2 0 0,1 21,5V9.67L19,7.67V5H5V19H19V16.33L21,14.33V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H19Z"
|
||||
/>
|
||||
</svg>
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
<template>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="logo" viewBox="0 0 155 40">
|
||||
<path
|
||||
fill="#94febf"
|
||||
fill-rule="evenodd"
|
||||
d="M29.4,8.6A11.5,11.5,0,0,1,39.9,19.4,17.1,17.1,0,0,0,8.5,10.5,11.5,11.5,0,0,1,19.3,0a17.2,17.2,0,0,0-8.9,31.4A11.5,11.5,0,0,1,0,20.6a17.1,17.1,0,0,0,31.3,9.1A11.4,11.4,0,0,1,20.6,40,17.1,17.1,0,0,0,29.4,8.6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,1.4,4.7,3.5,4.7S151.4,25.8,151.4,21.9Z"
|
||||
/>
|
||||
</svg>
|
||||
</template>
|
|
@ -2,7 +2,8 @@
|
|||
<b-navbar wrapper-class="container" class="header">
|
||||
<template slot="brand">
|
||||
<b-navbar-item :to="{ path: '/' }" tag="router-link">
|
||||
<Logo />
|
||||
<img src="../assets/img/sherpalogo.png" />
|
||||
<div class="sherpa-header-label">Sherpa</div>
|
||||
</b-navbar-item>
|
||||
</template>
|
||||
<template slot="end">
|
||||
|
@ -12,13 +13,3 @@
|
|||
</template>
|
||||
</b-navbar>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Logo from '@/components/Logo'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Logo
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -0,0 +1,157 @@
|
|||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import messages from '../langs/index'
|
||||
/**
|
||||
* @param choice {number} a choice index given by the input to $tc: `$tc('path.to.rule', choiceIndex)`
|
||||
* @param choicesLength {number} an overall amount of available choices
|
||||
* @returns a final choice index to select plural word by
|
||||
**/
|
||||
VueI18n.prototype.getChoiceIndex = function (choice, choicesLength) {
|
||||
// this === VueI18n instance, so the locale property also exists here
|
||||
// add the word "only" if the value is greater than 1 and less than 5
|
||||
if (this.locale !== 'ru') {
|
||||
if (choice === 0 || choice === 1) {
|
||||
return choice
|
||||
}
|
||||
|
||||
if (choice > 1 && choice < 5) {
|
||||
return 2
|
||||
}
|
||||
|
||||
return 3
|
||||
}
|
||||
|
||||
// comply with the rules of the Russian language
|
||||
|
||||
if (choice === 0) {
|
||||
return 0
|
||||
}
|
||||
|
||||
const teen = choice > 10 && choice < 20
|
||||
const endsWithOne = choice % 10 === 1
|
||||
|
||||
if (!teen && endsWithOne) {
|
||||
return 1
|
||||
}
|
||||
|
||||
if (!teen && choice % 10 >= 2 && choice % 10 <= 4) {
|
||||
return 2
|
||||
}
|
||||
|
||||
return choicesLength < 4 ? 2 : 3
|
||||
}
|
||||
|
||||
Vue.use(VueI18n)
|
||||
|
||||
let lang = 'en'
|
||||
|
||||
if (process.browser) {
|
||||
const locale =
|
||||
localStorage.getItem('lang') ||
|
||||
navigator.language.substr(0, 2).toLowerCase()
|
||||
lang = !messages[locale] ? 'en' : locale
|
||||
}
|
||||
|
||||
const dateTimeFormats = {
|
||||
en: {
|
||||
long: {
|
||||
year: 'numeric',
|
||||
month: 'long',
|
||||
day: 'numeric',
|
||||
weekday: 'long',
|
||||
hour: 'numeric',
|
||||
minute: 'numeric',
|
||||
hour12: true,
|
||||
},
|
||||
},
|
||||
fr: {
|
||||
long: {
|
||||
year: 'numeric',
|
||||
month: 'long',
|
||||
day: 'numeric',
|
||||
weekday: 'long',
|
||||
hour: 'numeric',
|
||||
minute: 'numeric',
|
||||
hour12: true,
|
||||
},
|
||||
},
|
||||
tr: {
|
||||
long: {
|
||||
year: 'numeric',
|
||||
month: 'long',
|
||||
day: 'numeric',
|
||||
weekday: 'long',
|
||||
hour: 'numeric',
|
||||
minute: 'numeric',
|
||||
hour12: true,
|
||||
},
|
||||
},
|
||||
jp: {
|
||||
long: {
|
||||
year: 'numeric',
|
||||
month: 'long',
|
||||
day: 'numeric',
|
||||
weekday: 'long',
|
||||
hour: 'numeric',
|
||||
minute: 'numeric',
|
||||
hour12: true,
|
||||
},
|
||||
},
|
||||
kr: {
|
||||
long: {
|
||||
year: 'numeric',
|
||||
month: 'long',
|
||||
day: 'numeric',
|
||||
weekday: 'long',
|
||||
hour: 'numeric',
|
||||
minute: 'numeric',
|
||||
hour12: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
const numberFormats = {
|
||||
en: {
|
||||
compact: {
|
||||
notation: 'compact',
|
||||
},
|
||||
},
|
||||
fr: {
|
||||
compact: {
|
||||
notation: 'compact',
|
||||
},
|
||||
},
|
||||
jp: {
|
||||
compact: {
|
||||
notation: 'compact',
|
||||
},
|
||||
},
|
||||
kr: {
|
||||
compact: {
|
||||
notation: 'compact',
|
||||
},
|
||||
},
|
||||
tr: {
|
||||
compact: {
|
||||
notation: 'compact',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// Create VueI18n instance with options
|
||||
export default ({ app, route, store }) => {
|
||||
app.i18n = new VueI18n({
|
||||
locale: lang,
|
||||
fallbackLocale: 'en',
|
||||
messages,
|
||||
silentFallbackWarn: true,
|
||||
dateTimeFormats,
|
||||
numberFormats,
|
||||
})
|
||||
|
||||
if (lang === 'zh') {
|
||||
lang += '-cn'
|
||||
}
|
||||
|
||||
// app.$moment.locale(lang)
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
Loading…
Reference in New Issue