@@ -4,16 +4,16 @@ import styled from "styled-components";
4
4
5
5
import { IconContainer } from "@/components/misc/icon-container" ;
6
6
import { Link } from "@/components/misc/link" ;
7
- import { Logo } from "@/components/misc/logo " ;
7
+ import { Brand , Logo } from "@/components/sprites " ;
8
8
import { GetFooterDataQuery } from "@/graphql-types" ;
9
9
import { FONT_FAMILY_HEADING , THEME_COLORS } from "@/shared-style" ;
10
10
11
- // Icons
12
- import GithubIconSvg from "@/images/github.svg" ;
13
- import LinkedInIconSvg from "@/images/linkedin.svg" ;
14
- import SlackIconSvg from "@/images/slack.svg" ;
15
- import TwitterIconSvg from "@/images/twitter.svg" ;
16
- import YouTubeIconSvg from "@/images/youtube.svg" ;
11
+ // Brands
12
+ import GithubIconSvg from "@/images/brands/ github.svg" ;
13
+ import LinkedInIconSvg from "@/images/brands/ linkedin.svg" ;
14
+ import SlackIconSvg from "@/images/brands/ slack.svg" ;
15
+ import TwitterIconSvg from "@/images/brands/ twitter.svg" ;
16
+ import YouTubeIconSvg from "@/images/brands/ youtube.svg" ;
17
17
18
18
// Logos
19
19
import LogoTextSvg from "@/images/logo/chillicream-text.svg" ;
@@ -56,8 +56,8 @@ export const Footer: FC = () => {
56
56
< Section >
57
57
< About >
58
58
< LogoContainer >
59
- < LogoIcon { ... LogoIconSvg } />
60
- < LogoText { ... LogoTextSvg } />
59
+ < LogoIcon />
60
+ < LogoText />
61
61
</ LogoContainer >
62
62
< Description >
63
63
We at ChilliCream build the ultimate GraphQL platform.
@@ -70,32 +70,32 @@ export const Footer: FC = () => {
70
70
< ConnectLink to = { tools ! . github ! } >
71
71
< IconContainer >
72
72
< GithubIcon />
73
- </ IconContainer > { " " }
74
- to work with us on the platform
73
+ </ IconContainer >
74
+ { " to work with us on the platform" }
75
75
</ ConnectLink >
76
76
< ConnectLink to = { tools ! . slack ! } >
77
77
< IconContainer >
78
78
< SlackIcon />
79
- </ IconContainer > { " " }
80
- to get in touch with us
79
+ </ IconContainer >
80
+ { " to get in touch with us" }
81
81
</ ConnectLink >
82
82
< ConnectLink to = { tools ! . youtube ! } >
83
83
< IconContainer >
84
84
< YouTubeIcon />
85
- </ IconContainer > { " " }
86
- to learn new stuff
85
+ </ IconContainer >
86
+ { " to learn new stuff" }
87
87
</ ConnectLink >
88
88
< ConnectLink to = { tools ! . twitter ! } >
89
89
< IconContainer >
90
90
< TwitterIcon />
91
- </ IconContainer > { " " }
92
- to stay up-to-date
91
+ </ IconContainer >
92
+ { " to stay up-to-date" }
93
93
</ ConnectLink >
94
94
< ConnectLink to = { tools ! . linkedIn ! } >
95
95
< IconContainer >
96
96
< LinkedInIcon />
97
- </ IconContainer > { " " }
98
- to connect
97
+ </ IconContainer >
98
+ { " to connect" }
99
99
</ ConnectLink >
100
100
</ Connect >
101
101
</ About >
@@ -170,12 +170,12 @@ const LogoContainer = styled.div`
170
170
margin-bottom: 10px;
171
171
` ;
172
172
173
- const LogoIcon = styled ( Logo ) `
173
+ const LogoIcon = styled ( Logo ) . attrs ( LogoIconSvg ) `
174
174
height: 40px;
175
175
fill: ${ THEME_COLORS . footerText } ;
176
176
` ;
177
177
178
- const LogoText = styled ( Logo ) `
178
+ const LogoText = styled ( Logo ) . attrs ( LogoTextSvg ) `
179
179
padding-left: 15px;
180
180
height: 24px;
181
181
fill: ${ THEME_COLORS . footerText } ;
@@ -219,27 +219,27 @@ const ConnectLink = styled(Link)`
219
219
}
220
220
` ;
221
221
222
- const GithubIcon = styled ( GithubIconSvg ) `
222
+ const GithubIcon = styled ( Brand ) . attrs ( GithubIconSvg ) `
223
223
height: 26px;
224
224
fill: ${ THEME_COLORS . footerText } ;
225
225
` ;
226
226
227
- const LinkedInIcon = styled ( LinkedInIconSvg ) `
227
+ const SlackIcon = styled ( Brand ) . attrs ( SlackIconSvg ) `
228
228
height: 22px;
229
229
fill: ${ THEME_COLORS . footerText } ;
230
230
` ;
231
231
232
- const SlackIcon = styled ( SlackIconSvg ) `
232
+ const YouTubeIcon = styled ( Brand ) . attrs ( YouTubeIconSvg ) `
233
233
height: 22px;
234
234
fill: ${ THEME_COLORS . footerText } ;
235
235
` ;
236
236
237
- const TwitterIcon = styled ( TwitterIconSvg ) `
237
+ const TwitterIcon = styled ( Brand ) . attrs ( TwitterIconSvg ) `
238
238
height: 22px;
239
239
fill: ${ THEME_COLORS . footerText } ;
240
240
` ;
241
241
242
- const YouTubeIcon = styled ( YouTubeIconSvg ) `
242
+ const LinkedInIcon = styled ( Brand ) . attrs ( LinkedInIconSvg ) `
243
243
height: 22px;
244
244
fill: ${ THEME_COLORS . footerText } ;
245
245
` ;
0 commit comments