File tree Expand file tree Collapse file tree 8 files changed +706
-20
lines changed
sections/Home/FeaturesContainer Expand file tree Collapse file tree 8 files changed +706
-20
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,15 @@ const Features = (props) => {
93
93
< ContentWrapper >
94
94
< h2 > { props . title } </ h2 >
95
95
< p className = "text" > { props . desc } </ p >
96
- < Link to = { props . redirectLink } > Learn more →</ Link >
96
+ { props . redirectLink ? < Link to = { props . redirectLink } > Learn more →</ Link >
97
+ : ( < div className = "small-card-container" >
98
+ { props . redirectLinkWithImage . map ( ( item ) => (
99
+ < Link key = { item . text } className = "small-card" to = { item . redirect } >
100
+ < img src = { item . image } width = { 40 } />
101
+ < span > { item . text } </ span >
102
+ </ Link >
103
+ ) ) }
104
+ </ div > ) }
97
105
</ ContentWrapper >
98
106
{ props . animationOne ? (
99
107
< ImageWrapper ref = { containerRef } >
@@ -117,7 +125,7 @@ const Features = (props) => {
117
125
>
118
126
< img src = { getPerson ( props . cursor * 2 + 1 ) } alt = "" />
119
127
</ SvgRandomWrapper >
120
- < Link to = { props . redirectLink } >
128
+ < Link to = { props . redirectLink ? props . redirectLink : props . redirectLinkWithImage [ 0 ] . redirect } >
121
129
< img src = { props . imgLink } alt = "image" />
122
130
</ Link >
123
131
</ ImageWrapper >
@@ -143,7 +151,7 @@ const Features = (props) => {
143
151
>
144
152
< img src = { getPerson ( props . cursor * 2 + 1 ) } alt = "" />
145
153
</ SvgRandomWrapper >
146
- < Link to = { props . redirectLink } >
154
+ < Link to = { props . redirectLink ? props . redirectLink : props . redirectLinkWithImage [ 0 ] . redirect } >
147
155
< img src = { props . imgLink } alt = "image" />
148
156
</ Link >
149
157
</ ImageWrapperTwo >
Original file line number Diff line number Diff line change @@ -38,6 +38,30 @@ export const Container = styled.div`
38
38
animation-timing-function: ease-in-out;
39
39
-webkit-animation-timing-function: ease-in-out;
40
40
}
41
+ .small-card-container {
42
+ display: flex;
43
+ gap: 1rem;
44
+ }
45
+ .small-card {
46
+ padding: 0.75rem 1.25rem;
47
+ display: flex;
48
+ gap: 0.75rem;
49
+ align-items: center;
50
+ width: fit-content;
51
+ border-radius: 0.25rem;
52
+ cursor: pointer;
53
+ color: ${ ( props ) => props . theme . text } ;
54
+ border: 2px solid ${ ( props ) => props . theme . whiteZeroEightToBlackZeroEight } ;
55
+ &:hover {
56
+ background-color: ${ ( props ) => props . theme . whiteZeroEightToBlackZeroEight } ;
57
+ }
58
+
59
+ @media screen and (max-width: 500px) {
60
+ flex-direction: column;
61
+ justify-content: center;
62
+ text-align: center;
63
+ }
64
+ }
41
65
` ;
42
66
export const SvgRandomWrapper = styled . div `
43
67
position: absolute;
You can’t perform that action at this time.
0 commit comments