Skip to content

Commit b1c4ae9

Browse files
authored
feat: Updated UI of Page[Help] (#1323)
* Docs: Updated UI of Page[Help] * Update custom.css * Update help.js
1 parent 9e1759a commit b1c4ae9

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

src/css/custom.css

+16-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,18 @@ html[data-theme='dark'] {
99
.wrapper {
1010
margin: 0 auto;
1111
max-width: 1100px;
12-
padding: 0 20px;
12+
padding: 0 70px;
13+
margin-top: 30px;
14+
}
15+
16+
.help-heading-1 {
17+
font-size: 3em;
18+
margin-bottom: 30px;
19+
}
20+
21+
.help-heading-2 {
22+
font-size: 2.5em;
23+
margin: 30px 0;
1324
}
1425

1526
.center {
@@ -121,16 +132,12 @@ html[data-theme='dark'] {
121132
padding-bottom: 40px;
122133
padding-top: 40px;
123134
}
124-
125-
.wrapper {
126-
max-width: 1400px;
127-
}
128135
}
129136

130137
.mainContainer {
131138
flex: 1 1 0%;
132139
max-width: 100%;
133-
padding: 40px 0;
140+
margin-bottom: 50px;
134141
}
135142

136143
.mainContainer .wrapper {
@@ -396,6 +403,9 @@ html[data-theme='dark'] {
396403
}
397404

398405
@media only screen and (max-width: 735px) {
406+
.wrapper {
407+
padding: 0 20px;
408+
}
399409
.showcaseSection .logos img {
400410
max-height: 64px;
401411
padding: 20px;

src/pages/help.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default function Help(props) {
6161
<div className="mainContainer documentContainer postContainer helpContainer">
6262
<div>
6363
<header>
64-
<h1>Need help?</h1>
64+
<h1 className="help-heading-1">Need help?</h1>
6565
</header>
6666
<GridBlock
6767
contents={supportLinks.slice(0, 3)}
@@ -74,7 +74,7 @@ export default function Help(props) {
7474
align="left"
7575
/>
7676
<section>
77-
<h2>Buy a Course</h2>
77+
<h2 className="help-heading-2">Buy a course</h2>
7878
<p>
7979
Learn how to test JavaScript with{' '}
8080
<ExternalLink href="https://kentcdodds.com">
@@ -96,7 +96,7 @@ export default function Help(props) {
9696
</div>
9797
</section>
9898
<header className="postHeader">
99-
<h1>Want to help?</h1>
99+
<h2 className="help-heading-2">Want to help?</h2>
100100
</header>
101101
<p>
102102
Thanks! The Testing Library maintainers are happy to maintain this

0 commit comments

Comments
 (0)