T_hub is a modern, responsive social media feed web application built with React and Vite. It features a visually appealing UI inspired by popular social platforms, with support for stories, posts, likes, comments, user suggestions, and more. The project uses Tailwind CSS for styling and includes a mobile-friendly layout.
- Stories Carousel: Horizontal scrollable stories with viewed/unviewed states.
- Posts Feed: Each post displays user info, image, likes, comments, and time.
- Like, Comment, and Bookmark: Interactive icons for user engagement.
- Create Post Modal: Floating action button and modal for creating new posts.
- Responsive Design: Optimized for both desktop and mobile devices.
- User Suggestions: Sidebar with suggested users to follow.
- Modern UI: Uses gradients, glassmorphism, and smooth transitions.
- ESLint Integration: Enforced code quality with recommended rules and React hooks linting.
- React 19
- Vite (for fast development and build)
- Tailwind CSS (via CDN in
index.html) - Framer Motion (for animations)
- React Icons (for iconography)
- ESLint (with custom config)
- JavaScript (ES2020+)
- Node.js (v18 or higher recommended)
- npm
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to the local server URL (usually
http://localhost:5173).
npm run buildnpm run previewT_hub/
│
├── public/ # Static assets (vite.svg)
├── src/
│ ├── App.jsx # Main application component (UI logic)
│ ├── main.jsx # Entry point
│ ├── App.css # (empty, styles via Tailwind)
│ └── index.css # (empty, styles via Tailwind)
├── index.html # HTML template, includes Tailwind CDN
├── package.json # Project metadata and scripts
├── vite.config.js # Vite configuration
├── eslint.config.js # ESLint configuration
└── README.md # Project documentation
- Styling: Tailwind CSS is included via CDN. You can add custom styles in
App.cssorindex.cssif needed. - Data: Stories and posts are currently hardcoded in
App.jsxfor demo purposes. Integrate with a backend or API for dynamic content. - Icons: Uses
react-iconsfor a wide variety of icon options.
Run ESLint to check for code issues:
npm run lintThis project is for educational and demonstration purposes.