From d1e485ea1231c63d155c32acd8dac507b4b22d59 Mon Sep 17 00:00:00 2001 From: assasin0076 <38113445+assasin0076@users.noreply.github.com> Date: Wed, 29 Nov 2023 13:21:05 +0200 Subject: [PATCH] feat: jumbotron (#251) * feat: jumbotron * refactor: refactored jumbo * chore: -header content slot * Update docs/components/jumbotron.md * Update docs/components/jumbotron.md * Update docs/components/jumbotron.md * Update docs/components/jumbotron.md --------- Co-authored-by: victor Co-authored-by: Ilya Artamonov --- docs/.vitepress/config.mts | 1 + docs/components/jumbotron.md | 319 ++++++++++++++++++ .../FwbJumbotronBackgroundImageExample.vue | 47 +++ .../examples/FwbJumbotronExample.vue | 44 +++ .../examples/FwbJumbotronFormExample.vue | 109 ++++++ .../examples/FwbJumbotronGradientExample.vue | 50 +++ .../examples/FwbJumbotronVideoExample.vue | 57 ++++ src/components/FwbJumbotron/FwbJumbotron.vue | 62 ++++ src/components/FwbJumbotron/types.ts | 1 + 9 files changed, 690 insertions(+) create mode 100644 docs/components/jumbotron.md create mode 100644 docs/components/jumbotron/examples/FwbJumbotronBackgroundImageExample.vue create mode 100644 docs/components/jumbotron/examples/FwbJumbotronExample.vue create mode 100644 docs/components/jumbotron/examples/FwbJumbotronFormExample.vue create mode 100644 docs/components/jumbotron/examples/FwbJumbotronGradientExample.vue create mode 100644 docs/components/jumbotron/examples/FwbJumbotronVideoExample.vue create mode 100644 src/components/FwbJumbotron/FwbJumbotron.vue create mode 100644 src/components/FwbJumbotron/types.ts diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 90ac918..f798ee2 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -45,6 +45,7 @@ function getComponents() { { text: 'Card', link: '/components/card.md' }, { text: 'Carousel', link: '/components/carousel' }, { text: 'Dropdown', link: '/components/dropdown' }, + { text: 'Jumbotron', link: '/components/jumbotron' }, { text: 'ListGroup', link: '/components/list-group' }, { text: 'Pagination', link: '/components/pagination' }, { text: 'Progress', link: '/components/progress' }, diff --git a/docs/components/jumbotron.md b/docs/components/jumbotron.md new file mode 100644 index 0000000..4f5cf87 --- /dev/null +++ b/docs/components/jumbotron.md @@ -0,0 +1,319 @@ + + +# Vue Jumbotron - Flowbite + +#### Use the jumbotron component to show a marketing message to your users based on a headline and image inside of a card box based on Tailwind CSS + +The Jumbotron (hero) component can be used as the first section of your website with a focus on a marketing message to increase the likelihood of the user to continue browsing your website. + +This UI component features a heading title, a short description, an optional CTA button, background image, gradient or solid background color and it’s generally inside of a card element. + +The jumbotron component from Flowbite is responsive on all devices, natively supports dark mode and is coded with the utility classes from Tailwind CSS. + + +## Default Jumbotron +Use this default example to show a title, description, and two CTA buttons for the jumbotron component. + + +```vue + + + + +``` + +## Background image +Use this jumbotron to apply a background image with a darkening opacity effect to improve readability. + + +```vue + + + + +``` + +## Featured video +This component can be used to feature a video together with a heading title, description, and CTA buttons. + + +```vue +