Skip to content

Commit 7768489

Browse files
jalyn-leesamipe
authored andcommitted
rename: banner directory
1 parent abfc43a commit 7768489

File tree

10 files changed

+158
-151
lines changed

10 files changed

+158
-151
lines changed

src/components/PageSection.vue

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/components/banners/Banner.vue

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/components/banners/MainBanner.vue

Lines changed: 0 additions & 42 deletions
This file was deleted.
File renamed without changes.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<template>
2+
<v-col cols="12" md="7" lg="5">
3+
<div class="d-flex flex-col justify-between ga-10">
4+
<div class="text-sm-left text-center">
5+
<slot name="title"></slot>
6+
</div>
7+
8+
<div class="d-flex flex-col ga-3 pr-0 pr-md-10">
9+
<v-btn color="secondary" flat>
10+
Get ticket now
11+
</v-btn>
12+
<v-btn variant="outlined" color="secondary" flat>
13+
Find out more
14+
</v-btn>
15+
</div>
16+
</div>
17+
</v-col>
18+
</template>
19+
20+
21+
<script>
22+
export default {
23+
name: "Banner",
24+
props: {
25+
title: String,
26+
subtitle: String
27+
},
28+
data() {
29+
return {};
30+
}
31+
};
32+
</script>

src/components/PageFooter.vue renamed to src/components/footer/PageFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
<script>
7979
// import GlobeIcon from './icons/GlobeIcon.vue'
80-
import { useGlobalStore } from '../store';
80+
import { useGlobalStore } from '@/store';
8181
import { mapState } from 'pinia';
8282
8383
export default {

src/components/index.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
export { default as NewsBanner } from './NewsBanner.vue'
22

3-
4-
export { default as Banner } from './banners/Banner.vue'
5-
export { default as Banner404 } from './banners/Banner404.vue'
6-
export { default as BannerComingSoon } from './banners/BannerComingSoon.vue'
7-
export { default as MainBanner } from './banners/MainBanner.vue'
3+
export { default as MainBanner } from './banners/custom/MainBanner.vue'
4+
export { default as NotFoundBanner } from './banners/NotFoundBanner.vue'
5+
export { default as ComingSoonBanner } from './banners/ComingSoonBanner.vue'
86

97
export { default as EventCards } from './cards/EventCards.vue'
108
export { default as SpeakerCards } from './cards/SpeakerCards.vue'
119

12-
export { default as PageFooter } from './PageFooter.vue'
13-
export { default as Navbar } from './Navbar.vue'
14-
export { default as PageSection } from './PageSection.vue'
10+
export { default as PageFooter } from './footer/PageFooter.vue'
11+
12+
export { default as Navbar } from './navigation/Navbar.vue'
13+
14+
export { default as PageSection } from './sections/PageSection.vue'
15+
1516
export { default as TabBox } from './TabBox.vue'
1617
export { default as Sponsors } from './Sponsors.vue'
1718
export { default as TicketItem } from './TicketItem.vue'

src/components/Navbar.vue renamed to src/components/navigation/Navbar.vue

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</router-link>
88
</template>
99

10-
<v-spacer></v-spacer>
10+
<v-spacer />
1111

1212
<template v-if="!isXs">
1313
<router-link v-for="(menu) in menus" :key="menu.name" class="pl-4 router-link" :to="{ path: `/${menu.name}` }">
@@ -45,10 +45,55 @@
4545
</template>
4646

4747

48+
<script setup>
49+
import { BaseIcon } from '@/components'
50+
import { useGlobalStore } from '@/store';
51+
import { mapState } from 'pinia';
52+
import { watch, onMounted, reactive, ref } from 'vue';
53+
54+
const drawer = ref(null);
55+
const isXs = ref(false);
56+
57+
const props = defineProps({
58+
menus: {
59+
type: Array,
60+
default: [
61+
{
62+
name: 'sponsor'
63+
},
64+
{
65+
name: 'events'
66+
},
67+
]
68+
}
69+
})
4870
49-
<script>
50-
import { BaseIcon } from '.'
51-
import { useGlobalStore } from '../store';
71+
const pages = reactive(mapState(useGlobalStore, ['pages']))
72+
73+
watch(isXs, value => {
74+
if (!value) {
75+
if (this.drawer) {
76+
this.drawer = false;
77+
}
78+
}
79+
})
80+
81+
82+
onMounted(() => {
83+
onResize();
84+
window.addEventListener("resize", onResize, { passive: true });
85+
})
86+
87+
function onResize() {
88+
isXs.value = window.innerWidth < 500;
89+
}
90+
91+
</script>
92+
93+
94+
<!-- <script>
95+
import { BaseIcon } from '@/components'
96+
import { useGlobalStore } from '@/store';
5297
import { mapState } from 'pinia';
5398
5499
export default {
@@ -99,7 +144,7 @@ export default {
99144
},
100145
101146
}
102-
</script>
147+
</script> -->
103148

104149
<style scoped>
105150
.router-link {
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<template>
2+
<v-row :class="bg ? `bg-${bg}` : ''">
3+
<v-responsive class="mx-auto py-10" max-width="960">
4+
<h2>{{ props.title }}</h2>
5+
<slot></slot>
6+
</v-responsive>
7+
</v-row>
8+
</template>
9+
10+
11+
<script setup>
12+
import { useGlobalStore } from '@/store';
13+
import { mapState } from 'pinia';
14+
15+
const props = defineProps({
16+
titleId: {
17+
type: String,
18+
required: true
19+
},
20+
title: {
21+
type: String,
22+
default: ''
23+
},
24+
subtitle: {
25+
type: String
26+
},
27+
body: {
28+
type: String,
29+
default: ''
30+
},
31+
fullWidth: {
32+
type: Boolean,
33+
default: false
34+
},
35+
bg: {
36+
type: String
37+
}
38+
})
39+
40+
</script>
41+
42+
43+
<style scoped>
44+
a.anchor {
45+
display: block;
46+
position: relative;
47+
top: -15vh;
48+
visibility: hidden;
49+
}
50+
51+
h2::before {
52+
display: block;
53+
content: " ";
54+
margin-top: -50px;
55+
height: 50px;
56+
visibility: hidden;
57+
pointer-events: none;
58+
}
59+
60+
@media screen and (max-width: 1280px) {
61+
h2::before {
62+
margin-top: -80px;
63+
height: 80px;
64+
}
65+
}
66+
</style>

0 commit comments

Comments
 (0)