Skip to content

Commit

Permalink
docs: Add Storybook documentation landing page (#334)
Browse files Browse the repository at this point in the history
* feat(landing): add landing page for Storybook

* docs(landing): finish the landing page integration

* docs(theme): theme storybook with our branding

* refactor(landingpage): mr review modifs part 1

* refactor(landing): wrap landing page mdx in unstyled component

---------

Co-authored-by: Ján Hamara <[email protected]>
  • Loading branch information
JanHamara and Ján Hamara authored May 25, 2023
1 parent 5160eb2 commit 10d929b
Show file tree
Hide file tree
Showing 24 changed files with 49,723 additions and 19,692 deletions.
41 changes: 41 additions & 0 deletions .storybook/FreenowTheme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// .storybook/FreenowTheme.ts
import { create } from '@storybook/theming/create';
import logo from '../public/assets/freenow-logo.svg';

export default create({
base: 'light',

// Typography
fontBase: '"YOURNOWSans-Medium", "Open Sans", sans-serif',
fontCode: 'monospace',

brandTitle: 'FREENOW',
brandUrl: 'https://wave.free-now.com/',
brandImage: logo,
brandTarget: '_self',

//
colorPrimary: '#CA0928',
colorSecondary: '#585C6D',

// UI
appBg: '#ffffff',
appContentBg: '#ffffff',
appBorderColor: '#585C6D',
appBorderRadius: 4,

// Text colors
textColor: '#10162F',
textInverseColor: '#ffffff',

// Toolbar default and active colors
barTextColor: '#9E9E9E',
barSelectedColor: '#585C6D',
barBg: '#ffffff',

// Form colors
inputBg: '#ffffff',
inputBorder: '#10162F',
inputTextColor: '#10162F',
inputBorderRadius: 2
});
7 changes: 7 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// .storybook/manager.ts
import { addons } from '@storybook/manager-api';
import FreenowTheme from './FreenowTheme';

addons.setConfig({
theme: FreenowTheme
});
7 changes: 5 additions & 2 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Preview } from '@storybook/react';
import { themes } from '@storybook/theming';

export const preview: Preview = {
parameters: {
Expand All @@ -11,6 +12,9 @@ export const preview: Preview = {
date: /Date$/
}
},
docs: {
theme: themes.light
},
backgrounds: {
default: 'light',
values: [
Expand Down Expand Up @@ -64,8 +68,7 @@ export const preview: Preview = {
},
options: {
storySort: {
method: 'alphabetical',
order: ['Get Started', 'Essentials', 'Components', 'Form Elements']
order: ['Welcome', 'Essentials', 'Components', 'Form Elements']
}
}
}
Expand Down
37 changes: 37 additions & 0 deletions docs/assets/by-freenow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/color-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/assets/components-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions docs/assets/figma-logo-with-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions docs/assets/figma-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions docs/assets/freenow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions docs/assets/github-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 10d929b

Please sign in to comment.