-
Notifications
You must be signed in to change notification settings - Fork 0
Frontend Routes and Components
BillTheDev edited this page Feb 24, 2022
·
4 revisions
- Root
- App
-
NavSidebarLeft-
NavLinks* (Home, Search, Your Library, Create Playlist, Liked Songs) -
Playlists*
-
-
NavHeader-
CurrentUser*
-
- [ Main Component ]
-
MediaPlayerFooter*
-
- App
*Note: If logged out, the display layout is similar, but content changes.
NavLinksonly allow Home and Search, otherwise prompt login/signup.Playlistsare not displayed.CurrentUseris replaced with login and signup buttons.MediaPlayeris replaced withFooterthat indicates preview and shows another signup button.
The following routes will be defined in the App Component and will render the components as the [Main Component] above.
-
/homeSplashContentModal-
NavHeader(Logo, GH/LI, Sign Up, Log In) -
NavSidebarLeft-
NavLinks(Home, Search, Your Library, Create Playlist, Liked Songs)
-
/login/signup
-
/homeredirects from/(exact)-
NavHeader(Logo, GH/LI, Username, Log Out) -
HomeTilesdisplays 'Recently Played' and 'Earshot Suggests'
-
-
/search-
NavHeader(Logo, GH/LI, Username, Log Out)SearchBar
-
SearchHomeif no search is madeRecentSearchGenreTiles
-
SearchResultif search is madeResultSongsResultArtistsResultAlbumsResultPlaylists
-
-
/library-
LibHeader(Logo, Playlists, Artists, Albums, GH/LI, Username, Logout)-
Playlists-
LikedSongsall user-liked songs -
PlaylistTilesdisplays 'Recently Played' and 'Earshot Suggests' playlists
-
-
Artists-
ArtistTilesdisplays user-liked artists and 'Earshot Suggests'
-
-
Albums-
AlbumTilesdisplays user-liked albums and 'Earshot Suggests' TBD: library separate pages?/library/playlists, etc
-
-
-
-
/newplaylist-
NavHeader(Logo, GH/LI, Username, Log Out) -
PlaylistForm- Modal onclick (Title, Description, Art)
SearchBar-
SearchResultblank if no search is made-
CombinedResultslist format songs from song/artist/album/playlist results
-
-
-
/library/trackslinks playlist of user-liked songs
Component lists recently played playlists in scrollable side-bar, links directly to playlist show page
/library/playlist/:id
-
/artist/:id-
ArtistHeaderName, Info, Avatar -
ArtistInteractivePlay and Like (dynamic) -
ArtistContentList popular tracks and info, Tile albums and album art
-
-
/album/:id-
AlbumHeaderTitle, Info, Album Art -
AlbumInteractivePlay and Like (dynamic) -
AlbumContentTrack list and info
-
-
/track/:id- redirect to associated album
album/idwith track selected
- redirect to associated album
-
/playlist/:id-
PlaylistHeaderName, Info, Album Art -
PlaylistInteractivePlay, Like (dynamic), and Edit (if user-owned)-
/playlist/:id/editredirects and populates data to/newplaylistand takes appropriate action (update, destroy) on submit
-
-
PlaylistContentTrack list and info
-