-
Notifications
You must be signed in to change notification settings - Fork 0
ホーム画面の背景とヘッダーを作成 #14
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
base: main
Are you sure you want to change the base?
ホーム画面の背景とヘッダーを作成 #14
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,102 +2,42 @@ import Image from "next/image"; | |||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| export default function Home() { | ||||||||||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||||||||||
| <div className="font-sans grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20"> | ||||||||||||||||||||||||||||||||||
| <main className="flex flex-col gap-[32px] row-start-2 items-center sm:items-start"> | ||||||||||||||||||||||||||||||||||
| <Image | ||||||||||||||||||||||||||||||||||
| className="dark:invert" | ||||||||||||||||||||||||||||||||||
| src="/next.svg" | ||||||||||||||||||||||||||||||||||
| alt="Next.js logo" | ||||||||||||||||||||||||||||||||||
| width={180} | ||||||||||||||||||||||||||||||||||
| height={38} | ||||||||||||||||||||||||||||||||||
| priority | ||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||
| <ol className="font-mono list-inside list-decimal text-sm/6 text-center sm:text-left"> | ||||||||||||||||||||||||||||||||||
| <li className="mb-2 tracking-[-.01em]"> | ||||||||||||||||||||||||||||||||||
| Get started by editing{" "} | ||||||||||||||||||||||||||||||||||
| <code className="bg-black/[.05] dark:bg-white/[.06] font-mono font-semibold px-1 py-0.5 rounded"> | ||||||||||||||||||||||||||||||||||
| src/app/page.tsx | ||||||||||||||||||||||||||||||||||
| </code> | ||||||||||||||||||||||||||||||||||
| . | ||||||||||||||||||||||||||||||||||
| </li> | ||||||||||||||||||||||||||||||||||
| <li className="tracking-[-.01em]"> | ||||||||||||||||||||||||||||||||||
| Save and see your changes instantly. | ||||||||||||||||||||||||||||||||||
| </li> | ||||||||||||||||||||||||||||||||||
| </ol> | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| <div className="flex gap-4 items-center flex-col sm:flex-row"> | ||||||||||||||||||||||||||||||||||
| <a | ||||||||||||||||||||||||||||||||||
| className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:w-auto" | ||||||||||||||||||||||||||||||||||
| href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" | ||||||||||||||||||||||||||||||||||
| target="_blank" | ||||||||||||||||||||||||||||||||||
| rel="noopener noreferrer" | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| <Image | ||||||||||||||||||||||||||||||||||
| className="dark:invert" | ||||||||||||||||||||||||||||||||||
| src="/vercel.svg" | ||||||||||||||||||||||||||||||||||
| alt="Vercel logomark" | ||||||||||||||||||||||||||||||||||
| width={20} | ||||||||||||||||||||||||||||||||||
| height={20} | ||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||
| Deploy now | ||||||||||||||||||||||||||||||||||
| </a> | ||||||||||||||||||||||||||||||||||
| <a | ||||||||||||||||||||||||||||||||||
| className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 w-full sm:w-auto md:w-[158px]" | ||||||||||||||||||||||||||||||||||
| href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" | ||||||||||||||||||||||||||||||||||
| target="_blank" | ||||||||||||||||||||||||||||||||||
| rel="noopener noreferrer" | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| Read our docs | ||||||||||||||||||||||||||||||||||
| </a> | ||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||
| </main> | ||||||||||||||||||||||||||||||||||
| <footer className="row-start-3 flex gap-[24px] flex-wrap items-center justify-center"> | ||||||||||||||||||||||||||||||||||
| <a | ||||||||||||||||||||||||||||||||||
| className="flex items-center gap-2 hover:underline hover:underline-offset-4" | ||||||||||||||||||||||||||||||||||
| href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" | ||||||||||||||||||||||||||||||||||
| target="_blank" | ||||||||||||||||||||||||||||||||||
| rel="noopener noreferrer" | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| <Image | ||||||||||||||||||||||||||||||||||
| aria-hidden | ||||||||||||||||||||||||||||||||||
| src="/file.svg" | ||||||||||||||||||||||||||||||||||
| alt="File icon" | ||||||||||||||||||||||||||||||||||
| width={16} | ||||||||||||||||||||||||||||||||||
| height={16} | ||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||
| Learn | ||||||||||||||||||||||||||||||||||
| </a> | ||||||||||||||||||||||||||||||||||
| <a | ||||||||||||||||||||||||||||||||||
| className="flex items-center gap-2 hover:underline hover:underline-offset-4" | ||||||||||||||||||||||||||||||||||
| href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" | ||||||||||||||||||||||||||||||||||
| target="_blank" | ||||||||||||||||||||||||||||||||||
| rel="noopener noreferrer" | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| <Image | ||||||||||||||||||||||||||||||||||
| aria-hidden | ||||||||||||||||||||||||||||||||||
| src="/window.svg" | ||||||||||||||||||||||||||||||||||
| alt="Window icon" | ||||||||||||||||||||||||||||||||||
| width={16} | ||||||||||||||||||||||||||||||||||
| height={16} | ||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||
| Examples | ||||||||||||||||||||||||||||||||||
| </a> | ||||||||||||||||||||||||||||||||||
| <a | ||||||||||||||||||||||||||||||||||
| className="flex items-center gap-2 hover:underline hover:underline-offset-4" | ||||||||||||||||||||||||||||||||||
| href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" | ||||||||||||||||||||||||||||||||||
| target="_blank" | ||||||||||||||||||||||||||||||||||
| rel="noopener noreferrer" | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| <main className="min-h-screen bg-gray-50 flex flex-col"> | ||||||||||||||||||||||||||||||||||
| {/* Header */} | ||||||||||||||||||||||||||||||||||
| <header className="w-full bg-[#90C0FF] border-b border-gray-200 p-4 flex items-center justify-between"> | ||||||||||||||||||||||||||||||||||
| {/* 左側(アイコン+ユーザー情報) */} | ||||||||||||||||||||||||||||||||||
| <div className="flex items-center space-x-3"> | ||||||||||||||||||||||||||||||||||
| <Image | ||||||||||||||||||||||||||||||||||
| aria-hidden | ||||||||||||||||||||||||||||||||||
| src="/globe.svg" | ||||||||||||||||||||||||||||||||||
| alt="Globe icon" | ||||||||||||||||||||||||||||||||||
| width={16} | ||||||||||||||||||||||||||||||||||
| height={16} | ||||||||||||||||||||||||||||||||||
| src="/kotori-icon.png" | ||||||||||||||||||||||||||||||||||
| alt="コトリ" | ||||||||||||||||||||||||||||||||||
| width={48} | ||||||||||||||||||||||||||||||||||
| height={48} | ||||||||||||||||||||||||||||||||||
| className="rounded-xl" | ||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||
| Go to nextjs.org → | ||||||||||||||||||||||||||||||||||
| </a> | ||||||||||||||||||||||||||||||||||
| </footer> | ||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||
| <div> | ||||||||||||||||||||||||||||||||||
| <h1 className="text-2xl font-semibold text-gray-700">函館 花子</h1> | ||||||||||||||||||||||||||||||||||
| <span className="text-sm text-white">ノートの魔法使い ✨</span> | ||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| {/* 右側(ボタン群) */} | ||||||||||||||||||||||||||||||||||
| <div className="flex space-x-4"> | ||||||||||||||||||||||||||||||||||
| <button className="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg text-gray-700 font-medium"> | ||||||||||||||||||||||||||||||||||
| 今までの記録 | ||||||||||||||||||||||||||||||||||
| </button> | ||||||||||||||||||||||||||||||||||
| <button className="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg text-gray-700 font-medium"> | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+25
to
+28
|
||||||||||||||||||||||||||||||||||
| <button className="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg text-gray-700 font-medium"> | |
| 今までの記録 | |
| </button> | |
| <button className="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg text-gray-700 font-medium"> | |
| <button | |
| type="button" | |
| aria-label="今までの記録" | |
| className="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg text-gray-700 font-medium" | |
| > | |
| 今までの記録 | |
| </button> | |
| <button | |
| type="button" | |
| aria-label="設定" | |
| className="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg text-gray-700 font-medium" | |
| > |
Copilot
AI
Oct 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The button styling is duplicated. Extract the common className into a constant or create a reusable Button component to avoid repetition and improve maintainability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
かわいい