Skip to content

Commit

Permalink
Add i18n copy
Browse files Browse the repository at this point in the history
  • Loading branch information
lmuntaner committed Jul 2, 2024
1 parent 07aa985 commit 685ce1c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions src/frontend/src/components/landingPage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"en": {
"title": "Secure, seamless & privacy-preserving digital identity",
"subtitle": "Internet Identity is a decentralized identity solution running end-to-end on the Internet Computer blockchain."
}
}
14 changes: 7 additions & 7 deletions src/frontend/src/components/landingPage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { I18n } from "$src/i18n";
import { html, TemplateResult } from "lit-html";
import { navigationLink } from "./footer";
import { githubIcon, icLogo, questionIcon } from "./icons";
import copyJson from "./landingPage.json";

/**
* Landing page template
Expand All @@ -16,6 +18,9 @@ export const landingPage = ({
}: {
slot: TemplateResult;
}): TemplateResult => {
const i18n = new I18n();
const copy = i18n.i18n(copyJson);

return html` <main class="c-landingPage">
<div class="c-landingPage__logo">
<div class="c-logo">${icLogo}</div>
Expand All @@ -27,13 +32,8 @@ export const landingPage = ({
</section>
<section class="c-landingPage__left">
<div class="c-landingPage__left__content">
<h1 class="t-title t-title--main">
Secure, seamless & privacy-preserving digital identity
</h1>
<p class="t-paragraph">
Internet Identity is a decentralized identity solution running
end-to-end on the Internet Computer blockchain.
</p>
<h1 class="t-title t-title--main">${copy.title}</h1>
<p class="t-paragraph">{${copy.subtitle}}</p>
</div>
<div class="c-landingPage__left__footer">
${navigationLink({
Expand Down

0 comments on commit 685ce1c

Please sign in to comment.