Skip to content

Commit f39424a

Browse files
committed
design: 로그인 페이지 에셋 변경 및 반영
1 parent 1933ca2 commit f39424a

File tree

8 files changed

+90
-39
lines changed

8 files changed

+90
-39
lines changed

src/assets/images/field-1.png

628 KB
Loading
20.6 KB
Loading

src/assets/images/postoffice.png

323 KB
Loading
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { Link } from 'react-router';
2+
3+
import FieldImg from '@/assets/images/field-1.png';
4+
import BlurImg from '@/assets/images/landing-blur.png';
5+
import EnvelopeImg from '@/assets/images/postoffice-letter.png';
6+
import PostofficeImg from '@/assets/images/postoffice.png';
7+
import BackgroundImageWrapper from '@/components/BackgroundImageWrapper';
8+
9+
const Background = () => {
10+
return (
11+
<>
12+
<div className="fixed -bottom-8 z-0 flex justify-center overflow-hidden">
13+
<div className="relative flex h-[440px] min-w-[759.5px] items-end justify-center">
14+
<Link to="/landing">
15+
<div className="animate-login-move-up-down absolute bottom-[313px] left-1/2 z-1 -translate-x-1/2">
16+
<p className="text-gray-60 body-r -rotate-[5.28deg] pr-1 text-center">
17+
36.5 설명 보기
18+
</p>
19+
<img
20+
src={EnvelopeImg}
21+
alt="편지 이미지"
22+
className="h-[90px] w-full object-contain object-center"
23+
/>
24+
</div>
25+
</Link>
26+
<img
27+
src={PostofficeImg}
28+
alt="우체국 이미지"
29+
className="absolute bottom-[93px] left-1/2 z-1 h-[184.5px] w-full -translate-x-1/2 object-contain object-[calc(50%-78px)]"
30+
/>
31+
<img
32+
src={FieldImg}
33+
alt="언덕 이미지"
34+
className="z-0 h-[205px] w-full object-cover object-[calc(50%-26px)]"
35+
/>
36+
</div>
37+
</div>
38+
<BackgroundImageWrapper
39+
className="fixed bottom-[-1px] left-1/2 z-0 h-50 w-screen -translate-x-1/2 object-fill"
40+
imageUrl={BlurImg}
41+
/>
42+
</>
43+
);
44+
};
45+
46+
export default Background;

src/pages/Login/index.tsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { GoogleIcon, KakaoIcon, NaverIcon, StampIcon } from '@/assets/icons';
2-
import MainImg from '@/assets/images/main-item-1.png';
2+
3+
import Background from './components/Background';
34

45
const LoginPage = () => {
56
return (
67
<>
7-
<main className="flex grow flex-col items-center justify-between pt-[12%]">
8+
<main className="mt-10 flex grow flex-col items-center justify-between">
89
<section className="relative mt-10 text-center">
910
<StampIcon className="absolute -top-2 -right-0.5 -translate-y-1/2 translate-x-1/2" />
1011
<h2 className="text-xl leading-[24px] font-medium tracking-[-1px]">마음이 맞닿는 온도</h2>
@@ -15,13 +16,7 @@ const LoginPage = () => {
1516
마음의 위안을 얻어보세요.
1617
</p>
1718
</section>
18-
<div className="absolute bottom-0 z-[-20] flex w-screen justify-center overflow-hidden">
19-
<img
20-
src={MainImg}
21-
alt="홈 이미지 1"
22-
className="ml-[-65px] h-[397px] max-w-[759.5px] object-center not-visited:object-cover"
23-
/>
24-
</div>
19+
<Background />
2520
<section className="relative flex gap-4 pb-[5%]">
2621
<button type="button" className="rounded-full bg-[#03C75A] p-3.5">
2722
<NaverIcon />
@@ -34,7 +29,6 @@ const LoginPage = () => {
3429
</button>
3530
</section>
3631
</main>
37-
<div className="absolute bottom-[-1px] left-1/2 z-[-10] h-50 w-screen -translate-x-1/2 bg-[url('/src/assets/images/landing-blur.png')] object-fill" />
3832
</>
3933
);
4034
};

src/styles/animations.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
--animate-show-text: showing 0.5s ease-in-out 6s forwards;
66
--animate-rotate-show: rotate-show 1s ease-in-out forwards;
77
--animate-blink: showing 0.3s forwards;
8+
--animate-login-move-up-down: move-up-down 3s ease-in-out infinite;
89

910
@keyframes down {
1011
0% {
@@ -53,4 +54,14 @@
5354
transform: perspective(800px) rotateY(0deg);
5455
}
5556
}
57+
58+
@keyframes move-up-down {
59+
0%,
60+
100% {
61+
transform: translateY(10px);
62+
}
63+
50% {
64+
transform: translateY(-10px);
65+
}
66+
}
5667
}

src/styles/fonts.css

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
@font-face {
2+
font-family: 'KyoboHandwriting2020A';
3+
src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/KyoboHandwriting2020A.woff')
4+
format('woff');
5+
font-weight: normal;
6+
font-style: normal;
7+
}
8+
@font-face {
9+
font-family: 'iceHimchan-Rg';
10+
src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/iceHimchan-Rg.woff2')
11+
format('woff2');
12+
font-weight: normal;
13+
font-style: normal;
14+
}
15+
@font-face {
16+
font-family: 'Gyeonggi_Batang_Regular';
17+
src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/Batang_Regular.woff')
18+
format('woff');
19+
font-weight: 400;
20+
font-style: normal;
21+
}
22+
@font-face {
23+
font-family: 'HancomMalangMalang';
24+
src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/HancomMalangMalang-Bold.woff2')
25+
format('woff2');
26+
font-weight: 700;
27+
font-style: normal;
28+
}
29+
130
@layer base {
231
/* 폰트들 */
332
.pretendard {
@@ -12,25 +41,4 @@
1241
.batang {
1342
font-family: 'Gyeonggi_Batang_Regular';
1443
}
15-
@font-face {
16-
font-family: 'KyoboHandwriting2020A';
17-
src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/KyoboHandwriting2020A.woff')
18-
format('woff');
19-
font-weight: normal;
20-
font-style: normal;
21-
}
22-
@font-face {
23-
font-family: 'iceHimchan-Rg';
24-
src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/iceHimchan-Rg.woff2')
25-
format('woff2');
26-
font-weight: normal;
27-
font-style: normal;
28-
}
29-
@font-face {
30-
font-family: 'Gyeonggi_Batang_Regular';
31-
src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/Batang_Regular.woff')
32-
format('woff');
33-
font-weight: 400;
34-
font-style: normal;
35-
}
3644
}

src/styles/theme.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
/* https://tailwindcss.com/docs/theme */
22
/* 테마 변수 정의 */
33

4-
@font-face {
5-
font-family: 'HancomMalangMalang';
6-
src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/HancomMalangMalang-Bold.woff2')
7-
format('woff2');
8-
font-weight: 700;
9-
font-style: normal;
10-
}
11-
124
@theme {
135
--color-black: #1c1b1a;
146
--color-white: #fff;

0 commit comments

Comments
 (0)