Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion docs/interaction-styles.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: pseudo-props
title: Pseudo props in Detail
title: 'Pseudo props: Overview'
---

import {
Expand Down
2 changes: 1 addition & 1 deletion docs/pseudoProps.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: pseudo-props-101
title: Pseudo Props 101
title: 'Pseudo props: Do’s & Dont’s'
---

Before getting into details of all the common Pseudo Props NativeBase has to offer let's check some key points that these pseudo props follow.
Expand Down
47 changes: 47 additions & 0 deletions src/components/NativeStartupBanner/index.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/components/TileLink/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ export default function TileLink({
imgStyle,
titleClassName = 'text-white',
descriptionClassName = 'text-gray-100',
wide = false
}) {
return (
<Link
to={url}
className={
'relative overflow-hidden no-underline col col--5 rounded-md pt-6 px-4 shadow-2xl mx-2 mb-2 ' +
'relative overflow-hidden no-underline col rounded-md pt-6 px-4 shadow-2xl mx-2 mb-2 ' +
className
}
>
Expand Down
1 change: 1 addition & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export { default as AndroidBadge } from './AndroidBadge';
export { default as WebBadge } from './WebBadge';
export { default as KitchenSinkIframe } from './KitchenSinkIframe';
export { default as TileLink } from './TileLink';
export { default as NativeStartupBanner } from './NativeStartupBanner';
export { default as NBHistory } from './NBHistory';
export { default as InstallationTiles } from './InstallationTiles';
export { UtilityFirstExample } from './UtilityFirstExample';
Expand Down
51 changes: 21 additions & 30 deletions src/theme/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,15 @@ function Navbar() {
[styles.navbarHideable]: hideOnScroll,
[styles.navbarHidden]: !isNavbarVisible,
})}
// style={{ paddingLeft: '2rem' }}
// style={{ paddingLeft: '2rem' }}
>
<div
className={`navbar__inner bg-transparent backdrop-blur-sm ${
isLandingPage ? 'lg:px-4' : ''
}`}
className={`navbar__inner bg-transparent backdrop-blur-sm ${isLandingPage ? 'lg:px-4' : ''
}`}
>
<div
className={`flex px-4 navbar-small bg-blueGray-50 justify-around mx-auto md:px-6 lg:px-2 w-full ${
isLandingPage ? 'max-w-6xl' : ''
}`}
className={`flex px-4 navbar-small bg-blueGray-50 justify-around mx-auto md:px-6 lg:px-2 w-full ${isLandingPage ? 'max-w-6xl' : ''
}`}
>
<div className="navbar__items ">
{items != null && items.length !== 0 && (
Expand All @@ -116,19 +114,16 @@ function Navbar() {
return (
<div
key={i}
className={`hidden xl:block text-base ${nativeBaseV2Color}`}
className={`ml-2 hidden xl:block text-base ${nativeBaseV2Color}`}
>
Looking for{' '}
<a
href="https://v2.nativebase.io/"
href="https://startup.nativebase.io/?utm_source=DocsHeader&utm_medium=ad-banner&utm_campaign=NativeBase_3_Docs"
target="_blank"
className={`leading-5 text-cyan-${
isDarkTheme ? '600' : '700'
} font-medium`}
className={`leading-5 text-cyan-${isDarkTheme ? '600' : '700'
} font-medium`}
>
v2.0
Announcing NativeBase Startup+ bundle{' '}🎉
</a>
<span>?</span>
</div>
);
else return <NavbarItem {...item} key={i} />;
Expand Down Expand Up @@ -157,13 +152,11 @@ function Navbar() {
<a
href={item.to}
key={i}
className={`${
!isDarkTheme
? 'text-gray-500 hover:bg-gray-100'
: 'text-white hover:bg-gray-600'
} px-0 border border-solid ${
!isDarkTheme ? 'border-gray-200' : 'border-gray-600'
} font-semibold py-1 px-5 rounded no-underline hidden md:inline-block`}
className={`${!isDarkTheme
? 'text-gray-500 hover:bg-gray-100'
: 'text-white hover:bg-gray-600'
} px-0 border border-solid ${!isDarkTheme ? 'border-gray-200' : 'border-gray-600'
} font-semibold py-1 px-5 rounded no-underline hidden md:inline-block`}
>
Docs
</a>
Expand All @@ -173,14 +166,12 @@ function Navbar() {
<a
href={item.to}
key={i}
className={`border-0 ${
!isDarkTheme
? 'text-gray-500 hover:bg-gray-100'
: 'text-white hover:bg-gray-600'
}
px-0 border border-solid ${
!isDarkTheme ? 'border-gray-200' : 'border-gray-600'
} font-semibold py-1 rounded no-underline hidden md:inline-block px-2 ml-4`}
className={`border-0 ${!isDarkTheme
? 'text-gray-500 hover:bg-gray-100'
: 'text-white hover:bg-gray-600'
}
px-0 border border-solid ${!isDarkTheme ? 'border-gray-200' : 'border-gray-600'
} font-semibold py-1 rounded no-underline hidden md:inline-block px-2 ml-4`}
>
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
7 changes: 5 additions & 2 deletions versioned_docs/version-3.2.1/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ title: Getting Started
slug: /
---

import { KitchenSinkIframe, TileLink, NBHistory } from '../../src/components';
import { KitchenSinkIframe, TileLink, NBHistory, NativeStartupBanner } from '../../src/components';
import TOCInline from '@theme/TOCInline';

<div className='tailwind'>
<div className='row m-0'>
<div className="col col--9 mb-12 p-0">
<p className='text-md'>
NativeBase is a component library that enables devs to build universal
design systems. It is built on top of React Native, allowing you to
apps. It is built on top of React Native, allowing you to
develop apps for Android, iOS and the Web.
</p>
<div className='mt-8 pl-2 -ml-1'>
Expand Down Expand Up @@ -44,6 +44,9 @@ import TOCInline from '@theme/TOCInline';
className='bg-indigo-600'
/>
</div>
<div className='row m-0 -ml-3'>
<NativeStartupBanner />
</div>
</div>
</div>
<div className='col col--3 mb-12'>
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-3.2.1/interaction-styles.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: pseudo-props
title: Pseudo props in Detail
title: Pseudo Props Basics
---

import {
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-3.2.1/pseudoProps.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: pseudo-props-101
title: Pseudo Props 101
title: Pseudo Props Advanced
---

Before getting into details of all the common Pseudo Props NativeBase has to offer let's check some key points that these pseudo props follow.
Expand Down