반려견의 속마음을
반려견을 잘 케어해 줄
잘 아는 브리더
@@ -100,7 +105,7 @@ const JoinSection = () => {
diff --git a/src/components/main/ServiceSection.tsx b/src/components/main/ServiceSection.tsx
index 5a5081b6..a9234ca4 100644
--- a/src/components/main/ServiceSection.tsx
+++ b/src/components/main/ServiceSection.tsx
@@ -1,6 +1,9 @@
import Layout from 'components/common/Layout';
import { styled } from 'styled-components';
import TwoPuppys from 'assets/images/main/service_left.png';
+import TwoPuppysAvif from 'assets/images/main/service_left.avif';
+import TwoPuppysWebp from 'assets/images/main/service_left.webp';
+import Picture from 'components/common/Picture';
const Service = styled.section`
width: 100%;
@@ -9,14 +12,13 @@ const Service = styled.section`
display: flex;
gap: 90px;
margin: 222px 320px 184px;
+ .left-image img {
+ width: 480px;
+ height: 440px;
+ }
}
`;
-const TowPuppysImage = styled.img`
- width: 480px;
- height: 440px;
-`;
-
const TextWrapper = styled.div`
display: flex;
flex-direction: column;
@@ -70,7 +72,13 @@ const ServiceSection = () => {
완전히 새로운 서비스
diff --git a/src/components/main/StartSection.tsx b/src/components/main/StartSection.tsx
index 04b30928..b8ff8a10 100644
--- a/src/components/main/StartSection.tsx
+++ b/src/components/main/StartSection.tsx
@@ -1,15 +1,31 @@
import { styled } from 'styled-components';
import Layout from 'components/common/Layout';
import BgImage from 'assets/images/main/start_background.png';
+import BgImageAvif from 'assets/images/main/start_background.avif';
+import BgImageWebp from 'assets/images/main/start_background.webp';
+import Picture from 'components/common/Picture';
const Start = styled.section`
width: 100%;
height: 717px;
background: linear-gradient(324deg, #3cbe9f 8.33%, #8ff9b9 100%);
- background-image: url(${BgImage});
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
+ position: relative;
+ overflow: hidden;
+ .background {
+ img {
+ z-index: 1;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ width: 1920px;
+ height: 717px;
+ }
+ & + div {
+ z-index: 2;
+ position: relative;
+ }
+ }
h2 {
margin-top: 229px;
color: ${({ theme }) => theme.colors.white};
@@ -62,6 +78,7 @@ const TagWrapper = styled.div`
export default function StartSection() {
return (
펫트리와 함께,
diff --git a/src/components/main/TeamMissionSection.tsx b/src/components/main/TeamMissionSection.tsx
index afa874a6..81bae6f1 100644
--- a/src/components/main/TeamMissionSection.tsx
+++ b/src/components/main/TeamMissionSection.tsx
@@ -1,18 +1,30 @@
import Layout from 'components/common/Layout';
import { styled } from 'styled-components';
import Background from 'assets/images/main/team_mission_background.png';
+import BackgroundAvif from 'assets/images/main/team_mission_background.avif';
+import BackgroundWebp from 'assets/images/main/team_mission_background.webp';
+import Picture from 'components/common/Picture';
const TeamMission = styled.section`
position: relative;
width: 100%;
height: 793px;
background-color: #ddd;
- background-image: url(${Background});
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
+ position: relative;
+ overflow: hidden;
+ .background img {
+ z-index: 1;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ width: 1920px;
+ height: 793px;
+ }
`;
const Message = styled.div`
+ z-index: 2;
+ position: relative;
display: inline-flex;
height: 334px;
padding: 24px 60px;
@@ -48,6 +60,13 @@ const Message = styled.div`
const TeamMissionSection = () => {
return (