Skip to content

Commit 8a0565b

Browse files
committed
refactor: 홈 화면 배경 그라데이션 추가
1 parent 45a97bd commit 8a0565b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/Home/Home.module.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
display: flex;
99
flex-direction: column;
1010
justify-content: space-between;
11+
background: var(--color-bg-gradient);
1112

1213
&::before {
1314
content: "";
@@ -19,7 +20,7 @@
1920
left: 0;
2021
right: 0;
2122
bottom: 0;
22-
z-index: -1;
23+
z-index: 0;
2324
}
2425

2526
.HomeTitle {
@@ -29,6 +30,7 @@
2930
display: flex;
3031
flex-direction: column;
3132
gap: 0.625rem;
33+
z-index: 1;
3234

3335
& > h1 {
3436
white-space: pre-line;
@@ -39,6 +41,7 @@
3941
display: flex;
4042
justify-content: center;
4143
align-items: center;
44+
z-index: 1;
4245

4346
& > img {
4447
width: 16.25rem;
@@ -50,5 +53,6 @@
5053
display: flex;
5154
align-items: center;
5255
gap: 0.875rem;
56+
z-index: 1;
5357
}
5458
}

src/styles/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
--color-gray500: #00000040;
3131
--color-gray600: #363642;
3232
--color-gray700: #161636;
33-
--color-bg-gradient: linear-gradient(#ffffff, #443fb6);
33+
--color-bg-gradient: linear-gradient(180deg, #ffffff, #dcdce8);
3434
--color-bg-error: #d45085;
3535
}

0 commit comments

Comments
 (0)