Flowbite 컴포넌트 — 점보트론(Jumbotron)
Flowbite의 점보트론(Jumbotron) 컴포넌트는 랜딩 페이지나 히어로 섹션에서 주목을 끌기 위한 큰 배너 영역이에요. Tailwind CSS 클래스로 크고 눈에 띄는 타이틀, 설명, 행동을 유도하는 버튼(Call to Action)을 배치할 수 있어요.
출처: 문서
본문
점보트론은 중앙 정렬된 텍스트와 버튼을 조합해 사용자의 주목을 끌어요. 아래는 기본 점보트론 예시예요.
<section class="bg-white dark:bg-gray-900">
<div class="py-8 px-4 mx-auto max-w-screen-xl text-center lg:py-16">
<h1 class="mb-4 text-4xl font-extrabold tracking-tight leading-none text-gray-900 md:text-5xl lg:text-6xl dark:text-white">
We invest in the world's potential
</h1>
<p class="mb-8 text-lg font-normal text-gray-500 lg:text-xl sm:px-16 lg:px-48 dark:text-gray-400">
Here at Flowbite we focus on markets where technology, innovation, and capital can unlock long-term value and drive economic growth.
</p>
<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
</a>
<a href="#" class="inline-flex justify-center items-center py-3 px-5 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>
</section>
배경색이 있는 점보트론
그라데이션이나 배경색을 넣어 더 강렬한 히어로 섹션을 만들 수도 있어요.
<section class="bg-gradient-to-r from-blue-500 to-purple-500">
<div class="py-8 px-4 mx-auto max-w-screen-xl text-center lg:py-16">
<h1 class="mb-4 text-4xl font-extrabold tracking-tight leading-none text-white md:text-5xl lg:text-6xl">
Custom Jumbotron with gradient
</h1>
<p class="mb-8 text-lg font-normal text-gray-100 lg:text-xl sm:px-16 lg:px-48">
Use Tailwind utilities to create unique hero sections.
</p>
<a href="#" class="inline-flex justify-center items-center py-3 px-5 text-base font-medium text-center text-white rounded-lg bg-gray-900 hover:bg-gray-800 focus:ring-4 focus:ring-gray-300">
Custom CTA
</a>
</div>
</section>
점보트론은 타이틀, 부제, CTA 버튼의 조합만으로 강력한 첫인상을 만들어내는 데 유용해요. 사이즈와 색상은 Tailwind 유틸리티 클래스로 자유롭게 조절할 수 있답니다.