A modern React-based news application that provides a clean interface for browsing, searching, and bookmarking news articles.
- Article Browsing: Browse news articles with a clean, responsive interface
- Category Navigation: Filter news by different categories
- Search Functionality: Search for specific news articles
- Bookmarking System: Save and manage favorite articles
- Responsive Design: Optimized for both desktop and mobile viewing
- Pagination: Easy navigation through multiple pages of articles
- React
- Redux Toolkit for state management
- Tailwind CSS for styling
- Vite as build tool
- React Router for navigation
Project Name: HaalSamachar
├── .github/
│ └── (GitHub-specific configuration files)
├── public/
│ └── vite.svg
├── src/
│ ├── app/
│ │ └── store.js
│ ├── assets/
│ │ └── react.svg
│ ├── components/
│ │ ├── CategoryList.jsx
│ │ ├── Footer.jsx
│ │ ├── Header.jsx
│ │ ├── Image.jsx
│ │ ├── NewsItem.jsx
│ │ ├── NewsItemFooter.jsx
│ │ ├── NewsItemHeader.jsx
│ │ ├── NewsList.jsx
│ │ ├── Pagination.jsx
│ │ └── SearchBar.jsx
│ ├── features/
│ │ └── news/
│ │ ├── newsApi.js
│ │ └── newsSlice.js
│ ├── hooks/
│ │ └── useFetchNews.js
│ ├── layouts/
│ │ └── AppLayout.jsx
│ ├── pages/
│ │ ├── BookmarkPage.jsx
│ │ ├── DetailsPage.jsx
│ │ ├── HomePage.jsx
│ │ ├── SearchPage.jsx
│ │ └── index.js
│ ├── utils/
│ │ └── (Utility functions or helper files, if any)
│ ├── App.jsx
│ ├── index.css
│ ├── main.jsx
│ └── index.html
├── .eslintrc.cjs
├── .gitignore
├── README.md
├── index.html
├── package-lock.json
├── package.json
├── postcss.config.js
├── tailwind.config.js
├── vercel.json
└── vite.config.js
Displays the latest news articles with categories and a dynamic news feed.
View complete news articles with a clean and readable layout.
Search for articles by keywords and view highlighted results.
Save and revisit your favorite articles easily.
- Clone the repository
- Install dependencies:
npm install
- Start the development server:
npm run dev
Header
: Main navigation and search barNewsItem
: Individual news article displayCategoryList
: Category navigationSearchBar
: Article search functionalityPagination
: Page navigationBookmarkPage
: Saved articles management
- Browse articles by category
- View article details
- Responsive image loading
- Article publish date formatting
- Search articles by keyword
- Real-time search results
- Search history
- Save articles for later reading
- Remove bookmarks
- Persistent bookmark storage
The project uses modern React practices including:
- Functional components with hooks
- Redux for state management
- Custom hooks for data fetching
- Component-based architecture
- Responsive design with Tailwind CSS
The application is configured for deployment on Vercel with the included vercel.json
configuration file.
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
This project is open source and available under the MIT License.