Skip to content
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

Tailwind CSS で書き直す #2

Merged
merged 39 commits into from Sep 2, 2023
Merged

Tailwind CSS で書き直す #2

merged 39 commits into from Sep 2, 2023

Conversation

takusan23
Copy link
Owner

@takusan23 takusan23 commented Sep 2, 2023

タイトル通りです。Tailwind CSS移行分の差分を見れるように、Pull Request作ってみました。

Material-UI使ってた理由が、CSS書きたくないからMaterial-UIを入れた感じだったんですけど、、、、
Tailwind CSSが結構良さそうなのと、Next.jsApp Router+RSCでスタイリングを見直したほうが良いらしいので、書き直してみました。
Tailwind CSSはゼロランタイムなので表示が早くなるのかも?

Material-UIの時のコードも残してあります↓
https://github.com/takusan23/ziyuutyou-next/tree/material_ui

やったこと

  • MUI をやめて Tailwind CSS へ移行
    • ほとんどのコンポーネントがクライアントコンポーネントからサーバーコンポーネントになりました
    • 細かいアニメーションとかはなくなっちゃった
    • マテリアルアイコンとかはその都度ダウンロードしてくる必要があります
  • Twitter シェアボタンを削除し、代わりにMastodon / Misskey シェアボタンを設置しました
    • お住まいのインスタンス(サーバー)名を入れれば共有できます
    • image
    • image
  • 検索画面( API をまだ作っていない)
    • まだ作ってないので動きません
    • いつか API 作るので画面だけ先入れました(?)

@takusan23 takusan23 merged commit a58e434 into main Sep 2, 2023
1 check failed
@takusan23 takusan23 deleted the tailwind_css branch September 2, 2023 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant