Skip to content

Commit

Permalink
Docs: Remove Vue School's Black Friday banner (vuejs#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodevs authored Dec 9, 2021
1 parent 56a14b9 commit d82b268
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions docs/.vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<template>
<div
class="main-container"
:class="{ 'has-top-banner': showTopBanner }"
>
<div class="main-container">
<BannerTop
v-if="showTopBanner"
@close="closeBannerTop"
Expand Down Expand Up @@ -48,27 +45,14 @@ import { defineAsyncComponent } from 'vue'
import DefaultTheme from 'vitepress/dist/client/theme-default'
import sponsors from '../components/sponsors.json'
const BannerTop = defineAsyncComponent(() => import('../components/VueSchool/BannerTop.vue'))
export default {
name: 'Layout',
components: {
ParentLayout: DefaultTheme.Layout,
BannerTop
ParentLayout: DefaultTheme.Layout
},
data() {
return {
sponsors,
showTopBanner: false
}
},
mounted () {
this.showTopBanner = !localStorage.getItem('VS_BF21_BANNER_CLOSED')
},
methods: {
closeBannerTop () {
this.showTopBanner = false
localStorage.setItem('VS_BF21_BANNER_CLOSED', 1)
sponsors
}
}
}
Expand Down

0 comments on commit d82b268

Please sign in to comment.