Skip to content

Commit 08dbdf8

Browse files
committed
translates /about (closes #47)
1 parent 26de80b commit 08dbdf8

File tree

6 files changed

+75
-45
lines changed

6 files changed

+75
-45
lines changed

src/components/pages/About.astro

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
import AsyncIframe from '@components/AsyncIframe.astro';
3+
import { LinkButton } from '@astrojs/starlight/components';
4+
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
5+
6+
const { t } = Astro.locals;
7+
---
8+
9+
<StarlightPage frontmatter={{ title: t`about.title`, description: t`about.description` }}>
10+
<h2>{ t`about.video` }</h2>
11+
12+
<br/>
13+
14+
<a href="/video/propromo.mp4" download>
15+
<video width="1920" height="1080" autoplay loop muted controls poster="/img/thumbnail.png" style="object-fit: cover;">
16+
<source src="/video/propromo.mp4" type="video/mp4"></source>
17+
Your browser does not support the video tag.
18+
</video>
19+
</a>
20+
21+
<div style="display: flex; justify-content: space-between;">
22+
<a href="https://propromo.netlify.app/7" target="_blank">{ t`about.learn_more` }</a>
23+
<a href="/video/propromo.mp4" download>{ t`about.download_video` }</a>
24+
</div>
25+
26+
<hr />
27+
28+
<h3>{ t`about.presentation` }</h3>
29+
30+
<AsyncIframe>
31+
<iframe
32+
src="https://propromo.netlify.app"
33+
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"
34+
frameborder="0"
35+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
36+
allowfullscreen>
37+
</iframe>
38+
</AsyncIframe>
39+
40+
<LinkButton
41+
href="https://propromo.netlify.app"
42+
target="_blank"
43+
variant="secondary"
44+
icon="external"
45+
iconPlacement="start"
46+
>
47+
{ t`about.learn_more` }
48+
</LinkButton>
49+
</StarlightPage>

src/content/docs/about.mdx

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/content/i18n/de.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
{
2+
"about": {
3+
"title": "Was ist Propromo?",
4+
"description": "\"Project Progress Monitoring.\" Teilen Sie Ihren Projektfortschritt mit Kunden. Ihr Kunde möchte eingebunden werden. Propromo macht es möglich.",
5+
"learn_more": "Mehr erfahren.",
6+
"download_video": "Video herunterladen.",
7+
"video": "Video",
8+
"presentation": "Präsentation"
9+
}
210
}

src/content/i18n/en.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
{
2+
"about": {
3+
"title": "What is Propromo?",
4+
"description": "\"Project Progress Monitoring.\" Share your project progress with clients. Your client wants to be involved. Propromo makes it possible.",
5+
"learn_more": "Learn more.",
6+
"download_video": "Download video.",
7+
"video": "Video",
8+
"presentation": "Presentation"
9+
}
210
}

src/pages/about.astro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
import About from '@components/pages/About.astro';
3+
---
4+
5+
<About />

src/pages/en/about.astro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
import About from '@components/pages/About.astro';
3+
---
4+
5+
<About />

0 commit comments

Comments
 (0)