From 1ba4c3f92ebe47182ff6f3095bff44dd1611c669 Mon Sep 17 00:00:00 2001 From: ogzCode Date: Wed, 7 Aug 2024 16:01:15 +0300 Subject: [PATCH 1/8] feat: Add FwbBanner and FwbBannerCollapseButton components The code changes introduce two new components, FwbBanner and FwbBannerCollapseButton, which are used for displaying a banner and a collapse button respectively. These components are added to the index.ts file for easier import and usage. --- src/components/FwbBanner/FwbBanner.vue | 38 +++++++++++++ .../FwbBanner/FwbBannerCollapseButton.vue | 56 +++++++++++++++++++ src/index.ts | 2 + 3 files changed, 96 insertions(+) create mode 100644 src/components/FwbBanner/FwbBanner.vue create mode 100644 src/components/FwbBanner/FwbBannerCollapseButton.vue diff --git a/src/components/FwbBanner/FwbBanner.vue b/src/components/FwbBanner/FwbBanner.vue new file mode 100644 index 00000000..41d97172 --- /dev/null +++ b/src/components/FwbBanner/FwbBanner.vue @@ -0,0 +1,38 @@ + + + diff --git a/src/components/FwbBanner/FwbBannerCollapseButton.vue b/src/components/FwbBanner/FwbBannerCollapseButton.vue new file mode 100644 index 00000000..6299baec --- /dev/null +++ b/src/components/FwbBanner/FwbBannerCollapseButton.vue @@ -0,0 +1,56 @@ + + + diff --git a/src/index.ts b/src/index.ts index 994321a8..a42d2c39 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,6 +7,8 @@ export { default as FwbAvatar } from './components/FwbAvatar/FwbAvatar.vue' export { default as FwbAvatarStack } from './components/FwbAvatar/FwbAvatarStack.vue' export { default as FwbAvatarStackCounter } from './components/FwbAvatar/FwbAvatarStackCounter.vue' export { default as FwbBadge } from './components/FwbBadge/FwbBadge.vue' +export { default as FwbBanner } from './components/FwbBanner/FwbBanner.vue' +export { default as FwbBannerCollapseButton } from './components/FwbBanner/FwbBannerCollapseButton.vue' export { default as FwbBreadcrumb } from './components/FwbBreadcrumb/FwbBreadcrumb.vue' export { default as FwbBreadcrumbItem } from './components/FwbBreadcrumb/FwbBreadcrumbItem.vue' export { default as FwbButton } from './components/FwbButton/FwbButton.vue' From 4e220cdc58781b0525e2a7b26ced2bdbecbfefe3 Mon Sep 17 00:00:00 2001 From: ogzCode Date: Wed, 7 Aug 2024 16:01:36 +0300 Subject: [PATCH 2/8] chore: Add default banner example to documentation --- docs/components/banner.md | 88 +++++++++++++++++ .../examples/FwbBannerBottomExample.vue | 97 +++++++++++++++++++ .../examples/FwbBannerDefaultExample.vue | 94 ++++++++++++++++++ 3 files changed, 279 insertions(+) create mode 100644 docs/components/banner.md create mode 100644 docs/components/banner/examples/FwbBannerBottomExample.vue create mode 100644 docs/components/banner/examples/FwbBannerDefaultExample.vue diff --git a/docs/components/banner.md b/docs/components/banner.md new file mode 100644 index 00000000..1f71d815 --- /dev/null +++ b/docs/components/banner.md @@ -0,0 +1,88 @@ + + +# Vue Banner - Flowbite + +### Use the banner component to show marketing messages and CTA buttons at the top or bottom side of your website based on the utility classes from Tailwind CSS + +--- + +:::tip +Original reference: [https://flowbite.com/docs/components/banner/](https://flowbite.com/docs/components/banner/) +::: + +Get started with the sticky banner component coded with Tailwind CSS and Flowbite to show marketing, informational and CTA messages to your website visitors fixed to the top or bottom part of the page as the user scroll down the main content area. + +## Default sticky banner + +Use this free example to show a text message for announcement with a CTA link, an icon element and a close button to dismiss the banner. + + + + +```vue + +``` + + +## Bottom banner position + +This example can be used to position the sticky banner to the bottom side of the page instead of the top side. + + + +```vue + +``` + +## More Examples + +For more sticky banner examples you can check [banner sections](https://flowbite.com/blocks/marketing/banner/) from Flowbite Blocks. \ No newline at end of file diff --git a/docs/components/banner/examples/FwbBannerBottomExample.vue b/docs/components/banner/examples/FwbBannerBottomExample.vue new file mode 100644 index 00000000..4f3b63ed --- /dev/null +++ b/docs/components/banner/examples/FwbBannerBottomExample.vue @@ -0,0 +1,97 @@ +