-
Notifications
You must be signed in to change notification settings - Fork 14
feat: Hono JSXによる静的サイトのUIを刷新 #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refreshes the UI of the static site using Hono JSX by introducing new dependencies (Tailwind CSS, Alpine.js, Biome) and updating various components and assets.
- Updated CategoryTemplate to replace dangerouslySetInnerHTML with a dedicated HtmlContent component and adjust list item layout.
- Added numerous SVG icon components for a more consistent UI.
- Removed legacy CSS, scripts, and asset files while updating dependency versions and configuration files.
Reviewed Changes
Copilot reviewed 74 out of 74 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| website/src/components/templates/CategoryTemplate.tsx | Updated template using HtmlContent and improved list markup. |
| website/src/components/icons/* | Added new SVG icon components with accessible titles. |
| website/public/styles/custom.css | Legacy custom styles removed. |
| website/public/scripts/analytics.js | Legacy analytics script removed. |
| website/public/assets/site.webmanifest & index2ja.json | Removed legacy asset files. |
| website/package.json, website/biome.json, website/.editorconfig | Updated dependency versions and project configuration. |
|
@3w36zj6
こちらの確認方法としては、ブラウザで横幅を変えてみて様子を見るという対応でよろしいでしょうか?狭くするとサイドメニューが閉じてくれる挙動を確認しました。問題ないと考えています。
こちらは「ないことの確認」は難しいのですが、以下の変更を確認しました。
その他に変えたところなどありましたら、教えていただければ確認いたします。 以降、別RPでの対応でも問題ないかと思いますがコメントいたします。 初回だと「情報 / info」がページの上部を覆ってしまうのですが、設計の意図として正しいでしょうか? 新仕様だと、以下の点が気になりました。
スマホでも確認してみようと思ったのですが、うまくいきませんでした。具体的には、同一ネットワークに接続して |
そちらの対応で問題ありません。
|
ページを移動する度に警告が表示されるのは煩わしいと感じたので、Web Storage APIでバナーを閉じるボタンを押したことを記録し、同じ閲覧環境ではバナーが表示されないように実装しました。階層的に表示するようにしたことで以前よりも邪魔に感じやすくなっていますが、2回目以降は表示されないので利便性の問題はないと考えています。 2回目以降はバナーが出ない旨を明示する、あるいは、「閉じるを押してから24時間以内では再度表示しない」のように時限式にするなどの対応もありえると思います。 |
|
同一ネットワークの別端末から閲覧ができない件ですが、他の言語やフレームワークによる開発サーバーはアクセス可能で、Viteの開発サーバーへのアクセスのみができない場合は次の記事が参考になるかもしれません。 https://inoino-web.com/tech-blog/2025/2/26/accessFromAnotherHostInLocalNetwork |
ありがとうございます。Typstアイコンはここですね。
とありますね。問題ないと思います。非常に細かいことを言うとOFLのライセンス文はなくてよいのですかね? 参考までにお聞きしたいのですが、Typstロゴについてはどこにありますでしょうか? |
|
静的ファイルとして同梱しているフォントファイルのライセンスを追加しました。 typst-jpのロゴはmkpoliさんがOrganizationのアイコン用に作成したものをそのまま流用していて、これは厳密にはライセンスが未定義です。 |
|
ご対応いただきありがとうございました。
著作権は @mkpoli さんにあるので、このOrganizationで使う分には外部から見ても問題ないと思います。 |
マージ後ではありますが、こちらでスマホでの表示も確認できました。vite.config.tsの いただいた記事のほうにも
と書いてあり、スマホでの確認も頻度が高いわけではないため、コードへの追記は不要かと思います。 |


cf. https://github.com/typst-jp/typst-jp.github.io/issues/54
変更点
依存関係
機能
確認事項
website/に本家リポジトリ及びそれによる生成物以外のhttps://typst.appから取得されたアセットが含まれていない確認方法
cd website/で新Webサイトのプロジェクトのルートに移動するbun install --frozen-lockfileで依存関係をインストールするbun run buildで静的サイトをdist/にビルドするbun run previewでdist/の生成物をプレビューするWebサーバーを起動するhttp://localhost:4173/を開くこのPRで対応しないタスク