Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions official_website/src/components/hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { getDict } from "@/i18n";

const dict = getDict(Astro.currentLocale);
const videoTitle = "是的,开源了一个NAS系统fortOS";
Comment on lines 4 to +5
---

<main class="pt-20 md:pt-28 pb-8 text-center">
Expand Down Expand Up @@ -36,14 +37,27 @@ const dict = getDict(Astro.currentLocale);
</div>
<div class="mt-14 md:mt-20 px-5">
<div class="mx-auto max-w-3xl bg-black rounded-3xl overflow-hidden">
<img
src="/images/fortos-logo-original.png"
alt="FortOS logo"
width="2208"
height="2048"
class="w-full h-auto block"
<iframe
src="https://player.bilibili.com/player.html?bvid=BV1uNuR6fETY&page=1&high_quality=1&danmaku=0&autoplay=0"
class="w-full aspect-video block"
title={videoTitle}
loading="eager"
/>
scrolling="no"
border="0"
frameborder="no"
framespacing="0"
allowfullscreen="true"
Comment on lines +45 to +49
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
></iframe>
</div>
<p class="text-center mt-4 text-slate-400 text-sm">
<a
href="https://www.bilibili.com/video/BV1uNuR6fETY"
target="_blank"
rel="noopener"
Comment on lines +54 to +57
class="text-[#2997ff] hover:underline decoration-[#2997ff] underline-offset-4">
{dict.video.watchOnBilibili} <span class="font-medium">&gt;</span>
</a>
</p>
</div>
</main>
6 changes: 6 additions & 0 deletions official_website/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export const en = {
logos: {
heading: "Built on proven open-source foundations",
},
video: {
watchOnBilibili: "Watch on Bilibili",
},
cta: {
title: "Ready to take control of your data?",
description:
Expand Down Expand Up @@ -245,6 +248,9 @@ export const zh: typeof en = {
logos: {
heading: "构建于成熟的开源技术之上",
},
video: {
watchOnBilibili: "在 B 站观看",
},
cta: {
title: "准备好掌控你的数据了吗?",
description:
Expand Down
Loading