Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from brownsugar/dev
Added RSL KartRider 15th anniversary league pages
- Loading branch information
Showing
84 changed files
with
3,621 additions
and
1,652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"ikappas.phpcs", | ||
"stylelint.vscode-stylelint", | ||
"octref.vetur" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
projects: [ | ||
'./web' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import overallSeasons from '~/data/overall-seasons' | ||
|
||
export default { | ||
props: { | ||
rootPath: { | ||
type: String, | ||
default: '/' | ||
}, | ||
items: { | ||
type: Array, | ||
default: () => [] | ||
} | ||
}, | ||
computed: { | ||
sortedItems () { | ||
const seasonsMenuItem = { | ||
label: '歷屆聯賽', | ||
children: overallSeasons | ||
.map(season => ({ | ||
label: season.name, | ||
to: '/' + season.code, | ||
blank: true | ||
})) | ||
.filter(child => child.to !== this.rootPath) | ||
} | ||
return this.items.concat(seasonsMenuItem) | ||
} | ||
}, | ||
methods: { | ||
isChildActive (item) { | ||
if (item.children && Array.isArray(item.children)) { | ||
return item.children.some(item => this.$route.path.startsWith(item.to)) | ||
} | ||
return false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,8 @@ $s2-tertiary: #FFCD00; | |
$s2-grey-dark: #333; | ||
$s2-lsb: #FFC600; | ||
$s2-lsb-deep: #E6AA2D; | ||
|
||
/** | ||
* Kart 15th | ||
*/ | ||
// None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Theme for Kart 15th | ||
*/ | ||
.kart-15th { | ||
font-family: Roboto, 'Noto Sans TC', 'Microsoft JhengHei', PingFang, sans-serif; | ||
|
||
::selection { | ||
background: var(--v-primary-base); | ||
} | ||
.v-btn:not(.v-btn--outlined).primary { | ||
|
||
.v-btn__content { | ||
color: var(--v-secondary-base); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Ref: https://github.com/nuxt-community/vuetify-module#customvariables | ||
// Src: https://github.com/vuetifyjs/vuetify/tree/master/packages/vuetify/src/styles | ||
|
||
@import '~vuetify/src/styles/styles.sass'; | ||
@import '~vuetify/src/styles/styles'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default { | ||
dark: true, | ||
themes: { | ||
dark: { | ||
primary: '#F4C00D', | ||
secondary: '#0A0026', | ||
anchor: '#F4C00D', | ||
facebook: '#1877F2', | ||
youtube: '#FF0000', | ||
twitch: '#9146FF', | ||
discord: '#5865F2' | ||
} | ||
} | ||
} |
34 changes: 21 additions & 13 deletions
34
web/client/assets/utils/meta.js → web/client/assets/utils/create-meta.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,46 @@ | ||
const genarateMetaInfo = ({ vm, staticPages, themeColor, ogImage, defaultTitle }) => { | ||
export default ({ | ||
// config, site, route need to defined in head() to trigger changes | ||
// TODO: Fetch from Nuxt context | ||
config, | ||
site, | ||
route, | ||
staticPages, | ||
themeColor, | ||
ogImage, | ||
defaultTitle | ||
} = {}) => { | ||
// Content is not pulled from server | ||
const isSingle = !staticPages.includes(vm.$route.name) | ||
const isSingle = !staticPages.includes(route.name) | ||
|
||
const title = vm.site.name | ||
const url = vm.site.url + vm.$route.path | ||
const title = site.name | ||
const url = site.url + route.path | ||
const ogType = isSingle ? 'article' : 'website' | ||
const titleWithChunk = (chunk = defaultTitle) => chunk ? `${chunk} - ${title}` : title | ||
|
||
const metaInfo = { | ||
title: defaultTitle, | ||
titleTemplate: titleWithChunk, | ||
link: [ | ||
{ rel: 'alternate', type: 'application/rss+xml', title: vm.$config.rsl.name, href: vm.site.rss2_url } | ||
{ rel: 'alternate', type: 'application/rss+xml', title: config.rsl.name, href: site.rss2_url } | ||
], | ||
meta: [ | ||
{ name: 'theme-color', content: themeColor }, | ||
{ name: 'apple-mobile-web-app-status-bar-style', content: themeColor }, | ||
{ name: 'author', content: vm.$config.rsl.name }, | ||
{ name: 'description', content: vm.site.description, hid: 'description' }, | ||
{ property: 'publisher', content: vm.$config.rsl.facebook.url }, | ||
{ name: 'author', content: config.rsl.name }, | ||
{ name: 'description', content: site.description, hid: 'description' }, | ||
{ property: 'publisher', content: config.rsl.facebook.url }, | ||
{ property: 'og:site_name', content: title }, | ||
{ property: 'og:title', template: titleWithChunk, hid: 'og:title' }, | ||
{ property: 'og:type', content: ogType, hid: 'og:type' }, | ||
{ property: 'og:url', content: url, hid: 'og:url' }, | ||
{ property: 'og:description', content: vm.site.description, hid: 'og:description' }, | ||
{ property: 'og:description', content: site.description, hid: 'og:description' }, | ||
{ property: 'og:image', content: ogImage, hid: 'og:image' } | ||
] | ||
} | ||
if (isSingle) { | ||
metaInfo.meta.push({ property: 'article:author', content: vm.$config.rsl.facebook.url }) | ||
metaInfo.meta.push({ property: 'article:publisher', content: vm.$config.rsl.facebook.url }) | ||
metaInfo.meta.push({ property: 'article:author', content: config.rsl.facebook.url }) | ||
metaInfo.meta.push({ property: 'article:publisher', content: config.rsl.facebook.url }) | ||
} | ||
|
||
return metaInfo | ||
} | ||
|
||
export default genarateMetaInfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<template> | ||
<div class="section-title"> | ||
<span>{{ text }}</span> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'SectionTitle', | ||
props: { | ||
text: { | ||
type: String, | ||
default: '' | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.section-title { | ||
span { | ||
display: inline-block; | ||
font-size: 6rem !important; | ||
font-weight: bold; | ||
transform: skew(-10deg); | ||
-webkit-text-stroke: 2px #FFF; | ||
-webkit-text-fill-color: transparent; | ||
@include breakpoint(sm) { | ||
font-size: 4.5rem !important; | ||
} | ||
} | ||
} | ||
</style> |
Oops, something went wrong.