@mundogamernetwork/shared-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +283 -0
- package/components/PressKit/AssetGallery.vue +349 -0
- package/components/PressKit/Awards.vue +100 -0
- package/components/PressKit/Credits.vue +78 -0
- package/components/PressKit/FactSheet.vue +204 -0
- package/components/PressKit/Hero.vue +143 -0
- package/components/PressKit/Quotes.vue +80 -0
- package/components/PressKit/VideoPlayer.vue +134 -0
- package/components/checkout/MgCartItemList.vue +214 -0
- package/components/checkout/MgCartSummary.vue +204 -0
- package/components/checkout/MgCheckoutSidebar.vue +230 -0
- package/components/checkout/MgGuestEmailForm.vue +97 -0
- package/components/checkout/MgPaymentMethodSelector.vue +162 -0
- package/components/checkout/MgPixQRCode.vue +222 -0
- package/components/indie-wall/IndieWallLeaderboard.vue +208 -0
- package/components/indie-wall/MuralCanvas.vue +481 -0
- package/components/indie-wall/StepBlock.vue +314 -0
- package/components/indie-wall/StepCustomize.vue +530 -0
- package/components/indie-wall/StepGoal.vue +169 -0
- package/components/indie-wall/StepPackage.vue +145 -0
- package/components/indie-wall/StepPay.vue +209 -0
- package/components/indie-wall/SupportStepper.vue +372 -0
- package/components/invoices/MgInvoiceDownload.vue +50 -0
- package/components/pricing/MgBillingToggle.vue +74 -0
- package/components/pricing/MgPricingCard.vue +245 -0
- package/components/ui/Header/MgMessageCard.vue +147 -0
- package/components/ui/Header/MgMessageModal.vue +414 -0
- package/components/ui/Header/MgNotificationCard.vue +200 -0
- package/components/ui/Header/MgNotificationsModal.vue +125 -0
- package/components/ui/MgAnnouncementBanner.vue +147 -0
- package/components/ui/MgBanners.vue +23 -0
- package/components/ui/MgHeaderComponent.vue +283 -0
- package/components/ui/MgHeaderUIConfig.vue +225 -0
- package/components/ui/MgHeaderUIUser.vue +301 -0
- package/components/ui/MgLoginModal.vue +156 -0
- package/components/ui/MgPromotionBanner.vue +185 -0
- package/composables/useLogout.ts +42 -0
- package/composables/useMgCheckout.ts +287 -0
- package/composables/useMgUserNotifications.ts +122 -0
- package/composables/usePaymentMethods.ts +75 -0
- package/composables/useSubscription.ts +163 -0
- package/middleware/auth.global.ts +40 -0
- package/nuxt.config.ts +31 -0
- package/package.json +40 -0
- package/pages/[slug]/index.vue +112 -0
- package/pages/about.vue +133 -0
- package/pages/blog.vue +430 -0
- package/pages/careers.vue +329 -0
- package/pages/contact.vue +339 -0
- package/pages/faq.vue +317 -0
- package/pages/health-check.vue +20 -0
- package/pages/icons.vue +58 -0
- package/pages/magazine/[slug].vue +209 -0
- package/pages/magazine/index.vue +267 -0
- package/pages/media-kit/[slug].vue +625 -0
- package/pages/mural/[slug].vue +1058 -0
- package/pages/partners.vue +290 -0
- package/pages/press.vue +237 -0
- package/pages/presskit/[slug].vue +191 -0
- package/pages/roadmap.vue +355 -0
- package/pages/status.vue +199 -0
- package/pages/team.vue +266 -0
- package/pages/wall/[slug].vue +11 -0
- package/plugins/auth.client.ts +17 -0
- package/plugins/echo.client.ts +132 -0
- package/services/authService.ts +95 -0
- package/services/chatService.ts +53 -0
- package/services/contactService.ts +35 -0
- package/services/documentService.ts +16 -0
- package/services/httpService.ts +95 -0
- package/services/indieWallService.ts +174 -0
- package/services/institutionalService.ts +248 -0
- package/services/mediaKitService.ts +51 -0
- package/services/notificationsService.ts +20 -0
- package/services/pressKitService.ts +55 -0
- package/stores/announcement.ts +129 -0
- package/stores/auth.ts +86 -0
- package/stores/chat.ts +150 -0
- package/stores/contact.ts +28 -0
- package/stores/document.ts +27 -0
- package/stores/index.ts +34 -0
- package/stores/institutional.ts +231 -0
- package/stores/login.ts +27 -0
- package/stores/notifications.ts +133 -0
- package/stores/promotion.ts +154 -0
- package/types/index.ts +135 -0
- package/utils/serialize.ts +29 -0
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { storeToRefs } from "pinia";
|
|
3
|
+
|
|
4
|
+
definePageMeta({ layout: "default" });
|
|
5
|
+
|
|
6
|
+
const institutionalStore = useInstitutionalStore();
|
|
7
|
+
const { partner } = storeToRefs(institutionalStore);
|
|
8
|
+
|
|
9
|
+
const currentPage = ref(1);
|
|
10
|
+
const perPage = 12;
|
|
11
|
+
const selectedPartner = ref<any>(null);
|
|
12
|
+
|
|
13
|
+
async function fetchPartners() {
|
|
14
|
+
try {
|
|
15
|
+
await institutionalStore.fetchPartner({
|
|
16
|
+
filter: { status: 1 },
|
|
17
|
+
sort: "name",
|
|
18
|
+
order: "asc",
|
|
19
|
+
per_page: perPage,
|
|
20
|
+
page: currentPage.value,
|
|
21
|
+
});
|
|
22
|
+
} catch {
|
|
23
|
+
// silent
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function changePage(page: number) {
|
|
28
|
+
currentPage.value = page;
|
|
29
|
+
fetchPartners();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function openPartnerModal(p: any) {
|
|
33
|
+
selectedPartner.value = p;
|
|
34
|
+
institutionalStore.togglePartnersModal();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function closePartnerModal() {
|
|
38
|
+
selectedPartner.value = null;
|
|
39
|
+
if (institutionalStore.showPartnersModal) {
|
|
40
|
+
institutionalStore.togglePartnersModal();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
onMounted(() => {
|
|
45
|
+
fetchPartners();
|
|
46
|
+
});
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<template>
|
|
50
|
+
<div id="partners" class="container partners">
|
|
51
|
+
<section>
|
|
52
|
+
<div class="header">
|
|
53
|
+
<div>
|
|
54
|
+
<h1 class="title-4">{{ $t("more.partners.title") }}</h1>
|
|
55
|
+
<p>{{ $t("more.partners.subtitle") }}</p>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="container">
|
|
59
|
+
<div class="row">
|
|
60
|
+
<div class="col-8 offset-2">
|
|
61
|
+
<div v-if="partner.status === 'pending'" class="loading">
|
|
62
|
+
<p>{{ $t("components.loading") }}</p>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<div v-else-if="partner?.data?.data && partner.data.data.length > 0">
|
|
66
|
+
<div class="partners-grid">
|
|
67
|
+
<div
|
|
68
|
+
v-for="p in partner.data.data"
|
|
69
|
+
:key="p.id"
|
|
70
|
+
class="partner-card"
|
|
71
|
+
@click="openPartnerModal(p)"
|
|
72
|
+
>
|
|
73
|
+
<img
|
|
74
|
+
:src="p.logo_url || p.image_url || '/imgs/default.jpg'"
|
|
75
|
+
:alt="p.name"
|
|
76
|
+
/>
|
|
77
|
+
<h4>{{ p.name }}</h4>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<div v-if="partner.data.meta" class="pagination-controls">
|
|
82
|
+
<button
|
|
83
|
+
:disabled="currentPage <= 1"
|
|
84
|
+
@click="changePage(currentPage - 1)"
|
|
85
|
+
>
|
|
86
|
+
{{ $t("components.previous") }}
|
|
87
|
+
</button>
|
|
88
|
+
<span>{{ currentPage }} / {{ partner.data.meta.last_page || 1 }}</span>
|
|
89
|
+
<button
|
|
90
|
+
:disabled="currentPage >= (partner.data.meta.last_page || 1)"
|
|
91
|
+
@click="changePage(currentPage + 1)"
|
|
92
|
+
>
|
|
93
|
+
{{ $t("components.next") }}
|
|
94
|
+
</button>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
<div v-else class="no-data">
|
|
99
|
+
{{ $t("more.partners.no_data") }}
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</section>
|
|
105
|
+
|
|
106
|
+
<Teleport to="body">
|
|
107
|
+
<div v-if="institutionalStore.showPartnersModal && selectedPartner" class="modal-overlay" @click.self="closePartnerModal">
|
|
108
|
+
<div class="partner-modal">
|
|
109
|
+
<button class="close-btn" @click="closePartnerModal">×</button>
|
|
110
|
+
<img
|
|
111
|
+
:src="selectedPartner.logo_url || selectedPartner.image_url || '/imgs/default.jpg'"
|
|
112
|
+
:alt="selectedPartner.name"
|
|
113
|
+
class="partner-modal__image"
|
|
114
|
+
/>
|
|
115
|
+
<h3>{{ selectedPartner.name }}</h3>
|
|
116
|
+
<p v-if="selectedPartner.localized_description">{{ selectedPartner.localized_description }}</p>
|
|
117
|
+
<a
|
|
118
|
+
v-if="selectedPartner.website_url"
|
|
119
|
+
:href="selectedPartner.website_url"
|
|
120
|
+
target="_blank"
|
|
121
|
+
rel="noopener"
|
|
122
|
+
class="partner-link"
|
|
123
|
+
>
|
|
124
|
+
{{ $t("more.partners.visit_website") }}
|
|
125
|
+
</a>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</Teleport>
|
|
129
|
+
</div>
|
|
130
|
+
</template>
|
|
131
|
+
|
|
132
|
+
<style lang="scss" scoped>
|
|
133
|
+
.partners {
|
|
134
|
+
color: var(--inactive);
|
|
135
|
+
font-size: 0.875rem;
|
|
136
|
+
|
|
137
|
+
.header {
|
|
138
|
+
position: relative;
|
|
139
|
+
height: 200px;
|
|
140
|
+
display: flex;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
align-items: center;
|
|
143
|
+
margin-bottom: 2rem;
|
|
144
|
+
|
|
145
|
+
& > div {
|
|
146
|
+
width: 480px;
|
|
147
|
+
text-align: center;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:before {
|
|
151
|
+
content: " ";
|
|
152
|
+
display: block;
|
|
153
|
+
position: absolute;
|
|
154
|
+
background: url("@/assets/images/bg-partners.png") no-repeat center center / cover;
|
|
155
|
+
width: 100%;
|
|
156
|
+
height: 100%;
|
|
157
|
+
top: 50%;
|
|
158
|
+
transform: translateY(-50%);
|
|
159
|
+
z-index: -1;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.partners-grid {
|
|
164
|
+
display: grid;
|
|
165
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
166
|
+
gap: 16px;
|
|
167
|
+
margin-bottom: 24px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.partner-card {
|
|
171
|
+
background-color: var(--chip-background-2);
|
|
172
|
+
padding: 16px;
|
|
173
|
+
text-align: center;
|
|
174
|
+
cursor: pointer;
|
|
175
|
+
transition: opacity 0.2s;
|
|
176
|
+
|
|
177
|
+
&:hover {
|
|
178
|
+
opacity: 0.8;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
img {
|
|
182
|
+
width: 80px;
|
|
183
|
+
height: 80px;
|
|
184
|
+
object-fit: contain;
|
|
185
|
+
margin-bottom: 8px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
h4 {
|
|
189
|
+
font-size: 14px;
|
|
190
|
+
font-weight: 500;
|
|
191
|
+
color: var(--card-cover-title);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.pagination-controls {
|
|
196
|
+
display: flex;
|
|
197
|
+
justify-content: center;
|
|
198
|
+
align-items: center;
|
|
199
|
+
margin-top: 20px;
|
|
200
|
+
gap: 16px;
|
|
201
|
+
|
|
202
|
+
button {
|
|
203
|
+
padding: 8px 15px;
|
|
204
|
+
background-color: var(--chip-background-2);
|
|
205
|
+
color: var(--card-cover-title);
|
|
206
|
+
border: 1px solid var(--search-bar-border-color);
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
|
|
209
|
+
&:disabled {
|
|
210
|
+
opacity: 0.5;
|
|
211
|
+
cursor: default;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.no-data {
|
|
217
|
+
text-align: center;
|
|
218
|
+
padding: 32px;
|
|
219
|
+
color: var(--secondary-info-fg);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.modal-overlay {
|
|
224
|
+
position: fixed;
|
|
225
|
+
top: 0;
|
|
226
|
+
left: 0;
|
|
227
|
+
right: 0;
|
|
228
|
+
bottom: 0;
|
|
229
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
230
|
+
display: flex;
|
|
231
|
+
justify-content: center;
|
|
232
|
+
align-items: center;
|
|
233
|
+
z-index: 1000;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.partner-modal {
|
|
237
|
+
background-color: var(--sidebar-bg);
|
|
238
|
+
padding: 32px;
|
|
239
|
+
max-width: 500px;
|
|
240
|
+
width: 90%;
|
|
241
|
+
text-align: center;
|
|
242
|
+
position: relative;
|
|
243
|
+
|
|
244
|
+
.close-btn {
|
|
245
|
+
position: absolute;
|
|
246
|
+
top: 8px;
|
|
247
|
+
right: 12px;
|
|
248
|
+
background: none;
|
|
249
|
+
border: none;
|
|
250
|
+
color: var(--active);
|
|
251
|
+
font-size: 24px;
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&__image {
|
|
256
|
+
width: 120px;
|
|
257
|
+
height: 120px;
|
|
258
|
+
object-fit: contain;
|
|
259
|
+
margin-bottom: 16px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
h3 {
|
|
263
|
+
font-size: 18px;
|
|
264
|
+
font-weight: 600;
|
|
265
|
+
color: var(--active);
|
|
266
|
+
margin-bottom: 12px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
p {
|
|
270
|
+
font-size: 14px;
|
|
271
|
+
line-height: 20px;
|
|
272
|
+
color: var(--inactive);
|
|
273
|
+
margin-bottom: 16px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.partner-link {
|
|
277
|
+
display: inline-block;
|
|
278
|
+
padding: 8px 24px;
|
|
279
|
+
border: 1px solid var(--chip-text);
|
|
280
|
+
color: var(--chip-text);
|
|
281
|
+
text-decoration: none;
|
|
282
|
+
font-size: 14px;
|
|
283
|
+
|
|
284
|
+
&:hover {
|
|
285
|
+
background: var(--chip-text);
|
|
286
|
+
color: var(--chip-background-2);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
</style>
|
package/pages/press.vue
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { storeToRefs } from "pinia";
|
|
3
|
+
|
|
4
|
+
definePageMeta({ layout: "default" });
|
|
5
|
+
|
|
6
|
+
const institutionalStore = useInstitutionalStore();
|
|
7
|
+
const { press } = storeToRefs(institutionalStore);
|
|
8
|
+
|
|
9
|
+
const config = useRuntimeConfig();
|
|
10
|
+
const systemId = config.public.mgSharedUi?.systemId || import.meta.env.VITE_SYSTEM_ID;
|
|
11
|
+
|
|
12
|
+
const currentPage = ref(1);
|
|
13
|
+
const perPage = 8;
|
|
14
|
+
|
|
15
|
+
async function fetchPressData() {
|
|
16
|
+
try {
|
|
17
|
+
await institutionalStore.fetchLatestPress({
|
|
18
|
+
filter: {
|
|
19
|
+
status: 1,
|
|
20
|
+
platform_id: systemId,
|
|
21
|
+
},
|
|
22
|
+
sort: "created_at",
|
|
23
|
+
order: "desc",
|
|
24
|
+
per_page: perPage,
|
|
25
|
+
page: currentPage.value,
|
|
26
|
+
});
|
|
27
|
+
} catch {
|
|
28
|
+
// silent
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function loadMore() {
|
|
33
|
+
currentPage.value++;
|
|
34
|
+
institutionalStore.fetchMoreLatestPress({
|
|
35
|
+
filter: {
|
|
36
|
+
status: 1,
|
|
37
|
+
platform_id: systemId,
|
|
38
|
+
},
|
|
39
|
+
sort: "created_at",
|
|
40
|
+
order: "desc",
|
|
41
|
+
per_page: perPage,
|
|
42
|
+
page: currentPage.value,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
onMounted(() => {
|
|
47
|
+
fetchPressData();
|
|
48
|
+
});
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<template>
|
|
52
|
+
<div id="press" class="container press">
|
|
53
|
+
<section>
|
|
54
|
+
<div class="header">
|
|
55
|
+
<div>
|
|
56
|
+
<h1 class="title-4">{{ $t("more.press.title") }}</h1>
|
|
57
|
+
<p>{{ $t("more.press.subtitle") }}</p>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="container">
|
|
61
|
+
<div class="row">
|
|
62
|
+
<div class="col-8 offset-2">
|
|
63
|
+
<div class="press-info" v-if="$t('more.press.media_kit_title')">
|
|
64
|
+
<div class="press-info__title">{{ $t("more.press.media_kit_title") }}</div>
|
|
65
|
+
<p>{{ $t("more.press.media_kit_text") }}</p>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<div v-if="press.status === 'pending' && (!press.data || press.data.length === 0)" class="loading">
|
|
69
|
+
<p>{{ $t("components.loading") }}</p>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<div v-else-if="press.data && press.data.length > 0" class="press-list">
|
|
73
|
+
<div
|
|
74
|
+
v-for="item in press.data"
|
|
75
|
+
:key="item.id"
|
|
76
|
+
class="press-card"
|
|
77
|
+
>
|
|
78
|
+
<img
|
|
79
|
+
v-if="item.cover_image_url"
|
|
80
|
+
:src="item.cover_image_url"
|
|
81
|
+
:alt="item.localized_title"
|
|
82
|
+
class="press-card__image"
|
|
83
|
+
/>
|
|
84
|
+
<div class="press-card__content">
|
|
85
|
+
<h3>{{ item.localized_title }}</h3>
|
|
86
|
+
<p>{{ item.localized_short_description }}</p>
|
|
87
|
+
<span class="date">{{ item.created_at }}</span>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<div
|
|
92
|
+
v-if="press.data.meta && press.data.length < press.data.meta.total"
|
|
93
|
+
class="load-more"
|
|
94
|
+
>
|
|
95
|
+
<button @click="loadMore" :disabled="press.status === 'pending'">
|
|
96
|
+
{{ $t("components.load_more") }}
|
|
97
|
+
</button>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<div v-else class="no-data">
|
|
102
|
+
{{ $t("more.press.no_data") }}
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</section>
|
|
108
|
+
</div>
|
|
109
|
+
</template>
|
|
110
|
+
|
|
111
|
+
<style lang="scss" scoped>
|
|
112
|
+
.press {
|
|
113
|
+
color: var(--inactive);
|
|
114
|
+
font-size: 0.875rem;
|
|
115
|
+
|
|
116
|
+
.header {
|
|
117
|
+
position: relative;
|
|
118
|
+
height: 200px;
|
|
119
|
+
display: flex;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
align-items: center;
|
|
122
|
+
margin-bottom: 2rem;
|
|
123
|
+
|
|
124
|
+
& > div {
|
|
125
|
+
width: 480px;
|
|
126
|
+
text-align: center;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:before {
|
|
130
|
+
content: " ";
|
|
131
|
+
display: block;
|
|
132
|
+
position: absolute;
|
|
133
|
+
background: url("@/assets/images/bg-press.png") no-repeat center center / cover;
|
|
134
|
+
width: 100%;
|
|
135
|
+
height: 100%;
|
|
136
|
+
top: 50%;
|
|
137
|
+
transform: translateY(-50%);
|
|
138
|
+
z-index: -1;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.press-info {
|
|
143
|
+
background-color: var(--chip-background-2);
|
|
144
|
+
padding: 16px;
|
|
145
|
+
margin-bottom: 24px;
|
|
146
|
+
|
|
147
|
+
&__title {
|
|
148
|
+
font-size: 14px;
|
|
149
|
+
font-weight: 600;
|
|
150
|
+
color: var(--card-cover-title);
|
|
151
|
+
margin-bottom: 8px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
p {
|
|
155
|
+
font-size: 14px;
|
|
156
|
+
line-height: 20px;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.press-list {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: 16px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.press-card {
|
|
167
|
+
display: flex;
|
|
168
|
+
gap: 16px;
|
|
169
|
+
background-color: var(--chip-background-2);
|
|
170
|
+
padding: 16px;
|
|
171
|
+
|
|
172
|
+
&__image {
|
|
173
|
+
width: 160px;
|
|
174
|
+
height: 100px;
|
|
175
|
+
object-fit: cover;
|
|
176
|
+
flex-shrink: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&__content {
|
|
180
|
+
flex: 1;
|
|
181
|
+
|
|
182
|
+
h3 {
|
|
183
|
+
font-size: 16px;
|
|
184
|
+
font-weight: 600;
|
|
185
|
+
color: var(--card-cover-title);
|
|
186
|
+
margin-bottom: 8px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
p {
|
|
190
|
+
font-size: 14px;
|
|
191
|
+
line-height: 20px;
|
|
192
|
+
margin-bottom: 8px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.date {
|
|
196
|
+
font-size: 12px;
|
|
197
|
+
color: var(--secondary-info-fg);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.load-more {
|
|
203
|
+
text-align: center;
|
|
204
|
+
margin-top: 24px;
|
|
205
|
+
|
|
206
|
+
button {
|
|
207
|
+
padding: 8px 24px;
|
|
208
|
+
border: 1px solid var(--chip-text);
|
|
209
|
+
background: transparent;
|
|
210
|
+
color: var(--chip-text);
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
font-size: 14px;
|
|
213
|
+
|
|
214
|
+
&:disabled {
|
|
215
|
+
opacity: 0.5;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.no-data {
|
|
221
|
+
text-align: center;
|
|
222
|
+
padding: 32px;
|
|
223
|
+
color: var(--secondary-info-fg);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@media screen and (max-width: 768px) {
|
|
228
|
+
.press .press-card {
|
|
229
|
+
flex-direction: column;
|
|
230
|
+
|
|
231
|
+
&__image {
|
|
232
|
+
width: 100%;
|
|
233
|
+
height: 180px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
</style>
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { fetchPublicPressKit, trackPressKitEvent } from '../../services/pressKitService';
|
|
3
|
+
|
|
4
|
+
const route = useRoute();
|
|
5
|
+
const slug = route.params.slug as string;
|
|
6
|
+
|
|
7
|
+
const kit = ref<Record<string, any> | null>(null);
|
|
8
|
+
const loading = ref(true);
|
|
9
|
+
const error = ref(false);
|
|
10
|
+
|
|
11
|
+
onMounted(async () => {
|
|
12
|
+
try {
|
|
13
|
+
const { data } = await fetchPublicPressKit(slug);
|
|
14
|
+
kit.value = data?.data || data;
|
|
15
|
+
|
|
16
|
+
trackPressKitEvent(slug, {
|
|
17
|
+
event_type: 'view',
|
|
18
|
+
referrer: document.referrer || undefined,
|
|
19
|
+
}).catch(() => {});
|
|
20
|
+
} catch {
|
|
21
|
+
error.value = true;
|
|
22
|
+
} finally {
|
|
23
|
+
loading.value = false;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const assets = computed(() => kit.value?.assets?.data || []);
|
|
28
|
+
const videos = computed(() => kit.value?.videos?.data || []);
|
|
29
|
+
const credits = computed(() => kit.value?.credits?.data || []);
|
|
30
|
+
const awards = computed(() => kit.value?.awards?.data || []);
|
|
31
|
+
const quotes = computed(() => kit.value?.quotes?.data || []);
|
|
32
|
+
|
|
33
|
+
const requestUrl = useRequestURL();
|
|
34
|
+
|
|
35
|
+
useHead(() => ({
|
|
36
|
+
title: kit.value ? `${kit.value.name} — Press Kit` : 'Press Kit',
|
|
37
|
+
meta: [
|
|
38
|
+
{ name: 'description', content: kit.value?.tagline || kit.value?.description?.substring(0, 160) || '' },
|
|
39
|
+
{ property: 'og:title', content: kit.value?.name || 'Press Kit' },
|
|
40
|
+
{ property: 'og:description', content: kit.value?.tagline || kit.value?.description?.substring(0, 160) || '' },
|
|
41
|
+
{ property: 'og:image', content: kit.value?.hero_image_url || kit.value?.logo_url || '' },
|
|
42
|
+
{ property: 'og:type', content: 'article' },
|
|
43
|
+
{ property: 'og:url', content: requestUrl.href },
|
|
44
|
+
],
|
|
45
|
+
}));
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<template>
|
|
49
|
+
<div class="presskit-page">
|
|
50
|
+
<div v-if="loading" class="loading-state">
|
|
51
|
+
<span class="loading-text">{{ $t('press_kit.loading') }}</span>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<div v-else-if="error || !kit" class="error-state">
|
|
55
|
+
<h2>{{ $t('press_kit.not_found') }}</h2>
|
|
56
|
+
<p>{{ $t('press_kit.not_found_message') }}</p>
|
|
57
|
+
<NuxtLink to="/" class="btn-back">{{ $t('press_kit.back_home') }}</NuxtLink>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<template v-else>
|
|
61
|
+
<PressKitHero
|
|
62
|
+
:name="kit.name"
|
|
63
|
+
:tagline="kit.tagline"
|
|
64
|
+
:hero-image-url="kit.hero_image_url"
|
|
65
|
+
:logo-url="kit.logo_url"
|
|
66
|
+
:trailer-url="kit.trailer_url"
|
|
67
|
+
/>
|
|
68
|
+
|
|
69
|
+
<div class="presskit-content">
|
|
70
|
+
<aside class="presskit-sidebar">
|
|
71
|
+
<PressKitFactSheet :kit="kit" />
|
|
72
|
+
</aside>
|
|
73
|
+
|
|
74
|
+
<main class="presskit-main">
|
|
75
|
+
<div v-if="kit.description" class="description-section">
|
|
76
|
+
<h3 class="section-title">{{ $t('press_kit.description') }}</h3>
|
|
77
|
+
<div class="description-text" v-html="kit.description" />
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<PressKitVideoPlayer :videos="videos" />
|
|
81
|
+
|
|
82
|
+
<PressKitAssetGallery
|
|
83
|
+
:assets="assets"
|
|
84
|
+
:allow-download="kit.allow_asset_download !== false"
|
|
85
|
+
/>
|
|
86
|
+
|
|
87
|
+
<PressKitQuotes :quotes="quotes" />
|
|
88
|
+
|
|
89
|
+
<PressKitAwards :awards="awards" />
|
|
90
|
+
|
|
91
|
+
<PressKitCredits :credits="credits" />
|
|
92
|
+
</main>
|
|
93
|
+
</div>
|
|
94
|
+
</template>
|
|
95
|
+
</div>
|
|
96
|
+
</template>
|
|
97
|
+
|
|
98
|
+
<style lang="scss" scoped>
|
|
99
|
+
.presskit-page {
|
|
100
|
+
max-width: 1200px;
|
|
101
|
+
margin: 0 auto;
|
|
102
|
+
padding: 24px 16px 60px;
|
|
103
|
+
|
|
104
|
+
.loading-state {
|
|
105
|
+
display: flex;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
align-items: center;
|
|
108
|
+
min-height: 400px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.loading-text {
|
|
112
|
+
color: #888;
|
|
113
|
+
font-size: 0.95rem;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.error-state {
|
|
117
|
+
text-align: center;
|
|
118
|
+
padding: 80px 20px;
|
|
119
|
+
|
|
120
|
+
h2 {
|
|
121
|
+
color: #fff;
|
|
122
|
+
margin-bottom: 8px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
p {
|
|
126
|
+
color: #888;
|
|
127
|
+
margin-bottom: 24px;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.btn-back {
|
|
132
|
+
display: inline-block;
|
|
133
|
+
background: var(--color-primary, #FDB215);
|
|
134
|
+
color: #13161C;
|
|
135
|
+
padding: 10px 24px;
|
|
136
|
+
font-weight: 600;
|
|
137
|
+
text-decoration: none;
|
|
138
|
+
transition: opacity 0.2s;
|
|
139
|
+
|
|
140
|
+
&:hover {
|
|
141
|
+
opacity: 0.85;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.presskit-content {
|
|
146
|
+
display: grid;
|
|
147
|
+
grid-template-columns: 320px 1fr;
|
|
148
|
+
gap: 32px;
|
|
149
|
+
margin-top: 32px;
|
|
150
|
+
|
|
151
|
+
@media (max-width: 768px) {
|
|
152
|
+
grid-template-columns: 1fr;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.presskit-sidebar {
|
|
157
|
+
position: sticky;
|
|
158
|
+
top: 24px;
|
|
159
|
+
align-self: start;
|
|
160
|
+
|
|
161
|
+
@media (max-width: 768px) {
|
|
162
|
+
position: static;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.presskit-main {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
gap: 40px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.description-section {
|
|
173
|
+
.section-title {
|
|
174
|
+
font-size: 1.2rem;
|
|
175
|
+
font-weight: 700;
|
|
176
|
+
color: #fff;
|
|
177
|
+
margin-bottom: 12px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.description-text {
|
|
181
|
+
font-size: 0.95rem;
|
|
182
|
+
color: #ccc;
|
|
183
|
+
line-height: 1.7;
|
|
184
|
+
|
|
185
|
+
:deep(p) {
|
|
186
|
+
margin-bottom: 12px;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
</style>
|