Skip to content

[FEAT] 배너 클릭으로 데모데이 페이지 이동하기#269

Merged
MlNTYS merged 1 commit intodevelopfrom
feat/demo-page-redirect(#268)
Feb 20, 2026
Merged

[FEAT] 배너 클릭으로 데모데이 페이지 이동하기#269
MlNTYS merged 1 commit intodevelopfrom
feat/demo-page-redirect(#268)

Conversation

@MlNTYS
Copy link
Contributor

@MlNTYS MlNTYS commented Feb 20, 2026

🔀 Pull Request Title

배너 클릭으로 데모데이 페이지 이동하기


📌 PR 설명

배너 클릭으로 데모데이 페이지 이동하기

  • 복원 배너 클릭으로 데모데이 페이지 redirect

@MlNTYS MlNTYS self-assigned this Feb 20, 2026
@MlNTYS MlNTYS added the feature 새 기능 추가 label Feb 20, 2026
@MlNTYS MlNTYS linked an issue Feb 20, 2026 that may be closed by this pull request
1 task
@vercel
Copy link

vercel bot commented Feb 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
finders Ready Ready Preview, Comment Feb 20, 2026 2:37am

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @MlNTYS, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 메인 페이지의 프로모션 배너에 클릭 기능을 추가하여 사용자가 특정 배너를 클릭했을 때 데모데이 페이지로 이동할 수 있도록 구현합니다. 이는 사용자 경험을 개선하고 특정 이벤트 페이지로의 접근성을 높이는 데 기여합니다.

Highlights

  • 네비게이션 훅 추가: react-routeruseNavigate 훅을 임포트하고 컴포넌트 내에서 초기화했습니다.
  • 배너 링크 기능 추가: MainBannerProps 인터페이스에 선택적 link 속성을 추가하고, 첫 번째 프로모션 배너에 /demo-day 경로를 할당했습니다.
  • 클릭 이벤트 핸들러 구현: 배너 클릭 시 link 속성에 지정된 경로로 이동하도록 onClick 이벤트 핸들러를 추가했습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Activity
  • 이 PR에는 아직 사람의 활동이 없습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request introduces functionality to navigate to a demo-day page by clicking on a promotion banner. The changes involve adding a link property to the banner interface and data, using useNavigate hook for redirection, and conditionally applying click handlers and styling. The implementation includes comments indicating temporary nature related to 'demo-day', which should be addressed for permanent features.

@@ -1,4 +1,5 @@
import { useState, useRef } from "react";
import { useNavigate } from "react-router"; // [demo-day] 데모데이 끝나면 제거
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The comment // [demo-day] 데모데이 끝나면 제거 indicates that this import is temporary. While useful for tracking, it's important to ensure these temporary flags are properly managed and removed once the demo-day period is over to avoid dead code or unexpected behavior in the future. Consider creating a follow-up task to remove this.

id: number;
alt: string;
src: string;
link?: string; // [demo-day] 데모데이 끝나면 제거
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

Similar to the import, the link?: string; // [demo-day] 데모데이 끝나면 제거 comment suggests this property is temporary. This temporary nature should be clearly documented and a plan for its removal or integration into a permanent feature should be established to maintain code cleanliness.

id: 1,
alt: "AI 사진 복원 프로모션 배너",
src: promotionBanner1,
link: "/demo-day", // [demo-day] 데모데이 끝나면 제거
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The link: "/demo-day", // [demo-day] 데모데이 끝나면 제거 comment highlights a temporary hardcoded link. For better maintainability and to prevent issues after the demo-day, this should either be removed or replaced with a configurable value when the feature becomes permanent.

];

export default function PromotionBanner() {
const navigate = useNavigate(); // [demo-day] 데모데이 끝나면 제거
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The const navigate = useNavigate(); // [demo-day] 데모데이 끝나면 제거 comment indicates that the useNavigate hook is being used temporarily for the demo-day feature. Ensure that this usage is either removed or integrated into a more general navigation strategy once the demo-day is concluded.

Comment on lines +59 to +62
// [demo-day] 아래 3줄 데모데이 끝나면 제거
onClick={banner.link ? () => navigate(banner.link!) : undefined}
role={banner.link ? "link" : undefined}
style={banner.link ? { cursor: "pointer" } : undefined}
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The comments // [demo-day] 아래 3줄 데모데이 끝나면 제거 indicate that the onClick, role, and style attributes are temporary. These conditional attributes should be reviewed and either removed or made permanent with appropriate logic after the demo-day period to avoid unnecessary complexity.

Copy link
Contributor

@dodaaaaam dodaaaaam left a comment

Choose a reason for hiding this comment

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

어푸드립니당~

@MlNTYS MlNTYS merged commit f4f14c6 into develop Feb 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature 새 기능 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 배너 클릭으로 데모데이 페이지 이동하기

3 participants