Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit
pnpm commitlint --edit
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
pnpm lint-staged
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"*.{js,jsx,ts,tsx}": ["yarn lint:fix"]
"*.{js,jsx,ts,tsx}": ["pnpm lint:fix"]
}
Binary file added public/images/core/recruit-3rd-hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 58 additions & 3 deletions src/features/Main/sections/v18/HeroSection.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,57 @@
/**
* TEMP: 디프만 코어 요청으로 인한 임시 Hero 영역 대체 코드입니다.
* 최상단을 코어 3기 모집 배너 이미지 한 장으로 대체하고, 클릭 시 노션 모집 페이지로 이동시킵니다.
* 원복 시 아래 하단에 주석으로 보존해둔 기존 18기 HeroSection 코드를 복원해주세요.
*/
import Image from 'next/image';
import { css } from '@emotion/react';

const CORE_RECRUIT_URL = 'https://depromeet.notion.site/recruit-3th-open';

export const HeroSection = () => {
return (
<section css={sectionCss}>
<a
href={CORE_RECRUIT_URL}
target="_blank"
rel="noopener noreferrer"
css={linkCss}
aria-label="디프만 코어 3기 모집 지원하러 가기"
>
<Image
src="/images/core/recruit-3rd-hero.png"
alt="디프만 코어 3기 모집 - 2026.07.16 ~ 2026.08.02, 프로덕트 디자이너 & 웹 프론트엔드 개발자 모집"
Comment on lines +14 to +23

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

링크의 aria-label이 이미지의 접근성 정보를 덮어씁니다.

aria-label 때문에 내부 Image의 alt에 포함된 모집 기간·직군 정보가 링크 이름에서 제외될 수 있으며, 새 탭으로 열린다는 안내도 없습니다. aria-label을 제거하고 alt에 (새 탭에서 열림)을 추가하거나, aria-label에 전체 정보를 명시해 주세요.

수정 예시
-        aria-label="디프만 코어 3기 모집 지원하러 가기"
         css={linkCss}
       >
         <Image
           src="/images/core/recruit-3rd-hero.png"
-          alt="디프만 코어 3기 모집 - 2026.07.16 ~ 2026.08.02, 프로덕트 디자이너 & 웹 프론트엔드 개발자 모집"
+          alt="디프만 코어 3기 모집 - 2026.07.16 ~ 2026.08.02, 프로덕트 디자이너 & 웹 프론트엔드 개발자 모집 (새 탭에서 열림)"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<a
href={CORE_RECRUIT_URL}
target="_blank"
rel="noopener noreferrer"
css={linkCss}
aria-label="디프만 코어 3기 모집 지원하러 가기"
>
<Image
src="/images/core/recruit-3rd-hero.png"
alt="디프만 코어 3기 모집 - 2026.07.16 ~ 2026.08.02, 프로덕트 디자이너 & 웹 프론트엔드 개발자 모집"
<a
href={CORE_RECRUIT_URL}
target="_blank"
rel="noopener noreferrer"
css={linkCss}
>
<Image
src="/images/core/recruit-3rd-hero.png"
alt="디프만 코어 3기 모집 - 2026.07.16 ~ 2026.08.02, 프로덕트 디자이너 & 웹 프론트엔드 개발자 모집 (새 탭에서 열림)"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/features/Main/sections/v18/HeroSection.tsx` around lines 14 - 23, Update
the link containing the Image in HeroSection so its accessible name preserves
the image alt text, including recruitment dates and roles, instead of overriding
it with the shorter aria-label. Remove the link aria-label and append an
equivalent “opens in a new tab” notice to the Image alt text while keeping the
existing target and rel attributes.

width={2280}
height={1282}
css={imageCss}
priority
/>
</a>
</section>
);
};

const sectionCss = css`
width: 100%;
display: flex;
justify-content: center;
padding-top: 80px;
background: #ffffff;
`;

const linkCss = css`
display: block;
width: 100%;
max-width: 2280px;
`;

const imageCss = css`
width: 100%;
height: auto;
display: block;
`;

/* NOTE: 기존 18기 HeroSection 코드 백업 - 디프만 코어 임시 배너 종료 후 아래 코드를 복원해주세요.
import { useEffect, useRef, useState } from 'react';
import Image from 'next/image';
import { useRouter } from 'next/router';
Expand Down Expand Up @@ -218,7 +272,7 @@ const keyringContainerCss = css`
left: 50%;
transform: translateX(-50%);
z-index: 3;
/* Safari HEVC alpha 영상 로드 시 컴포지팅 이슈 방지 */
// Safari HEVC alpha 영상 로드 시 컴포지팅 이슈 방지
isolation: isolate;
will-change: transform;

Expand All @@ -235,7 +289,7 @@ const keyringVideoCss = css`
object-fit: contain;
width: 534px;
height: 534px;
/* Safari alpha 영상 렌더링 */
// Safari alpha 영상 렌더링
background: transparent;
transform: translateZ(0);
backface-visibility: hidden;
Expand Down Expand Up @@ -265,7 +319,7 @@ const logoContainerCss = css`
bottom: 141px;
display: flex;
justify-content: center;
/* Safari HEVC alpha 영상 컴포지팅 이슈 방지 */
// Safari HEVC alpha 영상 컴포지팅 이슈 방지
isolation: isolate;
backface-visibility: hidden;

Expand Down Expand Up @@ -337,3 +391,4 @@ const ctaButtonCss = css`
display: none;
}
`;
*/
Loading