Skip to content

Commit e8b35fb

Browse files
committed
feat: FooterSection 컴포넌트의 스타일 및 구조 개선, 링크 추가
1 parent 0fb1175 commit e8b35fb

2 files changed

Lines changed: 48 additions & 29 deletions

File tree

mosu-app/src/widgets/home/FooterSection.module.scss

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.footer_section {
22
position: relative;
33

4-
height: 1500px;
4+
height: fit-content;
55

66
overflow: clip;
77

@@ -10,39 +10,47 @@
1010

1111
&__image {
1212
position: absolute;
13+
left: 50%;
14+
top: 50%;
15+
transform: translate(-50%, -50%);
16+
1317
z-index: 0;
1418

19+
width: 80%;
1520
height: 100%;
16-
width: 100%;
21+
max-width: 1000px;
22+
23+
margin: 0px auto;
1724

1825
padding-left: 0.25rem;
1926
padding-right: 0.25rem;
2027

21-
object-fit: cover;
28+
object-fit: contain;
2229
}
2330

2431
&__content {
25-
position: absolute;
32+
display: flex;
33+
flex-direction: column;
34+
justify-content: center;
35+
36+
gap: 4rem;
37+
2638
z-index: 1;
27-
top: 50%;
28-
left: 50%;
2939

3040
width: 100%;
41+
height: 80%;
3142

32-
transform: translate(-50%, -50%);
43+
margin: 0px auto;
3344

3445
text-align: center;
35-
font-weight: bold;
3646

3747
&__title {
3848
position: relative;
39-
top: -280px;
4049

4150
display: flex;
4251
flex-direction: column;
4352

44-
font-size: 2.5rem;
45-
53+
font-size: 1.25rem;
4654
@media (max-width: 1023px) {
4755
font-size: 2rem;
4856
}
@@ -53,6 +61,8 @@
5361
}
5462

5563
&__call_to_action {
64+
z-index: 1;
65+
5666
display: flex;
5767
justify-content: center;
5868
gap: 1.5rem;
@@ -73,14 +83,14 @@
7383
display: flex;
7484
align-items: center;
7585
justify-content: space-between;
76-
gap: 0.75rem;
86+
gap: 0.5rem;
7787

78-
width: 17rem;
88+
width: 210px;
7989

8090
margin-top: 0.5rem;
8191
margin-bottom: 0.5rem;
8292
border-radius: 9999px;
83-
padding: 0.75rem 1rem 0.75rem 1rem;
93+
padding: 0.5rem 1rem;
8494

8595
background-color: #fff;
8696

@@ -90,7 +100,6 @@
90100
}
91101

92102
span:first-of-type {
93-
margin-right: 2rem;
94103
color: #000;
95104
}
96105
span:last-of-type {

mosu-app/src/widgets/home/FooterSection.tsx

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
import { ChevronRight } from "lucide-react";
22
import Image from "next/image";
3+
import Link from "next/link";
4+
import { useRouter } from "next/router";
35
import React from "react";
46

57
import imgHero from "@/widgets/home/assets/img-hero.png";
68
import { LineBreakUnderTablet } from "@/widgets/home/helper/LineBreak";
79

10+
import { Button } from "@/shared/ui/button";
11+
812
import styles from "./FooterSection.module.scss";
913

1014
/**
1115
* @description 수능장에 들어서기 전, 반드시 겪어야 할 감정이 있습니다.
1216
*/
1317
export const FooterSection = () => {
18+
const router = useRouter();
19+
1420
return (
1521
<section className={styles.footer_section}>
16-
<Image alt="" src={imgHero} width={1500} height={800} />
22+
<Image alt="" src={imgHero} className={styles.footer_section__image} />
1723

1824
<div className={styles.footer_section__content}>
1925
<h1 className={styles.footer_section__content__title}>
@@ -33,19 +39,23 @@ export const FooterSection = () => {
3339
</h1>
3440

3541
<div className={styles.footer_section__call_to_action}>
36-
<button className={styles.call_to_action__button}>
37-
<span>상세운영방식 보러가기</span>
38-
<span>
39-
<ChevronRight strokeWidth={1} />
40-
</span>
41-
</button>
42-
43-
<button className={styles.call_to_action__button}>
44-
<span>지금 바로 신청하기</span>
45-
<span>
46-
<ChevronRight strokeWidth={1} />
47-
</span>
48-
</button>
42+
<Link href="/warning" scroll>
43+
<button className={styles.call_to_action__button}>
44+
<span>상세운영 보러가기</span>
45+
<span>
46+
<ChevronRight strokeWidth={1} />
47+
</span>
48+
</button>
49+
</Link>
50+
51+
<Link href="/apply" scroll>
52+
<button className={styles.call_to_action__button}>
53+
<span>지금 바로 신청하기</span>
54+
<span>
55+
<ChevronRight strokeWidth={1} />
56+
</span>
57+
</button>
58+
</Link>
4959
</div>
5060
</div>
5161
</section>

0 commit comments

Comments
 (0)