From 2b6d01a08b6abce036a7540014cfce95eb64aa85 Mon Sep 17 00:00:00 2001 From: Luis Igreja Date: Mon, 2 Sep 2024 18:36:49 -0300 Subject: [PATCH] fix: Content Section display alignment --- .../sections/SectionGetStarted.stories.js | 86 +++++++++++++++++++ .../contentsection/ContentSection.vue | 19 ++-- 2 files changed, 99 insertions(+), 6 deletions(-) create mode 100644 src/stories/templates/sections/SectionGetStarted.stories.js diff --git a/src/stories/templates/sections/SectionGetStarted.stories.js b/src/stories/templates/sections/SectionGetStarted.stories.js new file mode 100644 index 00000000..f0dce131 --- /dev/null +++ b/src/stories/templates/sections/SectionGetStarted.stories.js @@ -0,0 +1,86 @@ + +import ContentSection from '../../../templates/contentsection' +import LinkButton from '../../../templates/linkbutton' +import Tile from '../../../templates/tile' + +export default { + title: 'Blocks/Sections/Get Started', + tags: ['autodocs'], +} + +const MOCK = { + overline: 'Get Started', + title: "Sign-up and get $300,00 to use for 12 months. Ready to deploy?", + "buttons": [ + { + "label": "Free Account", + "link": "https://console.azion.com/signup" + }, + { + "label": "Talk to an Expert", + "link": "https://console.azion.com/signup", + "outlined": true + } + ], + items: [ + { + icon: "pi pi-tags", + text: "Access to all products" + }, + { + icon: "pi pi-credit-card", + text: "No credit card required" + }, + { + icon: "pi pi-dollar", + text: "Credit available to use for 12 months" + } + ] +} + +const template = ` +
+ + + + + +
` + +const Template = (args) => ({ + components: { ContentSection, LinkButton, Tile }, + setup() { + return { args } + }, + template: template +}) + +export const Default = Template.bind({}) +Default.args = MOCK + +Default.parameters = { + docs: { + description: { + story: '' + }, + source: { code: template } }, +}; diff --git a/src/templates/contentsection/ContentSection.vue b/src/templates/contentsection/ContentSection.vue index 24f09a01..c67fa92b 100644 --- a/src/templates/contentsection/ContentSection.vue +++ b/src/templates/contentsection/ContentSection.vue @@ -1,20 +1,22 @@ +