Skip to content

Commit 3863eac

Browse files
committed
fix: urlBasePath (redirect 2023)
1 parent 18181e3 commit 3863eac

15 files changed

+52
-31
lines changed

app/assets/main.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@ body {
66
font-family: 'din-2014', 'Yu Gothic Medium', '游ゴシック Medium', YuGothic, '游ゴシック体', Meiryo,
77
sans-serif;
88
overflow-x: hidden;
9-
background-image: url('/img/bg.png');
109
background-position: center;
1110
background-repeat: repeat;
1211
background-attachment: fixed;
1312
background-size: 400px;
1413
}
1514

15+
.prod-body {
16+
background-image: url('/2022/img/bg.png');
17+
}
18+
19+
.body {
20+
background-image: url('/img/bg.png');
21+
}
22+
1623
.inner-link {
1724
color: #33a6b8;
1825
text-decoration: underline;

app/components/FooterPageSection.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
>
66
<img
77
class="mx-auto mb-10 w-37.5 lg:mb-20 lg:w-60"
8-
:src="`/icon/vuefes_logo-invert.svg`"
8+
:src="`${urlBasePath}/icon/vuefes_logo-invert.svg`"
99
alt="Vue fes 2022"
1010
>
1111
<contact-list class="mb-5 lg:mb-10" />
@@ -20,4 +20,5 @@ import ContactList from '~/components/footer/ContactList.vue'
2020
import PastEvents from '~/components/footer/PastEvents.vue'
2121
import PrivacyPolicyAndCoc from '~/components/footer/PrivacyPolicyAndCoc.vue'
2222
import CopyrightText from '~/components/footer/CopyrightText.vue'
23+
import { urlBasePath } from '~/utils/constants'
2324
</script>

app/components/NavPageSection.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<nuxt-link to="/">
66
<img
77
class="mr-[2.6vw] w-[19.48vw] h-[3.51vw] lg:mr-5 lg:w-50 lg:h-9"
8-
:src="`/icon/vuefes_logo.svg`"
8+
:src="`${urlBasePath}/icon/vuefes_logo.svg`"
99
:alt="conferenceTitle"
1010
>
1111
</nuxt-link>
@@ -41,7 +41,7 @@
4141
<script setup lang="ts">
4242
import { conferenceTitle, subtitle } from '~/utils/constants'
4343
import NavMenu from '~/components/navbar/NavMenu.vue'
44-
import { menuLinks } from '~/utils/constants'
44+
import { menuLinks, urlBasePath } from '~/utils/constants'
4545
4646
4747
const isOpen = ref(false)

app/components/SpeakerPageSection.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import SpeakerPageBlock from '~/components/speakers/SpeakerPageBlock.vue'
33
import SpeakerPageHeading from '~/components/speakers/SpeakerPageHeading.vue'
44
import SectionTitle from '~/components/SectionTitle.vue'
55
import { speakers } from '~/utils/speakers.constants'
6+
import { urlBasePath } from '~/utils/constants'
67
// import { ISpeaker } from '~/types/interface'
78
89
const shuffleArray = ([...array]) => {
@@ -71,7 +72,7 @@ const sessionSponsors = (computed(() => [...sponsors.value.platinum, ...sponsors
7172
>
7273
<nuxt-link :to="`/sponsor-sessions/${sponsor.name_en}`">
7374
<img
74-
:src="`/sponsor/${sponsor.name_en}.png`"
75+
:src="`${urlBasePath}/sponsor/${sponsor.name_en}.png`"
7576
:alt="sponsor.name_jp"
7677
class="mb-2 md:mb-4"
7778
>

app/components/StorePageSection.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import SectionTitle from '~/components/SectionTitle.vue'
3+
import { urlBasePath } from '~/utils/constants'
34
import {
45
storeDescription,
56
goodsList,
@@ -33,7 +34,7 @@ import {
3334
<div class="aspect-square flex mb-10 md:mb-5">
3435
<img
3536
:alt="`${goods.name}のサンプル画像`"
36-
:src="`/store/${goods.image}`"
37+
:src="`${urlBasePath}/store/${goods.image}`"
3738
loading="lazy"
3839
class="block object-contain mx-auto max-h-full"
3940
>

app/components/TeamPageSection.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script setup lang="ts">
2+
import { urlBasePath } from '~/utils/constants'
23
import { staffList } from '~/utils/staffs.constants'
34
import SectionTitle from '~/components/SectionTitle.vue'
45
@@ -38,7 +39,7 @@ const showStaffs = computed(() => staffList.filter((staff) => staff.image !== ''
3839
>
3940
<img
4041
:alt="`${staff.name} logo`"
41-
:src="`/staff/${staff.image}`"
42+
:src="`${urlBasePath}/staff/${staff.image}`"
4243
loading="lazy"
4344
class="mb-1 w-full lg:mb-2"
4445
>
@@ -48,7 +49,7 @@ const showStaffs = computed(() => staffList.filter((staff) => staff.image !== ''
4849
<template v-else>
4950
<img
5051
:alt="`${staff.name} logo`"
51-
:src="`/staff/${staff.image}`"
52+
:src="`${urlBasePath}/staff/${staff.image}`"
5253
loading="lazy"
5354
class="mb-1 w-full lg:mb-2"
5455
>

app/components/TicketPageSection.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PageSubTitle from '~/components/PageSubTitle.vue'
44
import ExplainText from '~/components/ExplainText.vue'
55
import AccordionView from '~/components/AccordionView.vue'
66
import LinkButtonField from '~/components/forms/LinkButtonField.vue'
7-
import { faqList, giftboxCaution1, giftboxCaution2, giftboxInfo, gifts, promotionCaution, promotionInfo, promotionInfo2, promotionInfo3, promotionInfo4 } from '~/utils/constants'
7+
import { faqList, giftboxCaution1, giftboxCaution2, giftboxInfo, gifts, promotionCaution, promotionInfo, promotionInfo2, promotionInfo3, promotionInfo4, urlBasePath } from '~/utils/constants'
88
</script>
99

1010
<template>
@@ -27,7 +27,7 @@ import { faqList, giftboxCaution1, giftboxCaution2, giftboxInfo, gifts, promotio
2727
<div class="mb-7.5">
2828
<div class="px-6 md:px-14">
2929
<img
30-
src="/img/preregister_bannar.jpg"
30+
:src="`${urlBasePath}/img/preregister_bannar.jpg`"
3131
alt=""
3232
class="w-full"
3333
>
@@ -40,7 +40,7 @@ import { faqList, giftboxCaution1, giftboxCaution2, giftboxInfo, gifts, promotio
4040
<div>
4141
<div class="px-6 md:px-14">
4242
<img
43-
src="/img/personal_sponsor_bannar.jpg"
43+
:src="`${urlBasePath}/img/personal_sponsor_bannar.jpg`"
4444
alt=""
4545
class="w-full"
4646
>
@@ -85,7 +85,7 @@ import { faqList, giftboxCaution1, giftboxCaution2, giftboxInfo, gifts, promotio
8585
>
8686
<div class="aspect-square mb-1.5 md:mb-2.5">
8787
<img
88-
:src="`/img/${gift.value}_sample.jpg`"
88+
:src="`${urlBasePath}/img/${gift.value}_sample.jpg`"
8989
:alt="`${gift.title}用サンプル画像`"
9090
loading="lazy"
9191
>

app/components/events/ChildcareDetail.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import ExplainText from '~/components/ExplainText.vue'
33
import LinkButtonField from '~/components/forms/LinkButtonField.vue'
4+
import { urlBasePath } from '~/utils/constants'
45
import {
56
childcareDescription,
67
childcareCostSupportConditions,
@@ -19,7 +20,7 @@ import {
1920
<div class="py-10 px-5 -mt-4 text-vue-blue border border-vue-blue md:p-20 lg:-mt-5">
2021
<div class="aspect-[738/269] mb-10">
2122
<img
22-
src="/events/childcare.png"
23+
:src="`${urlBasePath}/events/childcare.png`"
2324
alt="託児サポートのイメージ画像"
2425
loading="lazy"
2526
>

app/components/events/EventDetail.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import SpeakerProfiles from '~/components/speakers/SpeakerProfiles.vue'
33
import PageSubTitle from '~/components/PageSubTitle.vue'
4+
import { urlBasePath } from '~/utils/constants'
45
import { IEvent } from '~/types/events'
56
67
const props = defineProps<{
@@ -34,15 +35,15 @@ const eventInfo = computed(() => props.event)
3435
rel="noopener"
3536
>
3637
<img
37-
:src="logo.src"
38+
:src="`${urlBasePath}${logo.src}`"
3839
:alt="logo.alt"
3940
class="aspect-square w-full"
4041
>
4142
</a>
4243
</template>
4344
<template v-else>
4445
<img
45-
:src="logo.src"
46+
:src="`${urlBasePath}${logo.src}`"
4647
:alt="logo.alt"
4748
class="object-contain w-full"
4849
>

app/components/speakers/SpeakerLTSection.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<script setup lang="ts">
22
import SpeakerPageHeading from '~/components/speakers/SpeakerPageHeading.vue'
33
import LinkButtonField from '~/components/forms/LinkButtonField.vue'
4+
import { urlBasePath } from '~/utils/constants'
45
</script>
56

67
<template>
78
<section class="p-4 border border-vue-blue md:px-10 lg:py-10 lg:px-20">
8-
<h3 class="mx-auto -mt-8 mb-6 w-57.5 text-xl font-bold text-center text-vue-blue md:mb-8 lg:my-14 lg:w-107.5 lg:text-4xl bg-img">
9+
<h3
10+
class="mx-auto -mt-8 mb-6 w-57.5 text-xl font-bold text-center text-vue-blue md:mb-8 lg:my-14 lg:w-107.5 lg:text-4xl"
11+
:style="{ backgroundImage: `url('${urlBasePath}/img/bg.png')` }"
12+
>
913
LT募集について
1014
</h3>
1115
<p class="mb-8 text-sm leading-7 text-vue-blue lg:mb-12 lg:text-lg lg:leading-8">
@@ -40,9 +44,3 @@ import LinkButtonField from '~/components/forms/LinkButtonField.vue'
4044
</div>
4145
</section>
4246
</template>
43-
44-
<style scoped>
45-
.bg-img {
46-
background-image: url("/img/bg.png");
47-
}
48-
</style>

0 commit comments

Comments
 (0)