Skip to content

Commit 0beb609

Browse files
feat: 백그라운드 블러 효과 적용
1 parent 2f708fd commit 0beb609

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

src/pages/Main/index.styled.tsx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import styled from "styled-components";
2+
3+
export const MainContainer = styled.div`
4+
position: relative;
5+
width: 100%;
6+
min-height: 100vh;
7+
z-index: 2;
8+
9+
&::before, &::after {
10+
content: "";
11+
position: absolute;
12+
bottom: 0;
13+
width: 10px;
14+
height: 40%;
15+
background: linear-gradient(to bottom,
16+
rgba(255, 102, 0, 0) 0%,
17+
rgba(255, 102, 0, 0.8) 50%,
18+
rgba(255, 102, 0, 0) 100%
19+
);
20+
z-index: 3;
21+
}
22+
23+
&::before {
24+
left: 0;
25+
}
26+
27+
&::after {
28+
right: 0;
29+
}
30+
`;

src/pages/Main/index.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@ import Tracks from "./Tracks/Tracks";
33
import Union from "./Union/Union";
44
import Achievements from "./Achievements/Achievements";
55
import BottomInfo from "./BottomInfo/BottomInfo";
6+
import FarmSystemNav from "./FarmSyetemNav/FarmSystemNav";
7+
import * as S from "./index.styled";
68

79
export default function Main() {
810
return (
9-
<div>
11+
<S.MainContainer> {/* 배경 그라데이션 적용 */}
12+
<FarmSystemNav />
1013
<Intro />
1114
<Tracks />
1215
<Union />
1316
<Achievements />
1417
<BottomInfo />
15-
</div>
18+
</S.MainContainer>
1619
);
17-
}
20+
}

0 commit comments

Comments
 (0)