This project is a responsive news website that fetches and displays news articles from various categories using the NewsAPI.
- Breaking news and top headlines
- Category-specific news sections (Sports, Business, Technology)
- Search functionality
- Responsive design for various screen sizes
- Pagination for search results and category sections
- HTML5
- CSS3
- JavaScript (ES6+)
- NewsAPI
- Font Awesome for icons
-
Clone the repository: git clone https://github.com/SID9927/News_Website.git
-
Navigate to the project directory:
-
Open
index.htmlin your browser to view the website.
This project uses a proxy server to fetch news data. The API base URL is set to:
const API_BASE_URL = 'https://news-proxy-server.netlify.app/api';- index.html: Main HTML file containing the structure of the website
- style.css: CSS file for styling the website
- index.js: JavaScript file containing the logic for fetching and displaying news data
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is open source and available under the MIT License.