Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ storybook-static/
.env.sentry-build-plugin

.next
next-env.d.ts
next-env.d.ts

.claude/*
4 changes: 2 additions & 2 deletions src/app/(home)/components/GenreItem/GenreItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Link from 'next/link';
import { containerStyle, genreStyle, medalStyle } from '@/app/(home)/components/GenreItem/genreItem.css';
import { containerStyle, genreStyle, linkStyle, medalStyle } from '@/app/(home)/components/GenreItem/genreItem.css';
import Text from '@/common/components/Text/Text';
import { genreMapping } from '@/shared/constants';

Expand All @@ -11,7 +11,7 @@ interface GenreItemPropTypes {
const GenreItem = ({ medalIcon, genre }: GenreItemPropTypes) => {
return (
<li className={containerStyle}>
<Link href={`/search?genre=${genre}`}>
<Link href={`/search?genre=${genre}`} className={linkStyle}>
<div className={medalStyle}>{medalIcon}</div>

<Text tag="b2_m" className={genreStyle}>
Expand Down
6 changes: 6 additions & 0 deletions src/app/(home)/components/GenreItem/genreItem.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ export const containerStyle = style({
backgroundColor: vars.colors.white,
});

export const linkStyle = style({
display: 'block',
width: '100%',
height: '100%',
});

export const medalStyle = style({
position: 'absolute',
top: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/app/(home)/components/SliderItem/SliderItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface SliderItemPropTypes {
const SliderItem = ({ imageUrl, description, priority = false }: SliderItemPropTypes) => {
return (
<div className={containerStyle}>
<Image src={imageUrl} alt={`${description} 배너`} className={imageStyle} fill priority={priority} unoptimized />
<Image src={imageUrl} alt={`${description} 배너`} className={imageStyle} fill priority={priority} />

<Head level="h2" tag="h3_sb" color="white" className={descriptionStyle}>
{description}
Expand Down
2 changes: 1 addition & 1 deletion src/common/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Header = () => {
<Link href="/search" aria-label="검색 페이지로 이동">
<IcSearchBlack24 width={24} height={24} />
</Link>
<Link href="/my" aria-label="마이페이지로 이동">
<Link href="/my" aria-label="마이페이지로 이동" prefetch={false}>
<IcMypageBlack24 width={24} height={24} />
</Link>
</div>
Expand Down
14 changes: 7 additions & 7 deletions src/shared/styles/global.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ globalStyle('#root', {
});

globalStyle('.swiper-pagination-bullet', {
width: '4px',
height: '4px',
backgroundColor: vars.colors.white50,
width: '4px !important',
height: '4px !important',
backgroundColor: `${vars.colors.white50} !important`,
});

globalStyle('.swiper-pagination-bullet:active', {
width: '4px',
height: '4px',
backgroundColor: vars.colors.white,
globalStyle('.swiper-pagination-bullet-active', {
width: '4px !important',
height: '4px !important',
backgroundColor: `${vars.colors.white} !important`,
});
Loading