Newlet Tailwind Templates

Newlet

Developed a responsive news web application using React, Tailwind CSS, and News API to display real-time news articles. Implemented dynamic category-based navigation, a search feature, and mobile-first design for optimal user experience. Integrated React Router for seamless routing and state management with useState and useEffect hooks.

šŸ“° React News App

A responsive and modern News Web Application built using React, Vite, and Tailwind CSS. This app fetches real-time news articles based on different categories and search terms using the News API.

šŸš€ Features

  • āš›ļø Built with Vite + React
  • šŸŽØ Styled using Tailwind CSS
  • šŸ” Search functionality for news
  • šŸ—‚ļø Category-wise filtering (e.g., IPL, Finance, Politics)
  • šŸ“± Fully responsive UI (Mobile, Tablet, Desktop)
  • 🧭 Intuitive Navbar with mobile menu toggle
  • ā¬†ļø Auto scrolls to top on category change
  • 🧠 Clean and maintainable code structure

🧩 Technologies Used


šŸ“¦ Project Structure

src/
ā”œā”€ā”€ assets/
ā”œā”€ā”€ components/
│   ā”œā”€ā”€ Card.jsx
│   └── Navbar.jsx
ā”œā”€ā”€ pages/
│   ā”œā”€ā”€ Home.jsx
│   ā”œā”€ā”€ Category.jsx
│   └── Search.jsx
ā”œā”€ā”€ App.jsx
ā”œā”€ā”€ main.jsx
ā”œā”€ā”€ index.css

šŸ› ļø Getting Started

1. Clone the Repo

git clone https://github.com/your-username/react-news-app.git
cd react-news-app

2. Install Dependencies

npm install

3. Set Up .env File

  • Create a .env file at the root and add your News API key:
    VITE_NEWS_API_KEY=your_api_key_here
    

4. Run the App

npm run dev

Open in your browser: http://localhost:5173

Top categories

Loading Svelte Themes