Skip to content

Commit 56ffdcf

Browse files
authored
Docs site redesign fixes (#3640)
* Footer - fix alignment and text links style * fix indentetion * replace logo * bumping version
1 parent ee4db5e commit 56ffdcf

File tree

4 files changed

+50
-38
lines changed

4 files changed

+50
-38
lines changed

docuilib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uilib-docs",
3-
"version": "3.14.0",
3+
"version": "3.15.0",
44
"main": "./src/index.ts",
55
"scripts": {
66
"docusaurus": "docusaurus",

docuilib/src/css/custom.css

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
2-
* Any CSS included here will be global. The classic template
3-
* bundles Infima by default. Infima is a CSS framework designed to
4-
* work well for content-centric websites.
5-
*/
2+
* Any CSS included here will be global. The classic template
3+
* bundles Infima by default. Infima is a CSS framework designed to
4+
* work well for content-centric websites.
5+
*/
66

77
@import url('https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800,900&display=swap');
88
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@@ -151,23 +151,32 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
151151
background-color: #F8F9FA;
152152
padding-top: 64px;
153153
padding-bottom: 107px;
154-
justify-content: center;
155154
}
156155
.footer__container {
157-
justify-content: center;
158156
border-top: 1px solid #D2D6D8;
159157
padding-top: 20px;
160158
margin-left: 350px;
161159
margin-right: 350px;
162160
}
163161
.footer__links {
164162
display: flex;
165-
align-items: center;
166163
justify-content: space-between;
167164
margin-bottom: 40px;
168165
}
169166
.footer__section {
170167
width: 200px;
168+
display: flex;
169+
}
170+
.footer__section__item a {
171+
display: flex;
172+
align-items: center;
173+
}
174+
.footer__section__item span {
175+
margin-right: 4px;
176+
font-weight: 500;
177+
font-size: 14px;
178+
letter-spacing: 0.3px;
179+
line-height: 38px;
171180
}
172181
.right__section {
173182
display: flex;
@@ -187,7 +196,6 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
187196
line-height: 130%;
188197
}
189198

190-
191199
/** Component page tabs */
192200

193201
.main-tabs {

docuilib/src/theme/Footer/index.tsx

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,39 @@ function Footer() {
2525
</div>
2626

2727
<div className="footer__section">
28-
<a
29-
href="https://github.com/wix/react-native-ui-lib"
30-
target="_blank"
31-
rel="noreferrer noopener"
32-
aria-label="Open gitHub"
33-
className="text__link"
34-
>
35-
<span>GitHub</span>
36-
<img
37-
src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/externalSmall.png"
38-
alt="external link icon"
39-
width="17"
40-
height="16"
41-
/>
42-
</a>
43-
<a
44-
href="https://snack.expo.io/@ethanshar/rnuilib_snack?platform=ios&supportedPlatforms=ios,android"
45-
target="_blank"
46-
rel="noreferrer noopener"
47-
aria-label="Open expo snack"
48-
>
49-
<span>Expo-Snack</span>
50-
<img
51-
src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/externalSmall.png"
52-
alt="external link icon"
53-
width="17"
54-
height="16"
55-
/>
56-
</a>
28+
<div className="footer__section__item">
29+
<a
30+
href="https://github.com/wix/react-native-ui-lib"
31+
target="_blank"
32+
rel="noreferrer noopener"
33+
aria-label="Open gitHub"
34+
className="text__link"
35+
>
36+
<span>GitHub</span>
37+
<img
38+
src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/externalSmall.png"
39+
alt="external link icon"
40+
width="17"
41+
height="16"
42+
/>
43+
</a>
44+
</div>
45+
<div className="footer__section__item">
46+
<a
47+
href="https://snack.expo.io/@ethanshar/rnuilib_snack?platform=ios&supportedPlatforms=ios,android"
48+
target="_blank"
49+
rel="noreferrer noopener"
50+
aria-label="Open expo snack"
51+
>
52+
<span>Expo-Snack</span>
53+
<img
54+
src="https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/site/externalSmall.png"
55+
alt="external link icon"
56+
width="17"
57+
height="16"
58+
/>
59+
</a>
60+
</div>
5761
</div>
5862

5963
<div className="footer__section right__section">

docuilib/static/img/logo_rnui.png

3.08 KB
Loading

0 commit comments

Comments
 (0)