Skip to content
Open
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
70 changes: 68 additions & 2 deletions .storybook/preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,82 @@ export const parameters = {
date: /Date$/,
},
},
layout: "centered",
viewport: {
defaultViewport: "iphone-12",
viewports: {
"iphone-se": {
type: "mobile",
styles: {
width: "375px",
height: "667px",
},
name: "iPhone SE",
},
"iphone-12": {
type: "mobile",
styles: {
width: "390px",
height: "667px",
},
name: "iPhone 12",
},
"ipad-portrait": {
type: "mobile",
styles: {
width: "768px",
height: "1024px",
},
name: "iPad Portrait",
},
"ipad-landscape": {
type: "mobile",
styles: {
width: "1024px",
height: "768px",
},
name: "iPad Landscape",
},
"small-desktop": {
type: "desktop",
styles: {
width: "1280px",
height: "800px",
},
name: "Small Desktop",
},
"medium-desktop": {
type: "desktop",
styles: {
width: "1600px",
height: "1024px",
},
name: "Medium Desktop",
},
"large-desktop": {
type: "desktop",
styles: {
width: "1920px",
height: "1080px",
},
name: "Large Desktop",
},
},
},
};

export const decorators = [
Story => (
<div
<>
<style>{`#root {padding: 0 !important; width: 100%;}`}</style>
<main
className='w-full'
style={{
fontFamily: '"TG Praktikal", sans-serif',
}}
>
<Story />
</div>
</main>
</>
),
];
13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";


export default [
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]},
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
];
Loading