From e23a7d6bcad41e0920b490d4b5d2bd64a8ecf1c4 Mon Sep 17 00:00:00 2001 From: Robson Junior Date: Wed, 2 Oct 2024 10:30:18 -0300 Subject: [PATCH] chore: section-bignumbers Center in the storybook --- .../sections/section-bignumbers.stories.js | 83 +++++++++++-------- 1 file changed, 50 insertions(+), 33 deletions(-) diff --git a/src/stories/templates/sections/section-bignumbers.stories.js b/src/stories/templates/sections/section-bignumbers.stories.js index b276167e..c24caa32 100644 --- a/src/stories/templates/sections/section-bignumbers.stories.js +++ b/src/stories/templates/sections/section-bignumbers.stories.js @@ -13,19 +13,10 @@ export default { ${Rules.section.overline} ${Rules.section.title} ${Rules.section.bigNumbers} - `, - }, - }, - }, - // argTypes: { - // 'justify': { - // control: { - // type: 'select', - // }, - // options: ['center', 'start'], - // description: 'Justify content alignment', - // }, - // } + ` + } + } + } } const MOCK = { @@ -58,33 +49,59 @@ const MOCK = { } } +const MOCK_CENTER = { + "title": "Achieve Unmatched Protection with Azion's Bot Management", + "overline": "Powerful Metrics Showcasing", + "data": { + "justify": "center", + "items": [ + { + "icon": "pi pi-verified", + "title": "4mi", + "description": "Number of DDoS threats blocked " + }, + { + "icon": "pi pi-shield", + "title": "<5s", + "description": "Detected threat properties worldwide" + }, + { + "icon": "pi pi-code", + "title": "7", + "description": "Detected threat properties worldwide" + }, + { + "icon": "pi pi-stopwatch", + "title": "80k+", + "description": "Detected threat properties worldwide" + } + ] + } +} + const template = ` ` -const Template = (args) => ({ - components: { - SectionBigNumbers, - Container - }, - setup() { - return { args } - }, - template: template -}) +const config = (args) => { + return { + components: { + SectionBigNumbers, + Container + }, + setup() { + return { args } + }, + template: template + } +} +const Template = (args) => (config(args)) export const Default = Template.bind({}) Default.args = MOCK -Default.parameters = { - docs: { - description: { - story: '' - }, - source: { - code: template - } - } -}; +const Template2 = (args) => (config(args)) +export const Center = Template2.bind({}) +Center.args = MOCK_CENTER