Skip to content

Commit 14c9007

Browse files
authored
Infra/new landing page (#1091)
* WIP - new landing page * Implement CodeSection * move button styling to index page area only * declare button style only in index page * Connect all links * Fix styling * remove height from intro cover image * Update coloss * update favicon * Update components page UI and reorganize * Fix main layout * Redesign component page API * Small touchups * set fixed sidebar with table of content and visuals * Layout fixes * Show selected prop * Move notes out of the component header card * Minor fixes * fix showing empty modifiers * Fix git-stars div * Update RTL and accessibility * Update Info section * Update libraries image size
1 parent 331e019 commit 14c9007

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1227
-450
lines changed

uilib-docs/src/components/header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import React from 'react';
22
import Link from 'gatsby-link';
33

44
import './header.scss';
5-
import logo from '../images/logo.png';
5+
import logo from '../images/newDesign/headerLogo.svg';
66

77
const Header = () => {
88
return (
99
<div className="header">
1010
<Link to="/">
1111
<img className="logo" src={logo} alt="logo"/>
12-
<span className="logo-title">RNUILIB</span>
12+
1313
</Link>
1414

1515

uilib-docs/src/components/header.scss

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
1-
@import "src/styles/constants";
1+
@import 'src/styles/constants';
22

33
.header {
44
position: fixed;
5+
flex: 1;
56
top: 0;
67
width: 100%;
78
height: $headerHeight;
89
display: flex;
910
align-items: center;
10-
padding: 0px 20px;
11+
padding: 0px 11%;
1112
background: $white;
13+
z-index: 100;
14+
// box-shadow: 1px 1px 5px rgba($dark10, 0.2);
15+
16+
background-color: rgba(white, .15);
17+
backdrop-filter: blur(50px);
1218

1319
.logo {
14-
height: 50px;
15-
border-radius: 2px;
16-
padding: 4px;
17-
border: 1px solid $primary;
18-
vertical-align: middle;
19-
}
20-
21-
.logo-title {
22-
font-size: $text10;
23-
color: $primary;
24-
letter-spacing: 2px;
25-
vertical-align: middle;
26-
margin-left: 5px;
20+
height: 40px;
2721
}
2822

2923
.links {
@@ -32,10 +26,14 @@
3226
justify-content: flex-end;
3327

3428
a {
35-
margin-right: 40px;
36-
font-size: $text20;
37-
color: $primary;
29+
font-size: $text40;
30+
color: $dark10;
3831
text-decoration: none;
32+
font-weight: 500;
33+
34+
&:not(:last-child) {
35+
margin-right: 40px;
36+
}
3937
}
4038
}
4139
}

uilib-docs/src/components/layout.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,15 @@ const Layout = ({children, location}) => {
4141
<meta property="og:description" content={metaDescription} />
4242
<meta property="twitter:title" content={metaTitle} />
4343
<meta property="twitter:description" content={metaDescription} />
44-
<link
45-
rel="canonical"
46-
href="https://wix.github.io/react-native-ui-lib/"
47-
/>
44+
<link rel="canonical" href="https://wix.github.io/react-native-ui-lib/" />
45+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.22.0/prism.min.js" integrity="sha512-9+422Bs3A87UkWfp+qV80Nfv9arhbCXKY1rxrF2seorI36mIIstMiuBfyKLF1yH1nnzQkEWq2xrzT4XU3Z+vrA==" crossorigin="anonymous"></script>
46+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.22.0/themes/prism-tomorrow.min.css" integrity="sha512-vswe+cgvic/XBoF1OcM/TeJ2FW0OofqAVdCZiEYkd6dwGXthvkSFWOoGGJgS2CW70VK5dQM5Oh+7ne47s74VTg==" crossorigin="anonymous" />
4847
</Helmet>
4948
<Header />
5049
{/* <div className={`main ${!showSidebar ? 'fill' : ''}`}> */}
5150
<div className={`main`}>
5251
{showSidebar && <Navbar />}
53-
<div className={`content ${showSidebar ? 'with-navbar' : ''}`}>
54-
{children}
55-
</div>
52+
<div className={`content ${showSidebar ? 'with-navbar' : ''}`}>{children}</div>
5653
</div>
5754
</div>
5855
);

uilib-docs/src/components/layout.scss

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
@import "src/styles/constants";
1+
@import 'src/styles/constants';
22

33
.layout {
44
display: flex;
55
flex-direction: column;
6+
align-items: center;
67
width: 100%;
78
height: 100%;
89
padding-top: $headerHeight;
@@ -11,18 +12,18 @@
1112
display: flex;
1213
flex: 1;
1314
height: 100%;
14-
border: 20px solid $white;
1515
border-top: 0;
16-
overflow-y: auto;
17-
overflow-x: hidden;
16+
// overflow-y: auto;
17+
// overflow-x: hidden;
18+
width: 80%;
19+
min-width: 50vw;
1820
}
1921

20-
// .fill {
21-
// background: $primary;
22-
// }
23-
2422
.content {
23+
display: flex;
24+
flex: 1;
2525
width: 100%;
26+
2627
&.with-navbar {
2728
padding-left: $navbarWidth;
2829
}

uilib-docs/src/components/navbar/index.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
.navbar {
44
position: fixed;
55
width: $navbarWidth;
6-
height: calc(100% - #{$headerHeight} - 20px);
6+
height: calc(100% - #{$headerHeight});
77
overflow-y: auto;
88
overflow-x: hidden;
99
background: $primary;
1010
padding: 20px;
1111
border-radius: 2px;
12+
box-shadow: 2px 0px 20px 2px rgba($primary, 0.2);
13+
margin-top: 20px;
1214

1315
.search {
1416
position: sticky;
@@ -86,9 +88,13 @@
8688
border-radius: 10px;
8789
cursor: pointer;
8890
transition: all 0.2s;
89-
padding: 12px 8px;
9091
margin-bottom: 2px;
9192

93+
a {
94+
display: block;
95+
padding: 12px 8px;
96+
}
97+
9298
&:hover > a > .entry {
9399
color: $yellow20;
94100
}
-33.2 KB
Binary file not shown.
-64.5 KB
Binary file not shown.
Lines changed: 54 additions & 0 deletions
Loading
-163 KB
Binary file not shown.

uilib-docs/src/images/gatsby-icon.png

-20.7 KB
Binary file not shown.

uilib-docs/src/images/goldStar.svg

Lines changed: 1 addition & 0 deletions
Loading

uilib-docs/src/images/important.svg

Lines changed: 53 additions & 0 deletions
Loading

uilib-docs/src/images/logo.png

443 Bytes
Loading

uilib-docs/src/images/logo_big.png

-18.1 KB
Binary file not shown.
Loading
Lines changed: 11 additions & 0 deletions
Loading
Loading
15.5 KB
Loading
Lines changed: 14 additions & 0 deletions
Loading
189 KB
Loading
Lines changed: 11 additions & 0 deletions
Loading
1.07 MB
Loading
16.1 KB
Loading
12.2 KB
Loading
49.8 KB
Loading
7.38 KB
Loading
1.15 MB
Loading

0 commit comments

Comments
 (0)