Skip to content

Commit 0bee293

Browse files
authored
Merge pull request #115 from sgdevcamp2025/fe/fix/114-image-url
[FE] fix: background-image의 url을 import해서 모듈로 수정
2 parents 49dc2ff + e4a7893 commit 0bee293

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/frontend/src/components/layout/PublicOnlyLayout/styles.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import styled from 'styled-components';
22

3+
import BackgroundImage from '@/assets/background.svg';
4+
35
export const LayoutContainer = styled.div`
46
position: relative;
57
width: 100%;
@@ -15,7 +17,7 @@ export const Background = styled.div`
1517
width: 100vw;
1618
height: 100vh;
1719
18-
background-image: url('/src/assets/background.svg');
20+
background-image: url(${BackgroundImage});
1921
background-repeat: no-repeat;
2022
background-size: cover;
2123
`;

src/frontend/src/pages/LandingPage/styles.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import styled from 'styled-components';
22

3+
import LandingBackgroundImage from '@/assets/landingBackground.png';
4+
import LandingPreview from '@/assets/landingPreview.webp';
5+
import LandingStars from '@/assets/landingStars.webp';
36
import { BodyRegularText, DisplayText } from '@/styles/Typography';
47

58
export const PageContainer = styled.div`
@@ -9,7 +12,7 @@ export const PageContainer = styled.div`
912
1013
width: 100%;
1114
12-
background-image: url('/src/assets/landingBackground.png');
15+
background-image: url(${LandingBackgroundImage});
1316
background-repeat: no-repeat;
1417
background-position: 0 1%;
1518
background-size: cover;
@@ -25,7 +28,7 @@ export const DescriptionContainer = styled.div`
2528
padding: 0 4rem;
2629
padding-top: 10rem;
2730
28-
background-image: url('/src/assets/landingStars.webp');
31+
background-image: url(${LandingStars});
2932
background-repeat: no-repeat;
3033
background-size: 90%;
3134
`;
@@ -56,7 +59,7 @@ export const PreviewImageWrapper = styled.div`
5659
max-width: 60rem;
5760
min-height: 50rem;
5861
59-
background-image: url('/src/assets/landingPreview.webp');
62+
background-image: url(${LandingPreview});
6063
background-repeat: no-repeat;
6164
background-position: 50%;
6265
background-size: contain;

src/frontend/src/pages/LoginPage/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { motion } from 'motion/react';
22
import styled from 'styled-components';
33

4+
import QRCodeAssetImage from '@/assets/qrcode.svg';
45
import {
56
BodyMediumText,
67
BodyRegularText,
@@ -146,7 +147,7 @@ export const QRCodeWrapper = styled.div`
146147
export const QRCodeImage = styled.div`
147148
width: 100%;
148149
height: 100%;
149-
background-image: url('/src/assets/qrcode.svg');
150+
background-image: url(${QRCodeAssetImage});
150151
background-size: cover;
151152
`;
152153

0 commit comments

Comments
 (0)