diff --git a/webapp/.storybook/manager-head.html b/webapp/.storybook/manager-head.html new file mode 100644 index 0000000..ce8f7ff --- /dev/null +++ b/webapp/.storybook/manager-head.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/webapp/.storybook/manager.js b/webapp/.storybook/manager.js new file mode 100644 index 0000000..e096e66 --- /dev/null +++ b/webapp/.storybook/manager.js @@ -0,0 +1,6 @@ +import { addons } from '@storybook/addons'; +import theme from './shortumationTheme'; + +addons.setConfig({ + theme, +}); \ No newline at end of file diff --git a/webapp/.storybook/preview.js b/webapp/.storybook/preview.js index ca528f9..a4ce52f 100644 --- a/webapp/.storybook/preview.js +++ b/webapp/.storybook/preview.js @@ -1,3 +1,4 @@ +import theme from './shortumationTheme'; export const parameters = { actions: { argTypesRegex: "^on[A-Z].*" }, @@ -7,4 +8,7 @@ export const parameters = { date: /Date$/, }, }, + docs: { + theme, + }, } diff --git a/webapp/.storybook/shortumationTheme.js b/webapp/.storybook/shortumationTheme.js new file mode 100644 index 0000000..d9cd764 --- /dev/null +++ b/webapp/.storybook/shortumationTheme.js @@ -0,0 +1,9 @@ +import { create } from '@storybook/theming'; + +export default create({ + base: 'dark', + brandTitle: 'Shrotumation Storybook', + brandUrl: 'https://github.com/asosnovsky/Shortumation', +// brandImage: 'https://raw.githubusercontent.com/asosnovsky/Shortumation/main/icon.png', + brandTarget: '_blank', +}); \ No newline at end of file diff --git a/webapp/README.md b/webapp/README.md index b58e0af..d5537d3 100644 --- a/webapp/README.md +++ b/webapp/README.md @@ -1,11 +1,15 @@ -# Getting Started with Create React App - -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). - ## Available Scripts In the project directory, you can run: +### `yarn storybook` + +Spins up the prototyping tool storybook.\ +Open [http://localhost:6006](http://localhost:6006) to view it in the browser. + +The page will reload if you make edits.\ +You will also see any lint errors in the console. + ### `yarn start` Runs the app in the development mode.\ diff --git a/webapp/public/favicon.ico b/webapp/public/favicon.ico deleted file mode 100644 index a11777c..0000000 Binary files a/webapp/public/favicon.ico and /dev/null differ diff --git a/webapp/public/icon.png b/webapp/public/icon.png new file mode 100644 index 0000000..1d1ff2a Binary files /dev/null and b/webapp/public/icon.png differ diff --git a/webapp/public/index.html b/webapp/public/index.html index a35c402..faffa30 100644 --- a/webapp/public/index.html +++ b/webapp/public/index.html @@ -3,11 +3,11 @@ - + - +