Skip to content

Commit 533144b

Browse files
committed
Use marked to finish localizing the About page
Added a link to Daniru's Twitter as well.
1 parent b9873a1 commit 533144b

File tree

4 files changed

+23
-33
lines changed

4 files changed

+23
-33
lines changed

package-lock.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"type": "module",
4040
"dependencies": {
4141
"daisyui": "^2.46.0",
42+
"marked": "^5.1.0",
4243
"sveltekit-i18n": "^2.2.2"
4344
}
4445
}

src/lib/lang/en/about.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
"pagename": "About",
33
"header": "About",
44
"watsonindustrieslogo.alttext": "Watson Industries logo",
5-
"description": ""
5+
"description": "Watson Industries was founded on **Amelia's Birthday, January 6th**, and is the embodiment of the best parts of Ame, TeaMates, and Investigators:\n- creativity\n- talent\n- innovation\n- humor\n\nThe website is a living, non-profit open source project and is open to contributions.\n<br/><br/>\nWatsonIndustries.live is a fan project dedicated to [Amelia Watson](https://hololive.hololivepro.com/en/talents/watson-amelia/) of HololiveEN and is not associated with Cover Corp or Hololive Productions in any way. The project falls under the [Fan Work Guidelines](https://en.hololive.tv/terms).",
6+
"featured.header": "Want your content featured here?",
7+
"featured.description": "A process will come soon, for now you can simply DM [@DaniruKun on Twitter](https://twitter.com/danirukun)."
68
}

src/routes/about/+page.svelte

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
pagename: $t("about.pagename")
1414
} as any // TS moment
1515
);
16+
17+
import { parse } from "marked";
1618
</script>
1719

1820
<svelte:head>
@@ -29,41 +31,14 @@
2931
/>
3032
</div>
3133

32-
<div class="mx-8 sm:mx-80 md:mx-32 text-xl">
33-
<p>
34-
<br />
35-
Watson Industries was founded on
36-
<strong>Amelia's Birthday, January 6th</strong>, and is the
37-
embodiment of the best parts of Ame and TeaMates and Investigators:
38-
</p>
39-
<ul class="list-disc px-6 my-4">
40-
<li>creativity</li>
41-
<li>talent</li>
42-
<li>innovation</li>
43-
<li>humor</li>
44-
</ul>
45-
<p>
46-
The website is a living, non-profit open source project and is open
47-
to contributions.
48-
</p>
49-
<br />
50-
WatsonIndustries.live is a fan project dedicated to
51-
<a
52-
href="https://hololive.hololivepro.com/en/talents/watson-amelia/"
53-
class="underline">Amelia Watson</a
54-
>
55-
of HololiveEN and is not associated with Cover Corp or Hololive Productions
56-
in any way. The project falls under the
57-
<a href="https://en.hololive.tv/terms" class="underline"
58-
>Fan Work Guidelines</a
59-
>.
34+
<div class="mx-8 sm:mx-80 md:mx-32 text-xl [&>ul]:list-disc [&>ul]:px-6 [&>ul]:my-4 [&>p>a]:underline">
35+
{@html parse($t("about.description"))}
6036
</div>
6137

6238
<h2 class="text-center text-4xl font-bold font-norwester">
63-
Want your content featured here?
39+
{$t("about.featured.header")}
6440
</h2>
65-
<p class="text-center mx-8 text-xl">
66-
A process will come soon, for now you can simply DM @DaniruKun on
67-
Twitter.
41+
<p class="text-center mx-8 text-xl [&>p>a]:underline">
42+
{@html parse($t("about.featured.description"))}
6843
</p>
6944
</div>

0 commit comments

Comments
 (0)