sdy

add arrow box in features

...@@ -18,9 +18,84 @@ const Section = styled.section` ...@@ -18,9 +18,84 @@ const Section = styled.section`
18 const SectionBox = styled.div` 18 const SectionBox = styled.div`
19 max-width: 80%; 19 max-width: 80%;
20 margin: 0 auto; 20 margin: 0 auto;
21 - &.image-section { 21 +`;
22 - max-width: 60%; 22 +
23 +const ImageSection = styled.div`
24 + width: 100%;
25 + overflow: hidden;
26 + position: relative;
27 +`;
28 +
29 +const ItemContainer = styled.div`
30 + display: flex;
31 + transform: translateX(-75deg);
32 +`;
33 +
34 +const ItemBox = styled.div`
35 + padding: 0 10px;
36 +`;
37 +
38 +const ArrowContainer = styled.div`
39 + position: absolute;
40 + top: 0;
41 + bottom: 0;
42 + right: 0;
43 + left: 0;
44 +`;
45 +
46 +const ArrowWrapper = styled.div`
47 + width: 100%;
48 + height: 100%;
49 + display: flex;
50 + align-items: center;
51 + justify-content: space-between;
52 +`;
53 +
54 +const ArrowLeftBox = styled.div`
55 + display: flex;
56 + justify-content: center;
57 + align-items: center;
58 + margin: 40px;
59 + width: 64px;
60 + height: 64px;
61 + background-color: rgba(35, 39, 42, 0.3);
62 + border-radius: 50%;
63 + cursor: pointer;
64 +`;
65 +
66 +const ArrowRightBox = styled.div`
67 + display: flex;
68 + justify-content: center;
69 + align-items: center;
70 + margin: 40px;
71 + width: 64px;
72 + height: 64px;
73 + background-color: rgba(35, 39, 42, 0.3);
74 + border-radius: 50%;
75 + cursor: pointer;
76 +`;
77 +
78 +const ArrowSvg = styled.svg`
79 + width: 32px;
80 + height: 32px;
81 + &.arrow-left-svg {
82 + transform: rotate(180deg);
23 } 83 }
84 + &.arrow-right-svg {
85 + transform: rotate(0deg);
86 + }
87 +`;
88 +
89 +const LeftArrowPath = styled.path`
90 + fill-rule: evenodd;
91 + clip-rule: evenodd;
92 + fill: white;
93 +`;
94 +
95 +const RightArrowPath = styled.path`
96 + fill-rule: evenodd;
97 + clip-rule: evenodd;
98 + fill: white;
24 `; 99 `;
25 100
26 const DescriptionBox = styled.div` 101 const DescriptionBox = styled.div`
...@@ -61,7 +136,8 @@ const ParagraphBox = styled.div` ...@@ -61,7 +136,8 @@ const ParagraphBox = styled.div`
61 `; 136 `;
62 137
63 const Image = styled.img` 138 const Image = styled.img`
64 - height: 500px; 139 + width: 100%;
140 + height: auto;
65 border-radius: 10px; 141 border-radius: 10px;
66 `; 142 `;
67 143
...@@ -110,14 +186,37 @@ export default () => { ...@@ -110,14 +186,37 @@ export default () => {
110 </SectionBox> 186 </SectionBox>
111 </Section> 187 </Section>
112 <Section> 188 <Section>
113 - <SectionBox className="image-section"> 189 + <TitleBox className="desc-header-title">Look Around Linker</TitleBox>
114 - <DescriptionBox> 190 + <ImageSection className="image-section">
115 - <TitleBox className="desc-header-title"> 191 + <ItemContainer>
116 - Look Around Linker 192 + <ItemBox>
117 - </TitleBox>
118 <Image src={ChatImage} alt={"Back Image"} /> 193 <Image src={ChatImage} alt={"Back Image"} />
119 - </DescriptionBox> 194 + </ItemBox>
120 - </SectionBox> 195 + <ItemBox>
196 + <Image src={ChatImage} alt={"Back Image"} />
197 + </ItemBox>
198 + <ItemBox>
199 + <Image src={ChatImage} alt={"Back Image"} />
200 + </ItemBox>
201 + <ItemBox>
202 + <Image src={ChatImage} alt={"Back Image"} />
203 + </ItemBox>
204 + </ItemContainer>
205 + <ArrowContainer>
206 + <ArrowWrapper>
207 + <ArrowLeftBox>
208 + <ArrowSvg fill="none" className="arrow-left-svg">
209 + <LeftArrowPath d="M22.2398 17.0778L11.8576 27.5689C11.2532 28.1437 10.3287 28.1437 9.75984 27.5689C9.19095 26.994 9.19095 26.0599 9.75984 25.4491L19.1109 16L9.75984 6.5509C9.19095 5.97605 9.19095 5.00599 9.75984 4.43114C10.3287 3.85629 11.2532 3.85629 11.8576 4.43114L22.2398 14.9581C22.8087 15.5329 22.8087 16.4671 22.2398 17.0778Z" />
210 + </ArrowSvg>
211 + </ArrowLeftBox>
212 + <ArrowRightBox>
213 + <ArrowSvg fill="none" className="arrow-right-svg">
214 + <RightArrowPath d="M22.2398 17.0778L11.8576 27.5689C11.2532 28.1437 10.3287 28.1437 9.75984 27.5689C9.19095 26.994 9.19095 26.0599 9.75984 25.4491L19.1109 16L9.75984 6.5509C9.19095 5.97605 9.19095 5.00599 9.75984 4.43114C10.3287 3.85629 11.2532 3.85629 11.8576 4.43114L22.2398 14.9581C22.8087 15.5329 22.8087 16.4671 22.2398 17.0778Z" />
215 + </ArrowSvg>
216 + </ArrowRightBox>
217 + </ArrowWrapper>
218 + </ArrowContainer>
219 + </ImageSection>
121 </Section> 220 </Section>
122 </Main> 221 </Main>
123 <Footer /> 222 <Footer />
......