You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/pages/index.js
+36-2
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,12 @@ const HomeSplash = props => {
30
30
31
31
constLogo=props=>(
32
32
<divclassName="projectLogo">
33
-
<imgsrc={props.img_src}alt="Project Logo"/>
33
+
<img
34
+
src={props.imgSrc}
35
+
alt="Project Logo"
36
+
height={props.imgHeight}
37
+
width={props.imgWidth}
38
+
/>
34
39
</div>
35
40
)
36
41
@@ -55,7 +60,11 @@ const HomeSplash = props => {
55
60
56
61
return(
57
62
<SplashContainer>
58
-
<Logoimg_src={`${baseUrl}img/logo-large.png`}/>
63
+
<Logo
64
+
imgSrc={`${baseUrl}img/logo-large.png`}
65
+
imgWidth={128}
66
+
imgHeight={128}
67
+
/>
59
68
<divclassName="inner">
60
69
<ProjectTitlesiteConfig={siteConfig}/>
61
70
<divclassName="pluginWrapper buttonWrapper">
@@ -82,6 +91,8 @@ export default class Index extends React.Component {
82
91
imageAlign={props.imageAlign||'center'}
83
92
contents={props.children}
84
93
layout={props.layout}
94
+
imageHeight={props.imageHeight}
95
+
imageWidth={props.imageWidth}
85
96
/>
86
97
</Container>
87
98
)
@@ -109,6 +120,7 @@ export default class Index extends React.Component {
109
120
"## The Problem \n - You want tests for your UI that avoid including implementation details and rather focus on making your tests give you the confidence for which they are intended. \n - You want your tests to be maintainable so refactors _(changes to implementation but not functionality)_ don't break your tests and slow you and your team down.",
110
121
image: `${baseUrl}img/interrobang-128x128.png`,
111
122
imageAlt: 'The problem (picture of a question mark)',
123
+
imageHeight: 128,
112
124
imageAlign: 'left',
113
125
},
114
126
]}
@@ -124,6 +136,7 @@ export default class Index extends React.Component {
124
136
image: `${baseUrl}img/star-128x128.png`,
125
137
imageAlign: 'right',
126
138
imageAlt: 'The solution (picture of a star)',
139
+
imageHeight: 128,
127
140
content:
128
141
'## The Solution \n The Testing Library family of libraries is a very light-weight solution for testing without all the implementation details. The main utilities it provides involve querying for nodes similarly to how users would find them. In this way, testing-library helps ensure your tests give you confidence in your UI code.',
129
142
},
@@ -136,6 +149,7 @@ export default class Index extends React.Component {
136
149
image: `${baseUrl}img/trophy-128x128.png`,
137
150
imageAlign: 'left',
138
151
imageAlt: 'The guiding principle (picture of a brick wall)',
152
+
imageHeight: 128,
139
153
content:
140
154
'_The more your tests resemble the way your software is used, the more confidence they can give you._',
141
155
},
@@ -153,13 +167,17 @@ export default class Index extends React.Component {
153
167
imageAlign: 'top',
154
168
title: 'Write Maintainable Tests',
155
169
imageAlt: '',
170
+
imageWidth: 80,
171
+
imageHeight: 80,
156
172
},
157
173
{
158
174
content: 'Interact with your app the same way as your users',
159
175
image: `${baseUrl}img/check-128x128.png`,
160
176
imageAlign: 'top',
161
177
title: 'Develop with Confidence',
162
178
imageAlt: '',
179
+
imageWidth: 80,
180
+
imageHeight: 80,
163
181
},
164
182
{
165
183
content:
@@ -168,6 +186,8 @@ export default class Index extends React.Component {
168
186
imageAlign: 'top',
169
187
title: 'Accessible by Default',
170
188
imageAlt: '',
189
+
imageWidth: 80,
190
+
imageHeight: 80,
171
191
},
172
192
]}
173
193
</Block>
@@ -181,72 +201,84 @@ export default class Index extends React.Component {
0 commit comments