Skip to content

Commit f8c5190

Browse files
authored
Remove Vue School's Black Friday banner (#1367)
1 parent 28b17da commit f8c5190

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/.vuepress/theme/layouts/Layout.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
@touchstart="onTouchStart"
66
@touchend="onTouchEnd"
77
>
8-
<BannerTop v-if="showTopBanner" @close="closeBannerTop" />
9-
108
<Navbar v-if="shouldShowNavbar" @toggle-sidebar="toggleSidebar" />
119

1210
<div class="sidebar-mask" @click="toggleSidebar(false)" />
@@ -52,7 +50,6 @@ import Page from '@theme/components/Page.vue'
5250
import Sidebar from '@theme/components/Sidebar.vue'
5351
import BuySellAds from '@theme/components/BuySellAds.vue'
5452
import CarbonAds from '@theme/components/CarbonAds.vue'
55-
import BannerTop from '@theme/components/BannerTop.vue'
5653
import { resolveSidebarItems } from '../util'
5754
5855
export default {
@@ -63,14 +60,12 @@ export default {
6360
Page,
6461
Sidebar,
6562
Navbar,
66-
BannerTop,
6763
BuySellAds,
6864
CarbonAds
6965
},
7066
7167
data() {
7268
return {
73-
showTopBanner: false,
7469
isSidebarOpen: false
7570
}
7671
},
@@ -131,16 +126,9 @@ export default {
131126
this.$router.afterEach(() => {
132127
this.isSidebarOpen = false
133128
})
134-
135-
this.showTopBanner = !localStorage.getItem('VS_BF21_BANNER_CLOSED')
136129
},
137130
138131
methods: {
139-
closeBannerTop () {
140-
this.showTopBanner = false
141-
localStorage.setItem('VS_BF21_BANNER_CLOSED', 1)
142-
},
143-
144132
toggleSidebar(to) {
145133
this.isSidebarOpen = typeof to === 'boolean' ? to : !this.isSidebarOpen
146134
this.$emit('toggle-sidebar', this.isSidebarOpen)

0 commit comments

Comments
 (0)