diff --git a/bitext/src/app.d.ts b/bitext/src/app.d.ts index da08e6d..5dbe96c 100644 --- a/bitext/src/app.d.ts +++ b/bitext/src/app.d.ts @@ -10,4 +10,11 @@ declare global { } } +/** Some verification snippets use `value` instead of `content` on ``. */ +declare module 'svelte/elements' { + export interface HTMLMetaAttributes { + value?: string | undefined | null; + } +} + export {}; diff --git a/bitext/src/lib/brand.ts b/bitext/src/lib/brand.ts index ef9f8e3..8f60b55 100644 --- a/bitext/src/lib/brand.ts +++ b/bitext/src/lib/brand.ts @@ -4,6 +4,20 @@ export const ALIGNER_SITE_URL = 'https://aligner.tinygods.dev'; /** Host label for attribution text in raster/SVG exports. */ export const ALIGNER_SITE_HOST = 'aligner.tinygods.dev'; +/** Public contact for privacy, about, and similar pages. */ +export const SITE_CONTACT_EMAIL = 'dani@tinygods.dev'; + +/** User-facing product name in copy (legal/site title may differ). */ +export const ALIGNER_DISPLAY_NAME = 'Aligner'; + +/** Multiline tooltip for partner link cards; shown on “?” hint. */ +export const PARTNER_LINK_WHY_TOOLTIP = `Why is this here? + +${ALIGNER_DISPLAY_NAME} stays free and without aggressive ads. Hosting and ongoing upkeep still have a cost, so we add a few optional partner links - use them if you were already considering the service. It will help us keep the site running. The referral bonuses come from the provider. Here I recommend the services that I happily use myself. + +Thanks, +Dani`; + /** Plain attribution line (matches standalone SVG export footer text). */ export const EXPORT_ATTRIBUTION_PLAIN = `Created with ${ALIGNER_SITE_HOST}`; diff --git a/bitext/src/lib/components/partners/PartnerBannerPreply.svelte b/bitext/src/lib/components/partners/PartnerBannerPreply.svelte new file mode 100644 index 0000000..3faab80 --- /dev/null +++ b/bitext/src/lib/components/partners/PartnerBannerPreply.svelte @@ -0,0 +1,20 @@ + + + +

+ Personally, I use Preply for language learning. If you want to try an online + tutor, our link includes{' '} + 70% off the trial lesson. + We earn a small bonus if you go on to paid lessons - it helps to keep the site running. +

+
diff --git a/bitext/src/lib/components/partners/PartnerBannerRailway.svelte b/bitext/src/lib/components/partners/PartnerBannerRailway.svelte new file mode 100644 index 0000000..4fc1ce0 --- /dev/null +++ b/bitext/src/lib/components/partners/PartnerBannerRailway.svelte @@ -0,0 +1,18 @@ + + + +

+ This project is deployed on Railway. For me it works like a charm: I just add my repo and Railway builds and deploys it by itself. This link gives $20 in credits. No pressure - use if it fits your stack. +

+
diff --git a/bitext/src/lib/components/partners/PartnerBannerShell.svelte b/bitext/src/lib/components/partners/PartnerBannerShell.svelte new file mode 100644 index 0000000..03bf6b2 --- /dev/null +++ b/bitext/src/lib/components/partners/PartnerBannerShell.svelte @@ -0,0 +1,66 @@ + + +
+
+

+ {title} + + + + +

+
+ {@render children()} +
+ + {ctaLabel} + + +
+
diff --git a/bitext/src/routes/+page.svelte b/bitext/src/routes/+page.svelte index 5761214..1dbac4a 100644 --- a/bitext/src/routes/+page.svelte +++ b/bitext/src/routes/+page.svelte @@ -8,6 +8,8 @@ import SettingsPanel from '$lib/components/settings/SettingsPanel.svelte'; import ExportCard from '$lib/components/settings/ExportCard.svelte'; import ShareQuickRow from '$lib/components/share/ShareQuickRow.svelte'; + import PartnerBannerPreply from '$lib/components/partners/PartnerBannerPreply.svelte'; + import PartnerBannerRailway from '$lib/components/partners/PartnerBannerRailway.svelte'; import SeoIntro from '$lib/components/seo/SeoIntro.svelte'; import SeoSections from '$lib/components/seo/SeoSections.svelte'; import JsonLd from '$lib/components/seo/JsonLd.svelte'; @@ -160,37 +162,13 @@ class="w-full min-w-0 overflow-x-hidden px-4 pt-4 pb-8 sm:px-6 md:pt-6 md:pb-12 lg:px-10" >
-
-
-

- Word-by-word translation visualizer -

-

- See exactly which word matches which across stacked lines. Add rows for glosses or IPA if you - need them, click a word then its match on the line above or below, and export or share the - diagram—great for lessons, posts, or conlang notes. -

-

- Created by - Dani. See other - tools for linguistics and conlanging. -

-
-
@@ -490,6 +499,9 @@
+
+ +

+

Partner links

+

+ {DISPLAY_NAME} stays free and without aggressive ads. Hosting and ongoing upkeep still have a cost, so + we add a few optional partner links - use them if you were already considering the service. It will help us keep the site running. The + referral bonuses come from the provider. Here I recommend the services that I happily use myself. +

+
+ + +
+ +

Contact

+

+ Questions or feedback about {DISPLAY_NAME}:{' '} + {SITE_CONTACT_EMAIL} + · + +

+

Privacy

We do not run accounts or store your text on our infrastructure. Details on analytics, feedback, diff --git a/bitext/src/routes/privacy/+page.svelte b/bitext/src/routes/privacy/+page.svelte index 22b4578..674234f 100644 --- a/bitext/src/routes/privacy/+page.svelte +++ b/bitext/src/routes/privacy/+page.svelte @@ -1,6 +1,7 @@