Skip to content

Conversation

@kagomen
Copy link
Member

@kagomen kagomen commented Mar 27, 2024

概要

  • レスポンシブデザインの実装
  • アバウトセクションの文章の編集
  • その他細かなスタイルの変更など

関連するIssue

closed #64

その他

参考

#134

残課題

  • コードのリファクタリング
    • リスト部分をmap()で書き換えるか、コンポーネント化したい
    • その他にもやるべきところがあれば!
  • Tailwind CSSのサイズの使用についての確認
    • 通常のCSSだと8の倍数(細かく調整したい場合は4の倍数)を基準にpxを指定していくが、Tailwindを用いた場合はどうするのか?を確認したい
      • 個人的には、既にTailwind側がそのような数値になるよう調整してくれているので、好きな数値を使っていいと思っていた!
      • また、大きな数値はm-64などとするより[--px]の方がわかりやすいと思っているが、そのあたりの認識のすり合わせもしたい!

Copy link
Collaborator

@pss-aileen pss-aileen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

プルリク作成ありがとうございました!
確認しました!

SP、タブレットでのデザインの変更(要素の移動や背景色の変更など)は @kagomen さんが実装してくださった感じで良いかと思います!

いくつか気になる点があったので、レビューで記載しています!
ご確認よろしくお願いいたします!🙇‍♀️

src/app/page.tsx Outdated
<div className="flex-1">
<p className="inline-block bg-zinc-100 px-4 py-2">
<section className=" mx-auto max-w-2xl px-6 lg:flex lg:h-screen lg:max-w-7xl lg:items-center lg:justify-center lg:gap-10">
<div className="mt-[80px] lg:mt-[100px] lg:flex-1">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PC: ヒーロエリアのテキストと画像のズレ

テキストが下がって、画像が上に上がっているので
この mt-[80px] あたりを削ると上下中央良い感じにそろうかなと思いました。

スクリーンショット 2024-03-28 1 26 20

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

気付きませんでした💦ありがとうございます……!✨

src/app/page.tsx Outdated
<AutoAwesomeRoundedIcon className="text-[120px] mb-4 text-yellow-300" />
</div> */}
<div className="hidden lg:inline-block lg:flex-[0.4]">
<img
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Octcat

Discordでも話があがっていましたが、一旦なしで良いかなと思います🙇‍♀️

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

了解です!
Octocatの代わりに何か画像入れた方が良いと思いますか?

それと、リスト番号のアイコンについてもご意見伺いたいです!

個人的に今のアイコン微妙だなと思うのですが、Aileenさんはどう思われますか?
Material Iconsで番号のアイコンを探すと1~9まで数字があるものが今使用してるものしかないのです……。
最初から選択肢の多いreact-iconsを導入しておけばよかったなあと思っているのですが……。
参考 #86 (comment)

そして、

  • そもそもアイコン要らない
  • 数字アイコンではなく、例えば⭐️などの記号アイコンにしたらコードの記述量も減る
  • なんならアイコンではなく絵文字だったら一番楽

と考えると、わけがわからなく・・・😵

あと、きっとtailwindで番号にのみスタイルつける方法もありますよね(こちら未調査です)
もしご意見あれば伺いたいです……!!🙏

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

参考:react-iconsで使える数字一覧
https://react-icons.github.io/react-icons/search/#q=number

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

色々悩んだのですが、
Discordでみなさんのメッセージを確認しつつ、
ポップにしていくと実装で悩みが生じそうなので
原点に戻って?、
シンプルに

#70 (comment)

こちらのデザインをそのままレスポンシブ対応で良いのかな?と思いました。

コーディングしながらデザイン考えるのは個人的に楽しくて好きなのですが
効率面を考えるとかなり時間を要してしまうので
カンプがない現状で、とりあえず完成に近づけるのであれば↑が良いのかなと思います...!

自分でも作ってみよう〜と思って #134 を作ったりはしましたが、
こちらは「こんな感じのアイディアも浮かびました〜!」といった感じなので
一旦無視していただいて....!

今回はレスポンシブ対応するといったことが目的なので、そちらに焦点をあてていく方向で良いかなと!

Copy link
Member Author

@kagomen kagomen Mar 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#134 確認しました!めちゃくちゃ素敵です!!!
絵文字もこんな感じで使ってあげたら立派なデザインになるんですね👀✨

シンプルにこちらのデザインをそのままレスポンシブ対応で良いのかな?と思いました。

たしかにそうですね……!
こちらのイシューの本筋がレスポンシブ対応であることを忘れてました。
懸念点があれば残課題にすべきですね。

既に修正した分もあるので、#134 を参考にさせてもらいつつ、合わせてプルリク出そうと思います!

感謝感謝です…!

src/app/page.tsx Outdated
className="w-full"
/>
</div>
<p className="mx-auto mb-10 mt-5 rounded-sm bg-stone-200 px-4 py-2 text-center lg:hidden">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8px、16pxの倍数であわせていくと綺麗になるかも!

あとすごく細かくて申し訳ないのですが、
ご存知かもしれませんが
Webサイトのデザインは8、16倍で作ると良い感じになる!といった考え方があります!
なので、mt-2(8px)、mt-4(16px)、mt-6(24px)、mt-8(32px)あたりで統一して作っていくと良いのかなと思います。

ただ、最終的には好みになると思うので10、20の倍数でも良いかとおもいます!
どこかで統一が必要だと思うので一応メモをかねて共有です🙇‍♀️

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

了解です!✨

<html lang="ja">
<body className={`${inter.variable} ${notojp.variable} `}>
<body
className={`${inter.variable} ${notojp.variable} bg-stone-100 text-stone-800`}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

背景色はグレーで良いと思います🙆

背景色白になることに関しては、個人的にあまり気にならなかったので、グレーでなくても良いかな?と思いました!
ただ、真っ白より目にやさしい気がするのでグレーでも良いかも...!!!
なのでそのままでOKです✨

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

気にならないのであれば、グレーじゃなくて良いかもです……!笑
自分もどっちでも良いです……!(とりあえずそのままにしときます!)

src/app/page.tsx Outdated
<section className=" pb-2 md:bg-red-600 md:p-10 md:pb-0">
<div className="rounded-xl bg-stone-100 px-5 pb-10 md:p-20 md:pt-8">
<h2 className="rounded-sm bg-red-600 p-4 text-center text-xl font-bold tracking-tighter text-white md:bg-transparent md:pt-10 md:text-3xl md:text-red-600">
簡単7ステップでコントリビューション!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

READMEの目次を反映

README
READMEのステップ数と違うので、READMEに合わせた方が良いのかな?と思いました。
READMEのほうも、9ステップと書いてありましたが、実際の目次を見ると8ステップなので、こちらも修正が必要かも...!

Copy link
Member Author

@kagomen kagomen Mar 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こちら別タスクに切り分けるつもりでした!
でもREADMEの内容もほぼ確定してますし、一緒にしても良さそうですね✨

READMEのほうも、9ステップと書いてありましたが、実際の目次を見ると8ステップなので、こちらも修正が必要かも...!

Finishを1ステップとしてカウントするかどうかって感じですかね……?!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

スクリーンショット 2024-03-28 19 46 55

一応お尋ねなのですが、@kazzyfrog さん、READMEの画像↑9つのステップというのはFinishを含めたものでしょうか?
目次にはFinishはステップとして数えられていなかったので8で良いかと思ったのですが....🕵️

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9つのステップというのはFinishを含めたものでしょうか?

おっしゃる通り、Finishを含めたつもりでした!
確かに、わかりづらかったです🙏

以下のような表記の方が、自然な流れですかね?

  • Step9: メインプロジェクトにマージされます 🎉
  • Step9: Finish 🎉

もしくは、マージ(Finish)は、ステップから外して、8ステップにしても良いと思います!

src/app/page.tsx Outdated
<section className=" pb-2 md:bg-red-600 md:p-10 md:pb-0">
<div className="rounded-xl bg-stone-100 px-5 pb-10 md:p-20 md:pt-8">
<h2 className="rounded-sm bg-red-600 p-4 text-center text-xl font-bold tracking-tighter text-white md:bg-transparent md:pt-10 md:text-3xl md:text-red-600">
簡単7ステップでコントリビューション!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

タブレット: 見出しの最大横幅

タブレットでここの見出しが左右に飛び出していっているので、
ヘッダーの最大横幅に合わせるとより綺麗になると思いました!

スクリーンショット 2024-03-28 1 43 33

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます。了解です!✨

src/app/page.tsx Outdated
</ol>
<div className="mb-16 text-center text-2xl font-bold leading-relaxed">
<p className="mb-8 text-4xl text-red-600">⬇︎</p>
<div className="mx-auto max-w-2xl max-w-md md:flex md:max-w-4xl md:items-center md:justify-center md:gap-10">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

タブレット: 要素の幅に合わせられる w-fit

リストの大きさを把握して、中央揃えにしたい場合は
w-fit を使うと、リストの内容に合わせて横幅が変わってくれるので、こちらを ul に設定すると良いかもしれません!

Width - Tailwind CSS

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!確認してみます🙏✨

@kagomen
Copy link
Member Author

kagomen commented Mar 28, 2024

確認お願いします🙇
Aileenさんのデザインを参考に、リストの数字部分をSTEP nとして改行させ、横幅に余裕ができたので、PC版の赤枠のデザインをスマホ版でもそのまま流用することができました。どうでしょうか?
上記のため、背景色も薄いグレーから白に戻しました。(記述量もこちらの方が少ないので!)

localhost_3000_(iPhone SE)
screencapture-localhost-3000-2024-03-29-03_25_18

@kagomen
Copy link
Member Author

kagomen commented Mar 28, 2024

最終的に、リスト部分をコンポーネント化したいです……!

@kazzyfrog
Copy link
Member

お疲れ様です!!
細かいコミット、スクショまで助かります!!!👍

見た感じ、レスポンシブ画面も、PCのアバウトセクションもめっちゃ良いと思います!

細かいCSS系の調整や、リスト部分などのコンポーネント化は、
別のタスクとして後に回しても良さそうですね!

Copy link
Collaborator

@pss-aileen pss-aileen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

実装ありがとうございます!!
すごくすごく良いと思います✨!!

こちらでいきましょう🙆‍♀️

どんどん形になってきて楽しい〜🕺

@pss-aileen pss-aileen marked this pull request as ready for review March 29, 2024 01:39
@pss-aileen
Copy link
Collaborator

あ、勝手にDraftから変更しちゃいましたが、こちらマージでよければ @kagomen さんよろしくお願いします!!

@kagomen
Copy link
Member Author

kagomen commented Mar 29, 2024

お二人ともありがとうございます!🙏
これからプルリク文を編集したのち、マージします!

@kagomen kagomen merged commit 2fdf550 into main Mar 29, 2024
@kagomen kagomen deleted the style/#64_add_responsive_design branch March 29, 2024 06:25
@kagomen kagomen changed the title レスポンシブ対応(確認用) レスポンシブデザインの実装 Mar 29, 2024
@kazzyfrog kazzyfrog added Type: 🎨 style スタイル(見た目)に関するもの Type: ✨ feat 新機能の作成に関するもの and removed Type: 🎨 style スタイル(見た目)に関するもの labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: ✨ feat 新機能の作成に関するもの

Projects

None yet

Development

Successfully merging this pull request may close these issues.

レスポンシブ対応する

4 participants