-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2360804
commit 3735be3
Showing
36 changed files
with
2,101 additions
and
1,498 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,49 @@ | ||
import React from 'react'; | ||
import Upload from "./Upload"; | ||
import '../stylesheet/upload.css'; | ||
|
||
const AddSong = () => { | ||
|
||
return( | ||
<div className = 'songbox'> | ||
<h1 className = 'addst'>New Song</h1> | ||
<div className = 'coverblock'> | ||
<h3 className = 'songcov'>Song Cover</h3> | ||
<div><Upload /></div> | ||
</div> | ||
<div className = 'inct'> | ||
<input className = 'addsi' type = 'text' name = 'songname' required/> | ||
<label for = 'songname' className = 'addslab'> | ||
<span className = 'addsl'>Song</span> | ||
</label> | ||
</div> | ||
<div className = 'inct'> | ||
<input className = 'addsi' type = 'text' name = 'genre' required/> | ||
<label for = 'genre' className = 'addslab'> | ||
<span className = 'addsl'>Genre</span> | ||
</label> | ||
</div> | ||
<div className = 'inct'> | ||
<input className = 'addsi' type = 'text' name = 'mood' required/> | ||
<label for = 'mood' className = 'addslab'> | ||
<span className = 'addsl'>Mood</span> | ||
</label> | ||
</div> | ||
<div className = 'inct'> | ||
<input className = 'addsi' type = 'number' step = '.01' min = '0' name = 'duration' required/> | ||
<label for = 'duration' className = 'addslab'> | ||
<span className = 'addsl'>Playtime</span> | ||
</label> | ||
</div> | ||
<div className = 'inct2'> | ||
<textarea className = 'addsi' name = 'lyrics' required/> | ||
<label for = 'lyrics' className = 'addslab'> | ||
<span className = 'addsl'>Lyrics</span> | ||
</label> | ||
</div> | ||
<button className = 'clickme4'>Submit</button> | ||
</div> | ||
); | ||
} | ||
|
||
export default AddSong; |
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 |
---|---|---|
@@ -1,21 +1,60 @@ | ||
import React from 'react'; | ||
import React from "react"; | ||
import { Link } from "react-router-dom"; | ||
|
||
const LoginPage = () =>{ | ||
return( | ||
<div className = 'loginbox'> | ||
<h1 className = 'formtop'>Login</h1> | ||
<div> | ||
<h2 className = 'formfield'>Username</h2> | ||
<input className = 'forminput' type = 'text' placeholder = 'Username' name = 'username'/> | ||
</div> | ||
<div> | ||
<h2 className = 'formfield'>Password</h2> | ||
<input className = 'forminput' type = 'password' name = 'pass' placeholder = '********'/> | ||
</div> | ||
<button className = 'clickme3 bt2'>New User</button> | ||
<button className = 'clickme3 bt3'>Login</button> | ||
</div> | ||
); | ||
} | ||
const initialFormData = Object.freeze({ | ||
fullname: "", | ||
password: "" | ||
}); | ||
|
||
export default LoginPage; | ||
const LoginPage = () => { | ||
const [formData, setFormData] = React.useState(initialFormData); | ||
|
||
const handleInputChange = e => { | ||
setFormData({ | ||
...formData, | ||
[e.target.name]: e.target.value | ||
}); | ||
// console.log(e.target.value); | ||
}; | ||
|
||
const handleSubmit = e => { | ||
e.preventDefault(); | ||
console.log(formData); | ||
// ... submit to API or something | ||
}; | ||
|
||
return ( | ||
<div className="loginbox"> | ||
<h1>Login</h1> | ||
<label for="username">Username</label> | ||
<input | ||
className="forminput" | ||
type="text" | ||
placeholder="Username" | ||
name="fullname" | ||
value={formData.username} | ||
onChange={handleInputChange} | ||
/> | ||
|
||
<label for="password">Password</label> | ||
<input | ||
className="forminput" | ||
type="password" | ||
name="password" | ||
placeholder="Password..." | ||
value={formData.password} | ||
onChange={handleInputChange} | ||
/> | ||
<div className="buttons"> | ||
<button className="bt" onClick={handleSubmit}> | ||
Login | ||
</button> | ||
<Link to="/signup"> | ||
<button className="bt">New User</button> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LoginPage; |
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,18 @@ | ||
import React from 'react'; | ||
|
||
const ModList = ({ artist, songname, duration, mood, genre }) => { | ||
return( | ||
<div className = 'modlistent'> | ||
<h3 className = 'modetext pd1'>{songname}</h3> | ||
<h3 className = 'modetext pd2'>{artist}</h3> | ||
<h3 className = 'modetext pd3'>{genre}</h3> | ||
<h3 className = 'modetext pd4'>{mood}</h3> | ||
<h3 className = 'modetext pd5'>{duration}</h3> | ||
<button className = 'clickme5 but1'>Approve</button> | ||
<button className = 'clickme5 but2'>Decline</button> | ||
</div> | ||
); | ||
|
||
} | ||
|
||
export default ModList; |
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 React from 'react'; | ||
import ModList from './ModList'; | ||
|
||
const ModeratorPage = () =>{ | ||
return( | ||
<div className = 'modpagecont'> | ||
<div className = 'moderator'> | ||
<div className = 'modheader'> | ||
<h1 className = 'modheadtext'>Moderator Console</h1> | ||
</div> | ||
<div className = 'modlisttop'> | ||
<h3 className = 'modhtext pd1'>Song Title</h3> | ||
<h3 className = 'modhtext pd2'>Artist</h3> | ||
<h3 className = 'modhtext pd3'>Genre</h3> | ||
<h3 className = 'modhtext pd4'>Mood</h3> | ||
<h3 className = 'modhtext pd5'>Playtime</h3> | ||
<h3 className = 'modhtext pd6'>Approve</h3> | ||
</div> | ||
<div className = 'modlist'> | ||
<ModList | ||
songname = 'Way Down We Go' | ||
artist = 'Kaleo' | ||
genre = 'Indie' | ||
mood = 'Sad' | ||
duration = '2.45' | ||
/> | ||
<ModList | ||
songname = 'Way Down We Go' | ||
artist = 'Kaleo' | ||
genre = 'Indie' | ||
mood = 'Sad' | ||
duration = '2.45' | ||
/> | ||
<ModList | ||
songname = 'Way Down We Go' | ||
artist = 'Kaleo' | ||
genre = 'Indie' | ||
mood = 'Sad' | ||
duration = '2.45' | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
export default ModeratorPage; |
Oops, something went wrong.