Skip to content

Infra/new landing page #1091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Jan 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
996277b
WIP - new landing page
ethanshar Dec 19, 2020
00f74eb
Implement CodeSection
ethanshar Dec 20, 2020
ab73eb9
move button styling to index page area only
ethanshar Dec 20, 2020
65e74a4
declare button style only in index page
ethanshar Dec 20, 2020
c45ad10
Connect all links
ethanshar Dec 20, 2020
9f2d679
Merge branch 'master' into infra/newLandingPage
ethanshar Jan 6, 2021
412f212
Merge branch 'master' into infra/newLandingPage
ethanshar Jan 15, 2021
374b65a
Fix styling
ethanshar Jan 15, 2021
bba4ede
remove height from intro cover image
ethanshar Jan 15, 2021
3beae5a
Update coloss
ethanshar Jan 16, 2021
8ab4726
update favicon
ethanshar Jan 16, 2021
d565c14
Update components page UI and reorganize
ethanshar Jan 16, 2021
7176149
Fix main layout
ethanshar Jan 16, 2021
379ffc1
Redesign component page API
ethanshar Jan 16, 2021
3c78073
Small touchups
ethanshar Jan 16, 2021
7095fdf
set fixed sidebar with table of content and visuals
ethanshar Jan 16, 2021
60a5efb
Layout fixes
ethanshar Jan 16, 2021
d36e024
Show selected prop
ethanshar Jan 16, 2021
3f86be0
Move notes out of the component header card
ethanshar Jan 16, 2021
e737616
Minor fixes
ethanshar Jan 17, 2021
d72b288
fix showing empty modifiers
ethanshar Jan 17, 2021
deb793f
Fix git-stars div
ethanshar Jan 17, 2021
4d6afeb
Update RTL and accessibility
ethanshar Jan 17, 2021
adcbae5
Merge branch 'master' into infra/newLandingPage
ethanshar Jan 22, 2021
07f4cd3
Update Info section
ethanshar Jan 22, 2021
bb03eaf
Update libraries image size
ethanshar Jan 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions uilib-docs/src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import React from 'react';
import Link from 'gatsby-link';

import './header.scss';
import logo from '../images/logo.png';
import logo from '../images/newDesign/headerLogo.svg';

const Header = () => {
return (
<div className="header">
<Link to="/">
<img className="logo" src={logo} alt="logo"/>
<span className="logo-title">RNUILIB</span>

</Link>


Expand Down
34 changes: 16 additions & 18 deletions uilib-docs/src/components/header.scss
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
@import "src/styles/constants";
@import 'src/styles/constants';

.header {
position: fixed;
flex: 1;
top: 0;
width: 100%;
height: $headerHeight;
display: flex;
align-items: center;
padding: 0px 20px;
padding: 0px 11%;
background: $white;
z-index: 100;
// box-shadow: 1px 1px 5px rgba($dark10, 0.2);

background-color: rgba(white, .15);
backdrop-filter: blur(50px);

.logo {
height: 50px;
border-radius: 2px;
padding: 4px;
border: 1px solid $primary;
vertical-align: middle;
}

.logo-title {
font-size: $text10;
color: $primary;
letter-spacing: 2px;
vertical-align: middle;
margin-left: 5px;
height: 40px;
}

.links {
Expand All @@ -32,10 +26,14 @@
justify-content: flex-end;

a {
margin-right: 40px;
font-size: $text20;
color: $primary;
font-size: $text40;
color: $dark10;
text-decoration: none;
font-weight: 500;

&:not(:last-child) {
margin-right: 40px;
}
}
}
}
11 changes: 4 additions & 7 deletions uilib-docs/src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,15 @@ const Layout = ({children, location}) => {
<meta property="og:description" content={metaDescription} />
<meta property="twitter:title" content={metaTitle} />
<meta property="twitter:description" content={metaDescription} />
<link
rel="canonical"
href="https://wix.github.io/react-native-ui-lib/"
/>
<link rel="canonical" href="https://wix.github.io/react-native-ui-lib/" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.22.0/prism.min.js" integrity="sha512-9+422Bs3A87UkWfp+qV80Nfv9arhbCXKY1rxrF2seorI36mIIstMiuBfyKLF1yH1nnzQkEWq2xrzT4XU3Z+vrA==" crossorigin="anonymous"></script>
<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" />
</Helmet>
<Header />
{/* <div className={`main ${!showSidebar ? 'fill' : ''}`}> */}
<div className={`main`}>
{showSidebar && <Navbar />}
<div className={`content ${showSidebar ? 'with-navbar' : ''}`}>
{children}
</div>
<div className={`content ${showSidebar ? 'with-navbar' : ''}`}>{children}</div>
</div>
</div>
);
Expand Down
17 changes: 9 additions & 8 deletions uilib-docs/src/components/layout.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@import "src/styles/constants";
@import 'src/styles/constants';

.layout {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
height: 100%;
padding-top: $headerHeight;
Expand All @@ -11,18 +12,18 @@
display: flex;
flex: 1;
height: 100%;
border: 20px solid $white;
border-top: 0;
overflow-y: auto;
overflow-x: hidden;
// overflow-y: auto;
// overflow-x: hidden;
width: 80%;
min-width: 50vw;
}

// .fill {
// background: $primary;
// }

.content {
display: flex;
flex: 1;
width: 100%;

&.with-navbar {
padding-left: $navbarWidth;
}
Expand Down
10 changes: 8 additions & 2 deletions uilib-docs/src/components/navbar/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
.navbar {
position: fixed;
width: $navbarWidth;
height: calc(100% - #{$headerHeight} - 20px);
height: calc(100% - #{$headerHeight});
overflow-y: auto;
overflow-x: hidden;
background: $primary;
padding: 20px;
border-radius: 2px;
box-shadow: 2px 0px 20px 2px rgba($primary, 0.2);
margin-top: 20px;

.search {
position: sticky;
Expand Down Expand Up @@ -86,9 +88,13 @@
border-radius: 10px;
cursor: pointer;
transition: all 0.2s;
padding: 12px 8px;
margin-bottom: 2px;

a {
display: block;
padding: 12px 8px;
}

&:hover > a > .entry {
color: $yellow20;
}
Expand Down
Binary file removed uilib-docs/src/images/examples/actionSheet.png
Binary file not shown.
Binary file removed uilib-docs/src/images/examples/datepicker.png
Binary file not shown.
54 changes: 54 additions & 0 deletions uilib-docs/src/images/externalLink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed uilib-docs/src/images/gatsby-astronaut.png
Binary file not shown.
Binary file removed uilib-docs/src/images/gatsby-icon.png
Binary file not shown.
1 change: 1 addition & 0 deletions uilib-docs/src/images/goldStar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions uilib-docs/src/images/important.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified uilib-docs/src/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed uilib-docs/src/images/logo_big.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions uilib-docs/src/images/newDesign/RNUI_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uilib-docs/src/images/newDesign/accessibility.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uilib-docs/src/images/newDesign/calendars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions uilib-docs/src/images/newDesign/crossPlatform.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uilib-docs/src/images/newDesign/detox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions uilib-docs/src/images/newDesign/headerLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uilib-docs/src/images/newDesign/introCover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uilib-docs/src/images/newDesign/qr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uilib-docs/src/images/newDesign/remx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uilib-docs/src/images/newDesign/rnn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uilib-docs/src/images/newDesign/rtl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uilib-docs/src/images/newDesign/showcase.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading