diff --git a/src/assets/pro-panda-flying.png b/src/assets/pro-panda-flying.png new file mode 100644 index 0000000..f6153fe Binary files /dev/null and b/src/assets/pro-panda-flying.png differ diff --git a/src/assets/pro-panda.png b/src/assets/pro-panda.png new file mode 100644 index 0000000..6580795 Binary files /dev/null and b/src/assets/pro-panda.png differ diff --git a/src/components/Icons.jsx b/src/components/Icons.jsx index 0376557..4267e09 100644 --- a/src/components/Icons.jsx +++ b/src/components/Icons.jsx @@ -125,6 +125,9 @@ export function Icons() { + + + {/* By Sam Herbert (@sherb), for everyone. More http://goo.gl/7AJzbL */} @@ -179,7 +182,7 @@ export function Icons() { ); } -export const Icon = ({ name, color, size, ...rest }) => { +export const Icon = ({ name, color = 'currentColor', size, ...rest }) => { return ( - - Go - + + + + Go + + } + features={[ + 'Unlimited private creations', + 'Unlimited public creations', + 'Unlimited files mode creations', + 'Asset hosting', + 'Priority support', + 'No Ads' + ]} + /> + ); } + +const Card = ({ bg, name, price, action, features }) => { + return ( +
+ + + + {name} + + + {' '} + {price} + + + {action} + {!action && ( + + )} + + {features.map(f => ( + + + {f} + + ))} + + +
+ ); +}; diff --git a/src/components/Text.jsx b/src/components/Text.jsx index dfe52c1..c6db902 100644 --- a/src/components/Text.jsx +++ b/src/components/Text.jsx @@ -18,6 +18,17 @@ const appearanceStyles = { } }; +const sizes = { + 0: '0.875rem', + 1: '1rem', + 2: '1.125rem', + 3: '1.25rem', + 4: '1.5rem', + 5: '2rem', + 6: '2.5rem', + 7: '3rem', + 8: '4rem' +}; export const Text = forwardRef( ( { @@ -29,6 +40,7 @@ export const Text = forwardRef( letterSpacing = 0, lineHeight = 1.4, align = 'left', + transform, classes = '', children }, @@ -38,8 +50,8 @@ export const Text = forwardRef( const styles = { letterSpacing: letterSpacing, - fontSize: `var(--font-size-${size})`, - + fontSize: sizes[size], + textTransform: transform, fontWeight: weight, textAlign: align, lineHeight: lineHeight, diff --git a/src/components/app.jsx b/src/components/app.jsx index 15217b2..a73dfed 100644 --- a/src/components/app.jsx +++ b/src/components/app.jsx @@ -1827,6 +1827,7 @@ export default class App extends Component { this.setState({ isProModalOpen: false })} + extraClasses="pro-modal" > diff --git a/src/style.css b/src/style.css index d6374b0..f74bcd1 100644 --- a/src/style.css +++ b/src/style.css @@ -10,11 +10,14 @@ --color-focus-outline: #d3a447; --color-form-control-bg: #2c214b; - --color-heading: #efecf9; + --color-heading: #fff; --color-text-light: #b0a5d6; --color-text-lightest-final: #787090; --clr-brand: purple; + --color-pro-1: #1fffb3; + --color-pro-2: #f2ff00; + --footer-height: 37px; --console-height: 32px; @@ -128,11 +131,13 @@ button { .ai-c { align-items: center; } -.flex-h-center { +.flex-h-center, +.jc-c { justify-content: center; } -.flex-h-end { +.flex-h-end, +.jc-fe { justify-content: flex-end; } @@ -395,7 +400,7 @@ a > svg { font-size: inherit; background: transparent; border: 3px solid var(--color-button); - border-radius: 5px; + border-radius: 2rem; padding: 9px 15px; cursor: pointer; letter-spacing: 0.2px; @@ -803,6 +808,7 @@ body > #demo-frame { margin-left: 10px; padding: 3px 8px; border: 1px solid rgba(0, 0, 0, 0.9); + border-radius: 5px; background: linear-gradient(180deg, hsl(0, 0%, 25%) 0, hsl(0, 0%, 13%) 100%); box-shadow: inset 0 1px 0px 0 rgba(255, 255, 255, 0.15); } @@ -2175,7 +2181,7 @@ while the theme CSS file is loading */ .pro-badge { display: inline-block; padding: 0.1rem 0.3rem; - background-color: #fff91f; + background: linear-gradient(45deg, var(--color-pro-1), var(--color-pro-2)); border-radius: 1rem; font-size: 0.7em; color: #222; @@ -2191,6 +2197,14 @@ while the theme CSS file is loading */ .templates-container .saved-item-tile { margin: 0; } +.pro-modal { + background: url('/assets/pro-panda-flying.png') no-repeat; + background-position: bottom right; +} +.plan-card { + border-radius: 0.4rem; + padding: 1rem; +} @media screen and (max-width: 600px) { body { font-size: 70%;