Skip to content

ホーム画面を編集#12

Merged
tknkaa merged 2 commits intomainfrom
createHome
Mar 9, 2026
Merged

ホーム画面を編集#12
tknkaa merged 2 commits intomainfrom
createHome

Conversation

@Endo-Yuanteng
Copy link
Contributor

背景に星空とランダムな天体を一つ映す構成にしました。
start simulationのボタンを押すとシミュレーション画面に移動します。

</>

<div
className={
Copy link
Contributor

Choose a reason for hiding this comment

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

変数や式が含まれないので、{} は要らないですね。

active:scale-95
"
>
[Start Simulation]
Copy link
Contributor

Choose a reason for hiding this comment

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

ボタンも [] もクリックできる要素であることを示していて、役割が重複しているので、[] はない方がいいかと思います。

import type { Planet } from "@/types/planet";

export default function HomeScene() {
const planets = [earth, jupiter, mars, sun, venus];
Copy link
Contributor

Choose a reason for hiding this comment

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

planets は定数なので、レンダリングの度に再生成する必要はなく、コンポーネントの外に出すのがいいかと思います。

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 9, 2026

Deploying space-simulator with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1b56a47
Status: ✅  Deploy successful!
Preview URL: https://b558f219.space-simulator.pages.dev
Branch Preview URL: https://createhome.space-simulator.pages.dev

View logs

@tknkaa tknkaa merged commit 7930f6c into main Mar 9, 2026
1 check passed
@tknkaa tknkaa deleted the createHome branch March 9, 2026 09:36
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.

2 participants