This project is a single page front end web for BEU Music built with React JS framework. I created this project as an exercise to develop front end skills
- Build out the project to the designs provided
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- React JS - JS library
- react icons - JS library to add icons
I learned how to implement a filter function using react hooks to filter albums based on genres Code snippets, see below:
const allGenres = ['All Genre', ...new Set(AlbumData.map(album => album.genre))];
const [genreMenu, setGenreMenu] = useState(AlbumData);
const [buttons, setButtons] = useState(allGenres);
const filter = (button) =>{
if(button === 'All Genre'){
setGenreMenu(AlbumData);
return;
}
const filteredData = AlbumData.filter(album => album.genre === button);
setGenreMenu(filteredData)
}
The following screenshot is an example of displaying albums based on pop genre
The development of this project can be continued by creating multiple page for each links in navigation bar
- UI/UX Design Resources - This website provide many UI/UX design some are free. I really liked this website and will use it going forward.
- Github - Shabrina Putri
- Instagram - @shabputri_