From bce557cc2dc767628bed6aac87301a1be7c5431b Mon Sep 17 00:00:00 2001
From: rxliuli <rxliuli@gmail.com>
Date: Tue, 4 Nov 2025 05:03:50 +0800
Subject: init commit

---
 src/components/structure/Footer.svelte | 47 ++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 src/components/structure/Footer.svelte

(limited to 'src/components/structure/Footer.svelte')

diff --git a/src/components/structure/Footer.svelte b/src/components/structure/Footer.svelte
new file mode 100644
index 0000000..ceabfec
--- /dev/null
+++ b/src/components/structure/Footer.svelte
@@ -0,0 +1,47 @@
+<script lang="ts">
+    import { getI18n } from '~/stores/i18n';
+    import Footer, {
+        type Translate,
+    } from '@amp/web-app-components/src/components/Footer/Footer.svelte';
+    import LocaleSwitcherButton from '@amp/web-app-components/src/components/buttons/LocaleSwitcherButton/LocaleSwitcherButton.svelte';
+    import { items } from '~/constants/footer-items';
+    import { getLocale } from '~/utils/locale';
+    import {
+        regions,
+        languages,
+        storefrontNameTranslations,
+    } from '~/utils/storefront-data';
+
+    const i18n = getI18n();
+    const locale = getLocale();
+
+    const translate: Translate = (key, options) => $i18n.t(key, options);
+</script>
+
+<section class="footer-container">
+    <Footer footerItems={items} translateFn={translate}>
+        <LocaleSwitcherButton
+            slot="secondary-content"
+            translateFn={translate}
+            {regions}
+            {languages}
+            {locale}
+            {storefrontNameTranslations}
+            defaultRoute="iphone/today"
+        />
+    </Footer>
+</section>
+
+<style lang="scss">
+    @use 'ac-sasskit/modules/viewportcontent/core' as *;
+    @use 'amp/stylekit/core/viewports' as *;
+
+    .footer-container {
+        background-color: var(--footerBg);
+    }
+
+    .footer-container :global(footer) {
+        max-width: calc(viewport-content-for(xlarge));
+        margin: 0 auto;
+    }
+</style>
-- 
cgit v1.2.3

