A responsive customer segmentation interface built with React and Tailwind CSS. The layout presents customer groups through image-based cards with dynamic labels, colors, and reusable components.
- Preview with Live Demo
- Features
- Implementation
- Tech Stack
- Project Structure
- Component Flow
- Getting Started
- Author
Click the preview to visit the live page 👇
- Customer segmentation card interface
- Responsive two-section layout
- Horizontally scrollable card section
- Reusable React components
- Dynamic customer data rendering
- Image-based card backgrounds
- Dynamic labels and colors
- Custom scrollbar handling
- Lucide React icons
-
The customer data is maintained in an array inside
App.jsxand passed to theTopPagecomponent through props. -
The data is then passed through the component hierarchy until it reaches the card components.
map()is used to dynamically generate each customer card instead of creating the cards individually. -
The interface is divided into reusable components for the navigation, left content, card section, individual cards, and card content.
-
Tailwind CSS utility classes are used throughout the components for layout, spacing, typography, sizing, positioning, backgrounds, and responsive styling.
-
The right-side cards use horizontally scrollable content, while the scrollbar is hidden to maintain a cleaner visual presentation.
App
↓
TopPage
↓
TopContent
├── LeftContent
└── RightContent
↓
RightCard
↓
CardContent
- React
- Vite
- JavaScript
- Tailwind CSS
- Lucide React
react-tailwind-ui/
├── public/
│ └── preview.png
└── src/
├── components/
│ └── TopPage/
│ ├── CardContent.jsx
│ ├── LeftContent.jsx
│ ├── NavBar.jsx
│ ├── RightCard.jsx
│ ├── RightContent.jsx
│ ├── TopContent.jsx
│ └── TopPage.jsx
├── App.jsx
├── index.css
└── main.jsx
flowchart TD
A[App.jsx] --> B[TopPage]
B --> C[NavBar]
B --> D[TopContent]
D --> E[LeftContent]
D --> F[RightContent]
F --> G[RightCard]
G --> H[CardContent]
git clone https://github.com/hadiashah01/react-tailwind-ui.git
cd react-tailwind-uinpm installnpm run devHadia Shahjahan
- GitHub: @hadiashah01
- LinkedIn: Hadia Shahjahan

