Compare commits
No commits in common. "0712cc28284e0e1899d57f89a8de139923c433ab" and "8219607c5a7f07a8338954ee3082e8ac30f4ec0e" have entirely different histories.
0712cc2828
...
8219607c5a
7 changed files with 4 additions and 99 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "embroidery-viewer",
|
"name": "embroidery-viewer",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "3.0.2",
|
"version": "3.0.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|
|
||||||
|
|
@ -1,69 +0,0 @@
|
||||||
<script>
|
|
||||||
import { t } from '$lib/translations';
|
|
||||||
|
|
||||||
const trackEvent = () => {
|
|
||||||
// @ts-ignore
|
|
||||||
window.hk?.event?.('install_now');
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div class="bar">
|
|
||||||
<div class="content">
|
|
||||||
<p>
|
|
||||||
{$t('announcement.message')}
|
|
||||||
<a
|
|
||||||
href="https://play.google.com/store/apps/details?id=xyz.embroideryviewer.android"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
class="cta"
|
|
||||||
onclick={trackEvent}
|
|
||||||
>
|
|
||||||
{$t('announcement.cta-text')}
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.bar {
|
|
||||||
width: 100%;
|
|
||||||
background: #06345f;
|
|
||||||
color: white;
|
|
||||||
font-size: 0.95rem;
|
|
||||||
z-index: 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
max-width: 1200px;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 0.6rem 1rem;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 0;
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cta {
|
|
||||||
margin-left: 0.5rem;
|
|
||||||
font-weight: 600;
|
|
||||||
text-decoration: underline;
|
|
||||||
color: #ffffff;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cta:hover {
|
|
||||||
opacity: 0.85;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
|
||||||
.content {
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: flex-start;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 45px 30px 10px 100px;
|
padding: 10px 30px 10px 100px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -212,20 +212,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1159px) {
|
|
||||||
header {
|
|
||||||
padding-top: 70px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
header {
|
header {
|
||||||
padding: 110px 20px 10px 20px;
|
padding: 10px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu {
|
#menu {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
top: -110px;
|
top: -80px;
|
||||||
margin: 0px 0 0 0;
|
margin: 0px 0 0 0;
|
||||||
right: -20px;
|
right: -20px;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"message": "🚀 Embroidery Viewer is now on Android — view your designs anywhere, customize thread & background colors.",
|
|
||||||
"cta-text": "Install now"
|
|
||||||
}
|
|
||||||
|
|
@ -167,16 +167,6 @@ const config = {
|
||||||
key: 'mobile',
|
key: 'mobile',
|
||||||
loader: async () => (await import('./en-US/mobile.json')).default,
|
loader: async () => (await import('./en-US/mobile.json')).default,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
locale: SUPPORTED_LOCALES.PT_BR,
|
|
||||||
key: 'announcement',
|
|
||||||
loader: async () => (await import('./pt-BR/announcement.json')).default,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
locale: SUPPORTED_LOCALES.EN_US,
|
|
||||||
key: 'announcement',
|
|
||||||
loader: async () => (await import('./en-US/announcement.json')).default,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"message": "🚀 Embroidery Viewer agora está no Android — visualize seus designs em qualquer lugar, personalize as cores das linhas e do fundo.",
|
|
||||||
"cta-text": "Instale agora"
|
|
||||||
}
|
|
||||||
|
|
@ -9,7 +9,6 @@
|
||||||
import Header from '$lib/components/Header.svelte';
|
import Header from '$lib/components/Header.svelte';
|
||||||
import Footer from '$lib/components/Footer.svelte';
|
import Footer from '$lib/components/Footer.svelte';
|
||||||
import Analytics from '$lib/components/Analytics.svelte';
|
import Analytics from '$lib/components/Analytics.svelte';
|
||||||
import AnnouncementBar from '$lib/components/AnnouncementBar.svelte';
|
|
||||||
|
|
||||||
let { children } = $props();
|
let { children } = $props();
|
||||||
|
|
||||||
|
|
@ -25,7 +24,6 @@
|
||||||
<Analytics />
|
<Analytics />
|
||||||
|
|
||||||
{#if mounted}
|
{#if mounted}
|
||||||
<AnnouncementBar />
|
|
||||||
<Header />
|
<Header />
|
||||||
<main>
|
<main>
|
||||||
{@render children()}
|
{@render children()}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue