Skip to content

Commit d3bce8d

Browse files
committed
feat: 헤더 누르면 이동하는거
1 parent 5130df8 commit d3bce8d

4 files changed

Lines changed: 27 additions & 61 deletions

File tree

src/shared/ui/Header/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ export default function Header() {
109109
{ section: "SloganSecondSection", label: "2025 광탈페 슬로건" },
110110
// { section: "section3", label: "FaQ" },
111111
{ section: "PreliminaryFourthSection", label: "2025 광탈페 예선 다시보기" },
112-
{ section: "ReservationFifthSection", label: "본선 좌석예매" },
113-
{ section: "FinalsSixthSection", label: "본선" },
112+
{ section: "FinalsSixthSection", label: "2025 광탈페 본선 다시보기" },
113+
{ section: "ReservationFifthSection", label: "본선 수상팀 명단" },
114114
];
115115

116116
const handleScrollToSection = (section: string) => {

src/views/home/ui/HomePage/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const ReservationFifthSection = dynamic(() => import("@/widgets/main/Reservation
1515
ssr: false,
1616
});
1717

18-
// const FinalsSixthSection = dynamic(() => import("@/widgets/main/FinalsSixthSection"), {
19-
// loading: () => <SectionPlaceholder />,
20-
// ssr: false,
21-
// });
18+
const FinalsSixthSection = dynamic(() => import("@/widgets/main/FinalsSixthSection"), {
19+
loading: () => <SectionPlaceholder />,
20+
ssr: false,
21+
});
2222

2323
const SeventhSection = dynamic(() => import("@/widgets/main/SevenSection"), {
2424
loading: () => <SectionPlaceholder />,
@@ -53,10 +53,10 @@ const HomePage = () => {
5353
<PreliminaryFourthSection />
5454
</LazySection>
5555

56-
{/*
56+
5757
<LazySection fallback={<SectionPlaceholder height="500px" />} rootMargin="300px">
5858
<FinalsSixthSection />
59-
</LazySection> */}
59+
</LazySection>
6060

6161
<LazySection fallback={<SectionPlaceholder height="500px" />} rootMargin="300px">
6262
<ReservationFifthSection />

src/widgets/main/FinalsSixthSection/index.tsx

Lines changed: 19 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,33 @@
22

33
import { cn } from "@/shared/utils/cn";
44
import { SectionTitle } from "@/shared/ui/SectionTitle";
5-
import dynamic from "next/dynamic";
5+
// import dynamic from "next/dynamic";
66
import YouTubeLazyEmbed from "@/shared/ui/YouTubeLazyEmbed";
7-
import MapButtonComponent from "@/widgets/mapbutton";
7+
// import MapButtonComponent from "@/widgets/mapbutton";
88

9-
const Map = dynamic(
10-
() => import("@/entities/home/ui/Map").then(module => ({ default: module.Map })),
11-
{
12-
ssr: false,
13-
},
14-
);
9+
// const Map = dynamic(
10+
// () => import("@/entities/home/ui/Map").then(module => ({ default: module.Map })),
11+
// {
12+
// ssr: false,
13+
// },
14+
// );
1515

1616
const FinalsSixthSection = () => {
1717
return (
1818
<section id="FinalsSixthSection" className={cn("flex flex-col items-center my-20")}>
19-
<div className={cn("w-[70%] mobile:w-full mobile:px-16")}>
19+
<div className={cn("w-[70%] mobile:w-full")}>
2020
<SectionTitle
21-
title="본선"
22-
description="光트로(예선)을 거쳐 선정된 참가팀이 서로의 무대를 즐기며 재능과 끼를 맘껏 펼치고 서로 나누는 축제의 시간입니다.
23-
"
24-
className={cn("mt-[66px] mobile:mt-[1.7rem]")}
21+
title="2025 광탈페 본선"
22+
className={cn("mt-[66px] mobile:mt-[1.7rem] mb-28")}
2523
/>
26-
<div className={cn("mt-[5rem] mobile:mt-20")}>
27-
<p className={cn("text-title4b mobile:text-body3b place-self-start mb-24 mobile:mb-0")}>
28-
오시는 길
29-
</p>
30-
<div className="flex gap-6 mobile:flex-col tablet:flex-col">
31-
<div className="flex-1 flex gap-6 mobile:flex-col tablet:flex-col">
32-
<div className="w-[40%] mobile:w-full tablet:w-full pb-4 flex flex-col justify-between mobile:pb-0">
33-
<p className={cn("text-body2r text-gray-500 mobile:text-caption2r mobile:py-8")}>
34-
∙ 일시: 2025.9.27.(토) <br />∙ 장소: 조선대학교 해오름관
35-
</p>
36-
<MapButtonComponent />
37-
</div>
38-
<div className={cn("flex-1")}>
39-
<Map
40-
address="광주광역시 동구 필문대로 309 조선대학교 해오름관"
41-
className={cn("h-full mobile:h-[250px] tablet:h-[250px] rounded-[20px]")}
42-
/>
43-
</div>
44-
</div>
45-
<div className={cn("flex-1")}>
46-
<div className={cn("w-full")}>
47-
<YouTubeLazyEmbed videoId="jSTTkW3dZgE" title="2025 광탈페 길찾기" />
48-
</div>
49-
</div>
24+
25+
<div
26+
className={cn(
27+
"flex w-full flex-col items-start gap-10 justify-between mb-[90px] mobile:mb-[38px]",
28+
)}
29+
>
30+
<div className={cn("w-full mobile:w-full mobile:mt-16 mobile:px-16")}>
31+
<YouTubeLazyEmbed videoId="J-Bj9cM4c3M" title="2025 광탈페 본선 다시보기" />
5032
</div>
5133
</div>
5234
</div>

src/widgets/main/PreliminaryFourthSection/index.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -116,22 +116,6 @@ const PreliminaryFourthSection = () => {
116116
</div>
117117
</div>
118118
</div>
119-
<div className={cn("w-[70%] mobile:w-full")}>
120-
<SectionTitle
121-
title="2025 광탈페 본선"
122-
className={cn("mt-[66px] mobile:mt-[1.7rem] mb-28")}
123-
/>
124-
125-
<div
126-
className={cn(
127-
"flex w-full flex-col items-start gap-10 justify-between mb-[90px] mobile:mb-[38px]",
128-
)}
129-
>
130-
<div className={cn("w-full mobile:w-full mobile:mt-16 mobile:px-16")}>
131-
<YouTubeLazyEmbed videoId="J-Bj9cM4c3M" title="2025 광탈페 본선 다시보기" />
132-
</div>
133-
</div>
134-
</div>
135119
</section>
136120
);
137121
};

0 commit comments

Comments
 (0)