blob: 59dcd5bb6ed4f92e0cd5b948b50caa563a33aae2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
<script lang="ts">
import ShelfTitle from '~/components/Shelf/Title.svelte';
import ShelfWrapper from '~/components/Shelf/Wrapper.svelte';
import Grid from '~/components/Grid.svelte';
import { getI18n } from '~/stores/i18n';
import { getLocale } from '~/utils/locale';
const locale = getLocale();
const i18n = getI18n();
let links: Record<string, string>;
function getAboutAppStoreUrl(storefront: string, language: string) {
let storefrontSlug = `${storefront}/`;
if (storefront === 'us') {
storefrontSlug = '';
} else if (storefront === 'gb') {
// The UK "About App Store" link is https://www.apple.com/uk/app-store/, not https://www.apple.com/gb/app-store/.
storefrontSlug = 'uk/';
} else if (storefront === 'ae' && language === 'ar') {
storefrontSlug = 'ae-ar/';
}
return `https://www.apple.com/${storefrontSlug}app-store/`;
}
$: storefront = locale.storefront;
$: links = {
'ASE.Web.AppStore.VisionPro.Footer.Links.AboutAppStore':
getAboutAppStoreUrl(storefront, locale.language),
'ASE.Web.AppStore.VisionPro.Footer.Links.AboutPurchases': `https://apps.apple.com/${storefront}/story/id1436214772`,
'ASE.Web.AppStore.VisionPro.Footer.Links.RequestRefund': `https://www.apple.com/${storefront}/shop/goto/help/sales_refunds`,
'ASE.Web.AppStore.VisionPro.Footer.Links.PaymentMethods': `https://support.apple.com/118429`,
};
$: if (storefront === 'fr') {
links[
'AppStore.QuickLinks.AboutFrenchAppStore.Title'
] = `https://apps.apple.com/${storefront}/story/1700848501`;
}
</script>
<ShelfWrapper centered={false} withBottomPadding={false}>
<section data-test-id="vision-footer">
<p class="blurb">
{$i18n.t('ASE.Web.AppStore.VisionPro.Footer.Blurb')}
</p>
<article class="quick-links-container">
<ShelfTitle
title={$i18n.t('ASE.Web.AppStore.VisionPro.Footer.LinksTitle')}
/>
<navigation>
<Grid
items={Object.entries(links)}
gridType="FooterLink"
let:item
>
{@const [title, href] = item}
<a {href}>{$i18n.t(title)}</a>
</Grid>
</navigation>
</article>
<article class="disclaimer-container">
<p>
{$i18n.t('ASE.Web.AppStore.VisionPro.Footer.Disclaimer')}
</p>
</article>
</section>
</ShelfWrapper>
<style lang="scss">
@use 'ac-sasskit/modules/viewportcontent/core' as *;
@use 'amp/stylekit/core/viewports' as *;
section {
font: var(--body-tall);
}
.blurb {
flex-grow: 1;
width: 100%;
max-width: calc(viewport-content-for(xlarge) * 0.66);
margin: 40px auto 50px;
padding: 0 var(--shelfGridPaddingInline, 40px);
text-align: center;
}
.quick-links-container {
max-width: viewport-content-for(xlarge);
margin: 50px auto;
padding: 0 var(--bodyGutter);
}
a {
display: block;
padding: var(--grid-column-gap-medium) 0 var(--grid-column-gap-medium);
word-break: break-all;
font: var(--title-2);
color: var(--keyColor);
border-bottom: 1px solid var(--systemQuinary);
@media (--range-xsmall-down) {
padding: var(--grid-column-gap-xsmall) 0
var(--grid-column-gap-xsmall);
}
}
@media (--range-medium-up) {
.quick-links-container li:nth-child(n + 4) a {
border-bottom: none;
}
}
@media (--small) {
.quick-links-container li:nth-child(n + 5) a {
border-bottom: none;
}
}
@media (--range-xsmall-down) {
.quick-links-container li:last-child a {
border-bottom: none;
}
}
.disclaimer-container {
flex-grow: 1;
width: 100%;
color: var(--systemTertiary);
background-color: var(--footerBg);
}
.disclaimer-container p {
max-width: viewport-content-for(xlarge);
margin: 0 auto;
padding: 32px var(--bodyGutter, 40px);
}
</style>
|