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 <viktor.generalov@nlogic.ai> Co-authored-by: Ilya Artamonov <ilya.sosidka@gmail.com>
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<div
|
||||
class="vp-raw"
|
||||
>
|
||||
<fwb-jumbotron
|
||||
class="bg-center bg-no-repeat bg-[url('https://flowbite.s3.amazonaws.com/docs/jumbotron/conference.jpg')] dark:bg-gray-700 bg-gray-700 bg-blend-multiply"
|
||||
header-classes="text-white"
|
||||
sub-text-classes="text-gray-300 dark:text-gray-300"
|
||||
header-text="We invest in the world’s potential"
|
||||
sub-text="Here at Flowbite we focus on markets where technology, innovation, and capital can unlock long-term value and drive economic growth."
|
||||
>
|
||||
<div class="flex flex-col space-y-4 sm:flex-row sm:justify-center sm:space-y-0">
|
||||
<a
|
||||
href="#"
|
||||
class="inline-flex justify-center items-center py-3 px-5 text-base font-medium text-center text-white rounded-lg bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:focus:ring-blue-900"
|
||||
>
|
||||
Get started
|
||||
<svg
|
||||
class="w-3.5 h-3.5 ml-2 rtl:rotate-180"
|
||||
aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 14 10"
|
||||
>
|
||||
<path
|
||||
stroke="currentColor"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
d="M1 5h12m0 0L9 1m4 4L9 9"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
<a
|
||||
href="#"
|
||||
class="inline-flex justify-center hover:text-gray-900 items-center py-3 px-5 sm:ml-4 text-base font-medium text-center text-white rounded-lg border border-white hover:bg-gray-100 focus:ring-4 focus:ring-gray-400"
|
||||
>
|
||||
Learn more
|
||||
</a>
|
||||
</div>
|
||||
</fwb-jumbotron>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import FwbJumbotron from '@/components/FwbJumbotron/FwbJumbotron.vue'
|
||||
</script>
|
||||
44
docs/components/jumbotron/examples/FwbJumbotronExample.vue
Normal file
44
docs/components/jumbotron/examples/FwbJumbotronExample.vue
Normal file
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<div
|
||||
class="vp-raw"
|
||||
>
|
||||
<fwb-jumbotron
|
||||
header-text="We invest in the world’s potential"
|
||||
sub-text="Here at Flowbite we focus on markets where technology, innovation, and capital can unlock long-term value and drive economic growth."
|
||||
>
|
||||
<div class="flex flex-col space-y-4 sm:flex-row sm:justify-center sm:space-y-0">
|
||||
<a
|
||||
href="#"
|
||||
class="inline-flex justify-center items-center py-3 px-5 text-base font-medium text-center text-white rounded-lg bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:focus:ring-blue-900"
|
||||
>
|
||||
Get started
|
||||
<svg
|
||||
class="w-3.5 h-3.5 ml-2 rtl:rotate-180"
|
||||
aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 14 10"
|
||||
>
|
||||
<path
|
||||
stroke="currentColor"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
d="M1 5h12m0 0L9 1m4 4L9 9"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
<a
|
||||
href="#"
|
||||
class="inline-flex justify-center items-center py-3 px-5 sm:ml-4 text-base font-medium text-center text-gray-900 rounded-lg border border-gray-300 hover:bg-gray-100 focus:ring-4 focus:ring-gray-100 dark:text-white dark:border-gray-700 dark:hover:bg-gray-700 dark:focus:ring-gray-800"
|
||||
>
|
||||
Learn more
|
||||
</a>
|
||||
</div>
|
||||
</fwb-jumbotron>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import FwbJumbotron from '@/components/FwbJumbotron/FwbJumbotron.vue'
|
||||
</script>
|
||||
109
docs/components/jumbotron/examples/FwbJumbotronFormExample.vue
Normal file
109
docs/components/jumbotron/examples/FwbJumbotronFormExample.vue
Normal file
@@ -0,0 +1,109 @@
|
||||
<template>
|
||||
<div
|
||||
class="vp-raw"
|
||||
>
|
||||
<fwb-jumbotron
|
||||
class="lg:py-8 px-4 text-start "
|
||||
header-classes="text-left"
|
||||
sub-text-classes="lg:px-0"
|
||||
header-text="We invest in the world’s potential"
|
||||
sub-text="Here at Flowbite we focus on markets where technology, innovation, and capital can unlock long-term value and drive economic growth."
|
||||
>
|
||||
<a
|
||||
href="#"
|
||||
class="text-blue-600 dark:text-blue-500 hover:underline font-medium text-lg inline-flex items-center mb-8"
|
||||
>Read more about our app
|
||||
<svg
|
||||
class="w-3.5 h-3.5 ms-2 rtl:rotate-180"
|
||||
aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 14 10"
|
||||
>
|
||||
<path
|
||||
stroke="currentColor"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
d="M1 5h12m0 0L9 1m4 4L9 9"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
<div>
|
||||
<div class="w-full p-6 space-y-8 sm:p-8 bg-white rounded-lg shadow-xl dark:bg-gray-800">
|
||||
<h2 class="text-2xl font-bold text-gray-900 dark:text-white">
|
||||
Sign in to Flowbite
|
||||
</h2>
|
||||
<form
|
||||
class="mt-8 space-y-6"
|
||||
action="#"
|
||||
>
|
||||
<div>
|
||||
<label
|
||||
for="email"
|
||||
class="block mb-2 text-sm font-medium text-gray-900 dark:text-white"
|
||||
>Your email</label>
|
||||
<input
|
||||
id="email"
|
||||
type="email"
|
||||
name="email"
|
||||
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
||||
placeholder="name@company.com"
|
||||
required
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<label
|
||||
for="password"
|
||||
class="block mb-2 text-sm font-medium text-gray-900 dark:text-white"
|
||||
>Your password</label>
|
||||
<input
|
||||
id="password"
|
||||
type="password"
|
||||
name="password"
|
||||
placeholder="••••••••"
|
||||
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
||||
required
|
||||
>
|
||||
</div>
|
||||
<div class="flex items-start">
|
||||
<div class="flex items-center h-5">
|
||||
<input
|
||||
id="remember"
|
||||
aria-describedby="remember"
|
||||
name="remember"
|
||||
type="checkbox"
|
||||
class="w-4 h-4 border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-blue-300 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:bg-gray-700 dark:border-gray-600"
|
||||
required
|
||||
>
|
||||
</div>
|
||||
<div class="ms-3 text-sm">
|
||||
<label
|
||||
for="remember"
|
||||
class="font-medium text-gray-500 dark:text-gray-400"
|
||||
>Remember this device</label>
|
||||
</div>
|
||||
<a
|
||||
href="#"
|
||||
class="ms-auto text-sm font-medium text-blue-600 hover:underline dark:text-blue-500"
|
||||
>Lost Password?</a>
|
||||
</div>
|
||||
<button
|
||||
type="submit"
|
||||
class="w-full px-5 py-3 text-base font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 sm:w-auto dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
||||
>
|
||||
Login to your account
|
||||
</button>
|
||||
<div class="text-sm font-medium text-gray-900 dark:text-white">
|
||||
Not registered yet? <a class="text-blue-600 hover:underline dark:text-blue-500">Create account</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</fwb-jumbotron>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import FwbJumbotron from '@/components/FwbJumbotron/FwbJumbotron.vue'
|
||||
</script>
|
||||
@@ -0,0 +1,50 @@
|
||||
<template>
|
||||
<div
|
||||
class="vp-raw"
|
||||
>
|
||||
<fwb-jumbotron
|
||||
header-text="We invest in the world’s potential"
|
||||
sub-text="Here at Flowbite we focus on markets where technology, innovation, and capital can unlock long-term value and drive economic growth."
|
||||
class="relative bg-white dark:bg-gray-900 bg-[url('https://flowbite.s3.amazonaws.com/docs/jumbotron/hero-pattern.svg')] dark:bg-[url('https://flowbite.s3.amazonaws.com/docs/jumbotron/hero-pattern-dark.svg')]"
|
||||
>
|
||||
<form class="w-full max-w-md mx-auto">
|
||||
<label
|
||||
for="default-email"
|
||||
class="mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
||||
>Email sign-up</label>
|
||||
<div class="relative">
|
||||
<div class="absolute inset-y-0 rtl:inset-x-0 start-0 flex items-center ps-3.5 pointer-events-none">
|
||||
<svg
|
||||
class="w-4 h-4 text-gray-500 dark:text-gray-400"
|
||||
aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 16"
|
||||
>
|
||||
<path d="m10.036 8.278 9.258-7.79A1.979 1.979 0 0 0 18 0H2A1.987 1.987 0 0 0 .641.541l9.395 7.737Z" />
|
||||
<path d="M11.241 9.817c-.36.275-.801.425-1.255.427-.428 0-.845-.138-1.187-.395L0 2.6V14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2.5l-8.759 7.317Z" />
|
||||
</svg>
|
||||
</div>
|
||||
<input
|
||||
id="default-email"
|
||||
type="email"
|
||||
class="block w-full p-4 ps-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-white focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-800 dark:border-gray-700 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
||||
placeholder="Enter your email here..."
|
||||
required
|
||||
>
|
||||
<button
|
||||
type="submit"
|
||||
class="text-white absolute end-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
||||
>
|
||||
Sign up
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="bg-gradient-to-b from-blue-50 to-transparent dark:from-blue-900 w-full h-full absolute top-0 left-0 z-0" />
|
||||
</fwb-jumbotron>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import FwbJumbotron from '@/components/FwbJumbotron/FwbJumbotron.vue'
|
||||
</script>
|
||||
@@ -0,0 +1,57 @@
|
||||
<template>
|
||||
<div
|
||||
class="vp-raw"
|
||||
>
|
||||
<fwb-jumbotron
|
||||
class="lg:py-8 px-4 "
|
||||
header-classes="text-left"
|
||||
sub-text-classes="lg:px-0"
|
||||
header-text="We invest in the world’s potential"
|
||||
sub-text="Here at Flowbite we focus on markets where technology, innovation, and capital can unlock long-term value and drive economic growth."
|
||||
>
|
||||
<div class="flex flex-col space-y-4 sm:flex-row sm:space-y-0 mb-8">
|
||||
<a
|
||||
href="#"
|
||||
class="inline-flex justify-center items-center py-3 px-5 text-base font-medium text-center text-white rounded-lg bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:focus:ring-blue-900"
|
||||
>
|
||||
Get started
|
||||
<svg
|
||||
class="w-3.5 h-3.5 ml-2 rtl:rotate-180"
|
||||
aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 14 10"
|
||||
>
|
||||
<path
|
||||
stroke="currentColor"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
d="M1 5h12m0 0L9 1m4 4L9 9"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
<a
|
||||
href="#"
|
||||
class="inline-flex justify-center items-center py-3 px-5 sm:ml-4 text-base font-medium text-center text-gray-900 rounded-lg border border-gray-300 hover:bg-gray-100 focus:ring-4 focus:ring-gray-100 dark:text-white dark:border-gray-700 dark:hover:bg-gray-700 dark:focus:ring-gray-800"
|
||||
>
|
||||
Learn more
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<iframe
|
||||
class="mx-auto w-full h-64 rounded-lg sm:h-96 shadow-xl"
|
||||
src="https://www.youtube.com/embed/KaLxCiilHns"
|
||||
title="YouTube video player"
|
||||
frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen
|
||||
/>
|
||||
</div>
|
||||
</fwb-jumbotron>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import FwbJumbotron from '@/components/FwbJumbotron/FwbJumbotron.vue'
|
||||
</script>
|
||||
Reference in New Issue
Block a user