An open API service indexing awesome lists of open source software.

https://github.com/hemants1703/news-homepage-frontend-mentor-solution

Solution to the Frontend Mentor Challenge to build a News Homepage Website
https://github.com/hemants1703/news-homepage-frontend-mentor-solution

css frontend-mentor html javacript react reactjs vite

Last synced: 9 months ago
JSON representation

Solution to the Frontend Mentor Challenge to build a News Homepage Website

Awesome Lists containing this project

README

          

# Frontend Mentor - News homepage solution

This is a solution to the [News homepage challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/news-homepage-H6SWTa1MFl). Frontend Mentor challenges help you improve your coding skills by building realistic projects.

## Table of contents

- [Frontend Mentor - News homepage solution](#frontend-mentor---news-homepage-solution)
- [Table of contents](#table-of-contents)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Author](#author)

### The challenge

Users should be able to:

- View the optimal layout for the interface depending on their device's screen size
- See hover and focus states for all interactive elements on the page

### Screenshot

![Desktop Version]([screenshots/desktop.png](https://github.com/hemants1703/news-homepage-frontend-mentor-solution/blob/d801625829da658712cc15568011a7e8774cf5cc/screenshots/desktop.png))

![Mobile Version]([screenshots/mobile.png](https://github.com/hemants1703/news-homepage-frontend-mentor-solution/blob/d801625829da658712cc15568011a7e8774cf5cc/screenshots/mobile.png))

### Links

- Solution URL: [news-homepage-frontend-mentor-solution](https://github.com/hemants1703/news-homepage-frontend-mentor-solution.git)
- Live Site URL: [Add live site URL here](https://your-live-site-url.com)

## My process

### Built with

- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- [React](https://reactjs.org/) - JS library

### What I learned

I learned a lot about structuring React code into components using props and also used Hooks to manage the state of the application. I also learned about using CSS Grid to layout the page.

```css
.proud-of-this-css {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
gap: 10px;
}
```

## Author

- Website - [Hemant Sharma](https://www.hemantsharma.dev)
- Frontend Mentor - [@hemants1703](https://www.frontendmentor.io/profile/hemants1703)
- Twitter - [@hemants1703](https://www.twitter.com/hemants1703)