-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement jukebox object, store, network, add info to settings page
- Loading branch information
Showing
32 changed files
with
369 additions
and
802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,4 +68,4 @@ export const MusicSearch = () => { | |
</div> | ||
</div> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,78 @@ | ||
.disk { | ||
align-items: center; | ||
float: right; | ||
display: flex; | ||
height: 100%; | ||
position: relative; | ||
align-items: center; | ||
float: right; | ||
display: flex; | ||
height: 100%; | ||
position: relative; | ||
|
||
z-index: 2; | ||
z-index: 2; | ||
} | ||
|
||
.card { | ||
display: flex; | ||
flex-direction: column; | ||
margin: auto; | ||
width: 100%; | ||
position: relative; | ||
transform: translate(0, -25%); | ||
|
||
display: flex; | ||
flex-direction: column; | ||
margin: auto; | ||
width: 100%; | ||
position: relative; | ||
transform: translate(0, -25%); | ||
} | ||
|
||
.song-desc{ | ||
.song-desc { | ||
margin: 2vh 0 3vh 0; | ||
} | ||
|
||
.song-title { | ||
font-family: Chango; | ||
padding-bottom: 2vh; | ||
padding-top: 1vh; | ||
font-size: 1.8vw; | ||
font-weight: 100; | ||
@include font-display('sm'); | ||
padding-bottom: 1.5rem; | ||
|
||
&--small { | ||
@include font-display('xs'); | ||
} | ||
} | ||
|
||
.song-queue { | ||
background-color: var(--color-surface); | ||
display: flex; | ||
min-height: 49.5vh; | ||
|
||
flex-direction: column; | ||
padding-top: 4vh; | ||
padding-bottom: 4vh; | ||
padding-left: 0.5vw; | ||
padding-right: 0.5vw; | ||
border-radius: 10px; | ||
margin-top: -10.5vh; | ||
|
||
position: relative; | ||
z-index: 3; | ||
overflow: overlay; | ||
|
||
background-color: var(--color-surface); | ||
display: flex; | ||
min-height: 49.5vh; | ||
|
||
flex-direction: column; | ||
padding-top: 4vh; | ||
padding-bottom: 4vh; | ||
padding-left: 0.5vw; | ||
padding-right: 0.5vw; | ||
border-radius: 10px; | ||
margin-top: -10.5vh; | ||
|
||
position: relative; | ||
z-index: 3; | ||
overflow: overlay; | ||
} | ||
|
||
.curr-song{ | ||
.curr-song { | ||
@include absCenter; | ||
border-radius: 50%; | ||
border-color: #CA6B4F; | ||
border-color: #ca6b4f; | ||
border-width: 3px; | ||
border-style: solid; | ||
width: 28vh; | ||
|
||
} | ||
|
||
} | ||
|
||
::-webkit-scrollbar { | ||
width: 1vh; | ||
background : var(--color-surface); | ||
border-radius: 10px; | ||
} | ||
|
||
width: 1vh; | ||
background: var(--color-surface); | ||
border-radius: 10px; | ||
} | ||
|
||
::-webkit-scrollbar-track { | ||
border-radius: 1vh; | ||
} | ||
|
||
::-webkit-scrollbar-track { | ||
border-radius: 1vh; | ||
} | ||
|
||
::-webkit-scrollbar-thumb { | ||
background: #818181; | ||
border-radius: 1vh; | ||
width : 1vh; | ||
} | ||
|
||
::-webkit-scrollbar-thumb { | ||
background: #818181; | ||
border-radius: 1vh; | ||
width: 1vh; | ||
} | ||
|
||
::-webkit-scrollbar-thumb:hover { | ||
background: #8F8F8F; | ||
} | ||
::-webkit-scrollbar-thumb:hover { | ||
background: #8f8f8f; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { useSelector } from 'react-redux' | ||
import { selectAllClubs, selectUser } from 'src/store' | ||
import { selectAllJukeboxes } from 'src/store/jukebox' | ||
|
||
export const Settings = () => { | ||
const clubs = useSelector(selectAllClubs) | ||
const user = useSelector(selectUser) | ||
const jukeboxes = useSelector(selectAllJukeboxes) | ||
|
||
return ( | ||
<div> | ||
<section> | ||
<h2>Current User</h2> | ||
<ul> | ||
<li> | ||
Name: {user?.first_name} {user?.last_name} | ||
</li> | ||
<li>Email: {user?.email}</li> | ||
<li>Username: {user?.username}</li> | ||
</ul> | ||
</section> | ||
<br /> | ||
<section> | ||
<h2>Clubs</h2> | ||
<ul> | ||
{clubs.map((club) => ( | ||
<li key={club.id}>{club.name}</li> | ||
))} | ||
</ul> | ||
</section> | ||
<section> | ||
<h2>Jukeboxes</h2> | ||
<ul> | ||
{jukeboxes.map((jbx) => ( | ||
<li key={jbx.id}> | ||
{jbx.name} ( | ||
{clubs.find((club) => +club.id === +jbx.club_id)?.name ?? | ||
'No Club Found'} | ||
) | ||
</li> | ||
))} | ||
</ul> | ||
</section> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,10 @@ export const mockUser: IUser & { token: string } = { | |
id: 0, | ||
token: 'test-token', | ||
email: '[email protected]', | ||
firstName: 'John', | ||
lastName: 'Doe', | ||
clubs: mockClubs.map((club) => ({ | ||
id: club.id, | ||
name: club.name, | ||
ownerId: 0, | ||
})), | ||
username: '[email protected]', | ||
first_name: 'John', | ||
last_name: 'Doe', | ||
clubs: mockClubs, | ||
image: | ||
'https://static.vecteezy.com/system/resources/thumbnails/001/840/618/small_2x/picture-profile-icon-male-icon-human-or-people-sign-and-symbol-free-vector.jpg', | ||
} |
Oops, something went wrong.