-
Notifications
You must be signed in to change notification settings - Fork 0
test:코드레빗 테스트 #2
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?
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 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,26 @@ | ||||||||||||||
| import React from "react"; | ||||||||||||||
|
|
||||||||||||||
| export default function Navbar() { | ||||||||||||||
| return ( | ||||||||||||||
| <div className="flex bg-white w-full items-center justify-between box-border h-[100px] px-[130px]"> | ||||||||||||||
| {/* Logo Placeholder */} | ||||||||||||||
| <div className="bg-[#d9d9d9] h-[36px] w-[150px]" /> | ||||||||||||||
|
|
||||||||||||||
| {/* Right Menu */} | ||||||||||||||
| <div className="flex items-center gap-[30px]"> | ||||||||||||||
| {/* 찜한 목록 */} | ||||||||||||||
| <button className="font-semibold text-[#434343] leading-[1.1] text-[16px]"> | ||||||||||||||
| 찜한 목록 | ||||||||||||||
| </button> | ||||||||||||||
|
|
||||||||||||||
| {/* Divider */} | ||||||||||||||
| <div className="bg-[#d9d9d9] h-[22px] w-[1px]" /> | ||||||||||||||
|
|
||||||||||||||
| {/* Log in / Sign in */} | ||||||||||||||
| <button className="font-semibold text-[#434343] leading-[1.1] uppercase text-[16px]"> | ||||||||||||||
| Log in / Sign in | ||||||||||||||
| </button> | ||||||||||||||
|
Comment on lines
+20
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 로그인 버튼에도 type 속성 추가 필요 동일하게 🛠️ 제안된 수정- <button className="font-semibold text-[`#434343`] leading-[1.1] uppercase text-[16px]">
+ <button type="button" className="font-semibold text-[`#434343`] leading-[1.1] uppercase text-[16px]">📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
| </div> | ||||||||||||||
| </div> | ||||||||||||||
| ); | ||||||||||||||
| } | ||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,9 +1,10 @@ | ||||||
| import SeoulMap from "./component/SeoulMap"; | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 사용되지 않는 import
🧹 제안된 수정-import SeoulMap from "./component/SeoulMap";
import Navbar from "./component/Navbar";📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| import Navbar from "./component/Navbar"; | ||||||
|
|
||||||
| export default function Home() { | ||||||
| return ( | ||||||
| <div className="flex min-h-screen items-center justify-center bg-zinc-50 font-sans dark:bg-black"> | ||||||
| <p className="font-bold text-white">Test</p> | ||||||
| </div> | ||||||
| <main className="flex min-h-screen flex-col bg-zinc-50 font-sans dark:bg-black"> | ||||||
| <Navbar /> | ||||||
| </main> | ||||||
| ); | ||||||
| } | ||||||
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.
버튼에 type 속성 및 onClick 핸들러 누락
<button>요소에type="button"속성이 없으면 기본값이type="submit"이 되어 폼 내부에서 의도치 않은 동작이 발생할 수 있습니다. 또한 클릭 핸들러가 없어 현재 기능이 없습니다.🛠️ 제안된 수정
📝 Committable suggestion
🤖 Prompt for AI Agents