Skip to content

Commit 496ac40

Browse files
committed
fix: バナーの文言とスタイルを修正
1 parent 47ed800 commit 496ac40

File tree

3 files changed

+33
-59
lines changed

3 files changed

+33
-59
lines changed

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"private": true,
3+
"version": "0.13.1",
34
"type": "module",
45
"scripts": {
56
"dev": "vite dev",

website/src/components/ui/common/SiteNoticeBanner.tsx

Lines changed: 29 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import {
22
discordServerUrl,
3+
githubOrganizationUrl,
34
githubRepositoryUrl,
45
typstOfficialDocsUrl,
6+
version,
57
} from "../../../metadata";
8+
import { InfoCircleIcon } from "../../icons";
69

710
export const SiteNoticeBanner = () => {
811
return (
@@ -36,72 +39,39 @@ export const SiteNoticeBanner = () => {
3639
>
3740
<div class="prose relative flex flex-col sm:flex-row items-start w-full px-3 sm:px-12 mx-auto max-w-7xl flex-wrap">
3841
<div class="flex flex-col sm:flex-row w-full text-xs leading-6 text-black duration-150 ease-out opacity-80 hover:opacity-100 gap-3">
39-
<span class="flex items-center flex-shrink-0">
40-
<svg
41-
class="w-4 h-4 mr-2"
42-
viewBox="0 0 24 24"
43-
fill="none"
44-
stroke="currentColor"
45-
>
46-
<title>Warning</title>
47-
<path
48-
d="M12 3L2 21h20L12 3z"
49-
stroke="currentColor"
50-
strokeWidth="1.5"
51-
/>
52-
<rect
53-
x="11"
54-
y="9"
55-
width="2"
56-
height="5"
57-
rx="1"
58-
stroke="none"
59-
fill="currentColor"
60-
/>
61-
<rect
62-
x="11"
63-
y="16"
64-
width="2"
65-
height="2"
66-
rx="1"
67-
stroke="none"
68-
fill="currentColor"
69-
/>
70-
</svg>
71-
<strong>注意 / Warning</strong>
42+
<span class="flex items-center flex-shrink-0 gap-2">
43+
<div class="w-4 h-4">
44+
<InfoCircleIcon />
45+
</div>
46+
<strong>情報 / Info</strong>
7247
</span>
7348
<span class="hidden sm:flex items-center">
7449
<span class="inline-block w-px h-12 bg-neutral-200 mx-3" />
7550
</span>
7651
<span class="block flex-1 pt-1 pb-2 leading-normal sm:inline sm:pt-0 sm:pb-0">
77-
当サイトは、
78-
<a href={typstOfficialDocsUrl}>Typst v0.13.1 公式ドキュメント</a>
79-
を、日本語コミュニティが非公式に翻訳したものです。誤訳・未訳・古い情報が含まれている可能性があるため、
80-
<a href={typstOfficialDocsUrl}>公式ドキュメント</a>
81-
との併用を推奨します。このサイトの内容に誤りを発見された方は、
82-
<a href={githubRepositoryUrl}>
83-
GitHubリポジトリまでご報告を頂けましたら幸いです
84-
</a>
85-
。我々のコミュニティにご興味のある方は、ぜひ
86-
<a href={discordServerUrl}>
87-
非公式Discordサーバー「くみはんクラブ」
52+
当サイトは、Typst GmbHの許諾を得て、日本語コミュニティ「
53+
<a href={githubOrganizationUrl}>Typst Japan Community</a>」が
54+
<a href={typstOfficialDocsUrl}>
55+
Typst v{version}の公式ドキュメント
8856
</a>
89-
にご参加ください。
57+
を翻訳したものです。誤訳や古い情報が含まれている可能性があるため、
58+
<a href={typstOfficialDocsUrl}>公式ドキュメント</a>
59+
との併用を推奨します。翻訳の改善やサイトの機能向上について、
60+
<a href={githubRepositoryUrl}>GitHub</a>でのIssueやPull
61+
Requestを歓迎します。コミュニティにご興味のある方は
62+
<a href={discordServerUrl}>Discordサーバー「くみはんクラブ」</a>
63+
にぜひご参加ください。
9064
<br />
91-
This site provides an unofficial translation of the
92-
<a href={typstOfficialDocsUrl}>Typst v0.13.1 documentation</a>
93-
by the Japanese Community. Please note that there may be some
94-
inaccuracies, untranslated sections or outdated information. We
95-
highly recommend referring to
96-
<a href={typstOfficialDocsUrl}>the latest official documentation</a>
97-
as well. If you find any errors in the content,
98-
<a href={githubRepositoryUrl}>
99-
please let us know through our GitHub repository.
100-
</a>
101-
If you are interested in our community, feel free to join
102-
<a href={discordServerUrl}>
103-
our unofficial Discord server, "Kumihan Club."
104-
</a>
65+
This site provides a Japanese translation of the{" "}
66+
<a href={typstOfficialDocsUrl}>Typst v{version} documentation</a>{" "}
67+
maintained by the "
68+
<a href={githubOrganizationUrl}>Typst Japan Community</a>" with
69+
permission from Typst GmbH. We recommend using this alongside the{" "}
70+
<a href={typstOfficialDocsUrl}>official documentation</a>. We
71+
welcome contributions through Issues and Pull Requests on{" "}
72+
<a href={githubRepositoryUrl}>our GitHub repository</a> for both
73+
translation improvements and website enhancements. Feel free to join{" "}
74+
<a href={discordServerUrl}>our Discord server "Kumihan Club"</a>.
10575
</span>
10676
</div>
10777
</div>

website/src/metadata.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import { version } from "../package.json";
2+
3+
export { version };
14
export const typstOfficialUrl = "https://typst.app";
25
export const typstOfficialDocsUrl = "https://typst.app/docs";
36
export const githubOrganizationUrl = "https://github.com/typst-jp";

0 commit comments

Comments
 (0)