File tree Expand file tree Collapse file tree 14 files changed +40
-49
lines changed Expand file tree Collapse file tree 14 files changed +40
-49
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
22import styled from "styled-components" ;
33import CrowdfundAppealSvg from "tsx:assets/svgs/mini-guides/appeal/crowdfund-appeal.svg" ;
4- import ImageRenderer from "../ImageRenderer " ;
4+ import { StyledImage } from "../PageContentsTemplate " ;
55
66const StyledCrowdfundAppealSvg = styled ( CrowdfundAppealSvg ) `
77 [class$="rect-bg"] {
@@ -33,6 +33,6 @@ const StyledCrowdfundAppealSvg = styled(CrowdfundAppealSvg)`
3333 }
3434` ;
3535
36- const CrowdfundAppeal : React . FC = ( ) => < ImageRenderer image = { StyledCrowdfundAppealSvg } /> ;
36+ const CrowdfundAppeal : React . FC = ( ) => < StyledImage as = { StyledCrowdfundAppealSvg } /> ;
3737
3838export default CrowdfundAppeal ;
Original file line number Diff line number Diff line change 11import React from "react" ;
22import styled from "styled-components" ;
33import PayoffSimulatorSvg from "tsx:assets/svgs/mini-guides/appeal/payoff-simulator.svg" ;
4- import ImageRenderer from "../ImageRenderer " ;
4+ import { StyledImage } from "../PageContentsTemplate " ;
55
66const StyledPayoffSimulatorSvg = styled ( PayoffSimulatorSvg ) `
77 [class$="circle-1"] {
@@ -72,6 +72,6 @@ const StyledPayoffSimulatorSvg = styled(PayoffSimulatorSvg)`
7272 }
7373` ;
7474
75- const PayoffSimulator : React . FC = ( ) => < ImageRenderer image = { StyledPayoffSimulatorSvg } /> ;
75+ const PayoffSimulator : React . FC = ( ) => < StyledImage as = { StyledPayoffSimulatorSvg } /> ;
7676
7777export default PayoffSimulator ;
Original file line number Diff line number Diff line change 11import React from "react" ;
22import styled from "styled-components" ;
33import StageOneSvg from "tsx:assets/svgs/mini-guides/appeal/stage-one.svg" ;
4- import ImageRenderer from "../ImageRenderer " ;
4+ import { StyledImage } from "../PageContentsTemplate " ;
55
66const StyledStageOneSvg = styled ( StageOneSvg ) `
77 [class$="rect-1"],
@@ -69,6 +69,6 @@ const StyledStageOneSvg = styled(StageOneSvg)`
6969 }
7070` ;
7171
72- const StageOne : React . FC = ( ) => < ImageRenderer image = { StyledStageOneSvg } /> ;
72+ const StageOne : React . FC = ( ) => < StyledImage as = { StyledStageOneSvg } /> ;
7373
7474export default StageOne ;
Original file line number Diff line number Diff line change 11import React from "react" ;
22import styled from "styled-components" ;
33import StageTwoSvg from "tsx:assets/svgs/mini-guides/appeal/stage-two.svg" ;
4- import ImageRenderer from "../ImageRenderer " ;
4+ import { StyledImage } from "../PageContentsTemplate " ;
55
66const StyledStageTwoSvg = styled ( StageTwoSvg ) `
77 [class$="rect-1"] {
@@ -50,6 +50,6 @@ const StyledStageTwoSvg = styled(StageTwoSvg)`
5050 }
5151` ;
5252
53- const StageTwo : React . FC = ( ) => < ImageRenderer image = { StyledStageTwoSvg } /> ;
53+ const StageTwo : React . FC = ( ) => < StyledImage as = { StyledStageTwoSvg } /> ;
5454
5555export default StageTwo ;
Original file line number Diff line number Diff line change 11import React from "react" ;
22import styled from "styled-components" ;
33import VotingModuleSvg from "tsx:assets/svgs/mini-guides/binary-voting/voting-module.svg" ;
4- import ImageRenderer from "../ImageRenderer " ;
4+ import { StyledImage } from "../PageContentsTemplate " ;
55
66const StyledVotingModuleSvg = styled ( VotingModuleSvg ) `
77 [class$="rect-1"],
@@ -34,6 +34,6 @@ const StyledVotingModuleSvg = styled(VotingModuleSvg)`
3434 }
3535` ;
3636
37- const VotingModule : React . FC = ( ) => < ImageRenderer image = { StyledVotingModuleSvg } /> ;
37+ const VotingModule : React . FC = ( ) => < StyledImage as = { StyledVotingModuleSvg } /> ;
3838
3939export default VotingModule ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import React from "react" ;
22import styled from "styled-components" ;
33import HowItWorksSvg from "tsx:assets/svgs/mini-guides/onboarding/how-it-works.svg" ;
4- import ImageRenderer from "../ImageRenderer " ;
4+ import { StyledImage } from "../PageContentsTemplate " ;
55
66const StyledHowItWorksSvg = styled ( HowItWorksSvg ) `
77 [class$="rect-1"],
@@ -19,6 +19,6 @@ const StyledHowItWorksSvg = styled(HowItWorksSvg)`
1919 }
2020` ;
2121
22- const HowItWorks : React . FC = ( ) => < ImageRenderer image = { StyledHowItWorksSvg } /> ;
22+ const HowItWorks : React . FC = ( ) => < StyledImage as = { StyledHowItWorksSvg } /> ;
2323
2424export default HowItWorks ;
Original file line number Diff line number Diff line change 11import React from "react" ;
22import styled from "styled-components" ;
33import WhatDoINeedSvg from "tsx:assets/svgs/mini-guides/onboarding/what-do-i-need.svg" ;
4- import ImageRenderer from "../ImageRenderer " ;
4+ import { StyledImage } from "../PageContentsTemplate " ;
55
66const StyledWhatDoINeedSvg = styled ( WhatDoINeedSvg ) `
77 [class$="rect-1"] {
@@ -70,6 +70,6 @@ const StyledWhatDoINeedSvg = styled(WhatDoINeedSvg)`
7070 }
7171` ;
7272
73- const WhatDoINeed : React . FC = ( ) => < ImageRenderer image = { StyledWhatDoINeedSvg } /> ;
73+ const WhatDoINeed : React . FC = ( ) => < StyledImage as = { StyledWhatDoINeedSvg } /> ;
7474
7575export default WhatDoINeed ;
Original file line number Diff line number Diff line change 11import React , { useState } from "react" ;
2- import styled from "styled-components" ;
2+ import styled , { css } from "styled-components" ;
3+ import { landscapeStyle } from "styles/landscapeStyle" ;
34import MainStructureTemplate from "./MainStructureTemplate" ;
45
56export const ParagraphsContainer = styled . div `
@@ -18,6 +19,16 @@ export const LeftContentContainer = styled.div`
1819 flex-direction: column;
1920` ;
2021
22+ export const StyledImage = styled . div `
23+ width: calc(260px + (460 - 260) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
24+
25+ ${ landscapeStyle (
26+ ( ) => css `
27+ width: 389px;
28+ `
29+ ) }
30+ ` ;
31+
2132const LinksContainer = styled . div `
2233 display: flex;
2334 flex-direction: column;
Original file line number Diff line number Diff line change 11import React from "react" ;
22import styled from "styled-components" ;
33import VotingModuleSvg from "tsx:assets/svgs/mini-guides/ranked-voting/voting-module.svg" ;
4- import ImageRenderer from "../ImageRenderer " ;
4+ import { StyledImage } from "../PageContentsTemplate " ;
55
66const StyledVotingModuleSvg = styled ( VotingModuleSvg ) `
77 [class$="path-1"],
@@ -49,13 +49,16 @@ const StyledVotingModuleSvg = styled(VotingModuleSvg)`
4949 fill: ${ ( { theme } ) => theme . primaryBlue } ;
5050 }
5151
52- [class$="path-9"],
5352 [class$="path-11"],
5453 [class$="path-2"],
5554 [class$="path-6"] {
5655 fill: ${ ( { theme } ) => theme . primaryText } ;
5756 }
5857
58+ [class$="path-9"] {
59+ fill: ${ ( { theme } ) => theme . secondaryText } ;
60+ }
61+
5962 [class$="path-10"] {
6063 fill: ${ ( { theme } ) => theme . error } ;
6164 }
@@ -65,6 +68,6 @@ const StyledVotingModuleSvg = styled(VotingModuleSvg)`
6568 }
6669` ;
6770
68- const VotingModule : React . FC = ( ) => < ImageRenderer image = { StyledVotingModuleSvg } /> ;
71+ const VotingModule : React . FC = ( ) => < StyledImage as = { StyledVotingModuleSvg } /> ;
6972
7073export default VotingModule ;
You can’t perform that action at this time.
0 commit comments