HP細部のデザイン修正#127
Open
hengin-eer wants to merge 8 commits into
Open
Conversation
🩺 React Doctor |
Contributor
There was a problem hiding this comment.
Pull request overview
Issue #114 の指示に合わせて、トップページ/フッター周りのテキストスタイル・余白・背景画像の見え方を微調整するPRです。
Changes:
text-text→text-textbなど、テキストの太さ(font-weight)を中心にタイポグラフィトークンを更新- お知らせ(NewsItem)の要素間余白を調整(特に日付⇄タイトル間)
- スマホ表示のお知らせ枠のY方向paddingを
py-lに変更し、スマホ用背景画像にopacity-80を付与
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/modules/top/ui/LogoInfo.tsx | ロゴ紹介欄の本文テキストを text-textb に変更 |
| src/modules/top/TopPageView.tsx | お知らせ枠のスマホpadding調整、スマホ背景画像の不透明度を変更 |
| src/components/ui/NewsItem.tsx | 日付-タイトル間の余白を含むレイアウト調整 |
| src/components/ui/ImportantFrame.tsx | 重要なお知らせの見出し/本文トークン変更、shadow色変更 |
| src/components/layout/Footer.tsx | フッター内の該当テキストを text-textb に変更 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| export default function ImportantFrame({ title, children }: ImportantFrameProps) { | ||
| return ( | ||
| <div className="w-full border-y-[1.4px] border-main bg-base-dark py-l shadow-[0px_2px_6px_0px_var(--color-base)] md:px-pl md:py-3l"> | ||
| <div className="w-full border-y-[1.4px] border-main bg-base-dark py-l shadow-[0px_2px_6px_0px_#111D53] md:px-pl md:py-3l"> |
Member
Author
There was a problem hiding this comment.
これはハードコートするんじゃなくて、CSS変数を使えってことなんだろうけど...
styleで実装提案されているのは#111D53のCSS変数が定義されていないこと前提?だと思われるので、一旦style.cssをチェックしてみる
Member
Author
There was a problem hiding this comment.
@TkymHrt
style.cssに新たにスタイルを追加することで解決しました。
--color-shadow: ...としたので、tailwindでbox-shadowを書くときにshadow-shadowとなってしまうのでレビューして欲しいです。
ちなみにこの#111D53を使っている実装は現時点でここだけでした。
同時にFigmaでVarientに指定してもらえると助かります。
⚡️ Lighthouse CI Results
|
text-button に既に line-height のスタイルが 含まれているので
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.
概要
テキストの太さや余白などデザインの軽微な修正を行いました
変更点
関連Issue
スクリーンショット(UI変更がある場合)
重要なお知らせ
shadowは確認し辛いのでコードベースで確認して頂くのがいいかもしれないです
動作確認手順
レビューしてほしいポイント
gap-ssでレイアウト組んでいたのをやめてmargin-topによるレイアウトに変更しましたmt-ssとしていますセルフチェックリスト