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

Add christmas layout #18

Merged
merged 7 commits into from Dec 12, 2021
Merged

Add christmas layout #18

merged 7 commits into from Dec 12, 2021

Conversation

anneau
Copy link

@anneau anneau commented Dec 12, 2021

概要

クリスマスということで @kanoi-y さんが雪を降らせてくれたようなので、僕は少し飾り付けをしたいと思います。

スクショ

image

やったこと

  • クリスマスレイアウトの追加
    • lottieというライブラリを使い、アニメーション動作する「サンタ」、「ツリー」、「ドアに飾るやつ」を表示するように

工夫したこと

  • クリスマスレイアウトをつけたくない人もいると思うので、_app.tsxで読み込むのではなく、各ページでgetChristmasLayoutを呼び出すと表示されるようにしました。
  • lottieファイルをダウンロードしてくる必要はなく、Next.js v12 で使えるようになった、url importを用いています
  • 文字と被ると見にくくて怒られるかもしれないので、ドラッグできるようにしました

@vercel
Copy link

vercel bot commented Dec 12, 2021

Someone is attempting to deploy a commit to a Personal Account owned by @TeXmeijin on Vercel.

@TeXmeijin first needs to authorize it.

@TeXmeijin TeXmeijin merged commit b0ec23b into TeXmeijin:main Dec 12, 2021
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

2 participants