Skip to content

Commit b0cb8ee

Browse files
committed
tweak website design
1 parent 0df5cb2 commit b0cb8ee

File tree

7 files changed

+479
-310
lines changed

7 files changed

+479
-310
lines changed

docs/api-reference.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"rename-version": "docusaurus-rename-version",
1010
"crowdin-upload": "crowdin --config ../crowdin.yaml upload sources --auto-update -b source",
1111
"crowdin-download": "crowdin --config ../crowdin.yaml download -b source",
12-
"postinstall": "patch-package"
12+
"postinstall": "patch-package"
1313
},
1414
"devDependencies": {
15-
"docusaurus": "^1.12.0",
15+
"docusaurus": "^1.14.0",
1616
"localtunnel": "^2.0.0"
1717
},
1818
"dependencies": {

website/pages/en/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class HomeSplash extends React.Component {
4343
<div className="inner">
4444
<h2 className="projectTitle">
4545
{siteConfig.title}
46-
<small>{siteConfig.tagline}</small>
4746
</h2>
47+
<p>{siteConfig.tagline}</p>
4848

4949
<div className="section promoSection">
5050
<div className="promoRow">
@@ -95,7 +95,7 @@ class Index extends React.Component {
9595
return (
9696
<div>
9797
<HomeSplash language={language} />
98-
<div className="mainContainer">
98+
<div className="heroContainer">
9999
<Container padding={['bottom', 'top']}>
100100
<GridBlock
101101
align="center"

website/sidebars.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"upgrading-from-4.x"
4343
],
4444
"API Reference": [
45-
"api-reference",
4645
"navigation-prop",
4746
"navigation-context",
4847
{

website/siteConfig.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const siteConfig = {
1616
projectName: 'react-navigation.github.io',
1717
headerLinks: [
1818
{ doc: 'getting-started', label: 'Docs' },
19-
{ doc: 'api-reference', label: 'API' },
2019
{ page: 'help', label: 'Help' },
2120
{ blog: true, label: 'Blog' },
2221
],
@@ -41,7 +40,7 @@ const siteConfig = {
4140
'https://github.com/react-navigation/react-navigation.github.io/edit/source/docs/',
4241

4342
gaTrackingId: 'UA-10128745-16',
44-
docsSideNavCollapsible: false,
43+
docsSideNavCollapsible: true,
4544
algolia: {
4645
apiKey: 'c967b4a1491b9cb486d3dca087b771e6',
4746
indexName: 'reactnavigation',

website/static/css/custom.css

Lines changed: 16 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,6 @@
44
}
55

66
@media only screen and (min-width: 1024px) {
7-
.mainContainer {
8-
background: #f9f9f9;
9-
padding: 0;
10-
}
11-
12-
.docMainWrapper .mainContainer {
13-
padding: 30px 0 !important;
14-
}
15-
16-
.toc {
17-
padding: 30px 0 !important;
18-
}
19-
20-
.toc .toggleNav ul {
21-
padding: 0 !important;
22-
}
23-
24-
.onPageNav {
25-
top: 70px;
26-
}
27-
28-
.container.paddingTop {
29-
padding-top: 70px;
30-
}
31-
32-
.container.paddingBottom {
33-
padding-bottom: 70px;
34-
}
357
}
368

379
@media only screen and (max-width: 1023px) {
@@ -44,17 +16,27 @@
4416
}
4517

4618
body {
19+
background: #fff;
20+
}
21+
22+
blockquote {
23+
background-color: rgba(226, 232, 125, 0.2);
24+
border-left: 5px solid rgba(226, 232, 125, 0.5);
25+
}
26+
27+
pre code {
28+
background-color: #f9f9f9 !important;
29+
border-left: 4px solid #6b52ae;
30+
}
31+
32+
.heroContainer {
4733
background: #f9f9f9;
4834
}
4935

5036
.homeContainer {
5137
background: #fff;
5238
}
5339

54-
h2 {
55-
font-weight: normal;
56-
}
57-
5840
.pluginRowBlock .button {
5941
margin-left: 3px;
6042
margin-right: 3px;
@@ -66,20 +48,8 @@ h2 {
6648
color: #6b52ae;
6749
}
6850

69-
h2 p {
51+
.headerTitleWithLogo {
7052
font-weight: 500;
71-
color: rgba(0, 0, 0, 0.7);
72-
}
73-
74-
article h1 {
75-
margin-top: 25px;
76-
margin-bottom: 25px;
77-
font-weight: normal;
78-
text-decoration: underline;
79-
}
80-
81-
article h2 {
82-
margin-top: 16px;
8353
}
8454

8555
.projectTitle {
@@ -91,25 +61,11 @@ article h2 {
9161
margin-top: 0.4em;
9262
}
9363

94-
h1.postHeaderTitle {
95-
}
96-
97-
blockquote {
98-
background-color: rgba(226, 232, 125, 0.1);
99-
border-left: 5px solid rgba(226, 232, 125, 0.3);
100-
}
101-
10264
.run-code-button {
10365
margin-top: -25px;
10466
margin-bottom: 5px;
10567
display: inline-block;
10668
}
107-
108-
pre code {
109-
background-color: #fff;
110-
border-left: 4px solid #6b52ae;
111-
}
112-
11369
.navWrapper li {
11470
word-wrap: normal;
11571
}
@@ -135,4 +91,4 @@ samp {
13591

13692
code.template {
13793
display: none;
138-
}
94+
}

0 commit comments

Comments
 (0)