Common Components
Page Hero
Hero section for page headers with optional label and accent text
Quick Preview
About Us
Building the future together.
Installation
// Copy the PageHero component fromsrc/components/common/PageHero.tsx
Usage
import { PageHero } from '@/components/common/PageHero'export default function AboutPage() {return (<PageHerolabel="About Us"title="Building the future of"titleAccent="web development."description="We create amazing digital experiences"/>)}
Examples
Light Theme (Default)
Teal background with centered content
About Us
Building the future of web development.
We create amazing digital experiences
Dark Theme
Black background with white text
Get in touch today.
Without Label
Hero without the small label
Welcome to our platform.
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | - | Small label text above title |
title* | string | - | Main heading text |
titleAccent | string | - | Accented part of the title (teal color) |
description | string | - | Subheading text |
dark | boolean | - | Use dark theme (black background) |
Features
- โTwo color schemes (light teal / dark black)
- โOptional label with uppercase styling
- โTitle with optional accent color
- โCentered layout
- โResponsive padding