A modern, responsive ChatGPT-like chat application built with Next.js, TypeScript, and Tailwind CSS.
- ChatGPT-style UI: Clean, minimal chat interface inspired by OpenAI's ChatGPT
- Responsive Design: Works seamlessly on desktop and mobile
- Sidebar & Mobile Navigation: Consistent navigation for all device sizes
- Predefined Questions: Quick-access suggestions below the chat input
- No UI Component Library: All UI is custom and minimal
src/
├── app/
│ ├── home/page.tsx # Main chat page (/home)
│ ├── history/page.tsx # Placeholder for history route (/history)
│ ├── discover/page.tsx # Placeholder for discover route (/discover)
│ ├── layout.tsx # Root layout
│ ├── globals.css # Global styles (Tailwind + custom)
│ └── page.tsx # Redirects / to /home
├── components/
│ ├── Sidebar.tsx # Sidebar for desktop/tablet
│ ├── MobileNav.tsx # Bottom nav for mobile
│ ├── MobileHeader.tsx # Top header for mobile
│ ├── CenteredLogo.tsx # Centered logo in chat
│ ├── ChatInput.tsx # Chat input and suggestions
│ └── HelpButton.tsx # Floating help button
└── public/
├── logo.svg # App logo
├── home.svg # Home icon
├── sandglass.svg # History icon
└── globe.svg # Discover icon
- Node.js 18+
- npm or yarn
- Clone the repository:
git clone <repository-url> cd sentient-frontend
- Install dependencies:
npm install # or yarn install - Run the development server:
npm run dev # or yarn dev - Open http://localhost:3000 in your browser. You will be redirected to
/home.
/home— Main chat interface/history— Placeholder for chat history (UI only)/discover— Placeholder for discover/explore (UI only)/— Redirects to/home
- Sidebar on desktop/tablet, bottom nav and top header on mobile
- Chat input and suggestions adapt to all screen sizes
- All UI is built with Tailwind CSS and custom React components
- SVG icons and logo are in the
public/folder - To add new routes, create a new folder in
src/app/with apage.tsx
This project is part of the Sentient Frontend Assignment.