Repository navigation
トップページに当日のスライドを埋め込む - #23
Merged
Merged
Conversation
Googleスライド(ウェブに公開)を埋め込むSlideEmbedコンポーネントを追加し、 日本語版・英語版のトップページに「当日のスライド」の節を置いた。URLは他の イベントURLと同じくconsts.tsにまとめている。 生の960x569のiframeはスマホで横にはみ出すため、aspect-ratioで横幅に追従 させた。埋め込みが表示されない環境向けに、pubembedをpubに差し替えた全画面 表示へのリンクを下に添えている。 あわせて、サイドバーと重複していた「セットアップ」「何を作るか迷ったら」 「参考」の3節(LinkCardの並び)をトップページから削除した。各ページには サイドバーとヒーローのボタン、「持ち物・セットアップ」カード内のリンクから 辿れる。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
トップページ(日本語版・英語版)に、当日使うGoogleスライドを埋め込みました。あわせて、サイドバーと内容が重複していた目次相当の3節を削除しています。
変更内容
当日のスライドの埋め込み
src/components/SlideEmbed.astroを追加。Googleスライドの「ウェブに公開」で得られる.../pubembed?...のURLを受け取って埋め込みますwidth="960" height="569"だとスマホで横にはみ出すため、aspect-ratio: 960 / 569で横幅に追従させていますpubembedをpubに差し替えた全画面表示へのリンクを下に添えていますloading="lazy"付きsrc/consts.tsのSLIDES_EMBED_URLにまとめました目次相当の節の削除
トップページから以下の3節(LinkCardの並び)を削除しました。同じリンクがサイドバーにあり、重複していたためです。
## セットアップ— アカウント作成/APIクレジット/APIキー/インストール/初回起動## 何を作るか迷ったら— 作例集へのリンク## 参考— 利用上限とコスト/困ったときは/アンケート各ページへはサイドバー、ヒーローの「セットアップを始める」ボタン、「持ち物・セットアップ」カード内のリンクから引き続き辿れます。
確認したこと
bun buildが通ること(39ページ)astro dev+ Chromeで、日本語版トップページにスライド1枚目が表示され、ページ送りが動くこと🤖 Generated with Claude Code