This repository was archived by the owner on Dec 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from Rantahu/master
Showing
51 changed files
with
115 additions
and
368 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,10 @@ | ||
.about-container { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
justify-content: center; | ||
align-items: center; | ||
background-image: url('../img/vapor.gif'); | ||
background-size: cover; | ||
} |
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,8 @@ | ||
.auth-container { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
justify-content: center; | ||
align-items: center; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
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
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,37 +1,45 @@ | ||
import React, { Component } from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import { connect } from 'react-redux'; | ||
import PropTypes from 'prop-types'; | ||
|
||
@connect(state => ({ | ||
user: state.auth.user | ||
})) | ||
class ProfileButton extends Component { | ||
static propTypes = { | ||
user: PropTypes.arrayOf(PropTypes.object).isRequired, | ||
user: PropTypes.arrayOf(PropTypes.object), | ||
}; | ||
|
||
render() { | ||
if (this.props.user != null) { | ||
return ( | ||
<div id="profile-button"> | ||
<div id="user-profile-status"> | ||
<p>{this.props.user.username}</p> | ||
<p>{this.props.user.rep}</p> | ||
</div> | ||
<div id="user-profile-avatar"> | ||
<img | ||
className="profile-image" | ||
src={this.props.user.avatarUrl} | ||
alt={this.props.user.username} | ||
/> | ||
</div> | ||
<div className="u-cf" /> | ||
</div> | ||
); | ||
} | ||
return ( | ||
<div id="profile-button"> | ||
<div id="user-profile-status"> | ||
<p>{this.props.user.username}</p> | ||
<p>{this.props.user.rep}</p> | ||
</div> | ||
<div id="user-profile-avatar"> | ||
<img | ||
className="profile-image" | ||
src={this.props.user.avatarUrl} | ||
alt={this.props.user.username} | ||
/> | ||
</div> | ||
<Link to="login">login</Link> | ||
<br /> | ||
<Link to="register">sign up</Link> | ||
<div className="u-cf" /> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
|
||
function mapStateToProps(state) { | ||
return { | ||
user: state.activeUser | ||
}; | ||
} | ||
|
||
export default connect(mapStateToProps)(ProfileButton); | ||
export default ProfileButton; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
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
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,29 @@ | ||
import React, { Component } from 'react'; | ||
import Helmet from 'react-helmet'; | ||
|
||
/** | ||
* About Page | ||
* Display a the cozy logo. | ||
* | ||
* ToDo: Add pause/mute button | ||
*/ | ||
class About extends Component { | ||
render() { | ||
let cube = require('assets/img/cube.svg'); | ||
let musicmp3 = require('assets/audio/lake-zurich.mp3'); | ||
let musicogg = require('assets/audio/lake-zurich.ogg'); | ||
|
||
return ( | ||
<div className="about-container"> | ||
<Helmet title="about" /> | ||
<img src={cube} alt="cube" /> | ||
<audio autoPlay> | ||
<source src={musicogg} type="audio/ogg" /> | ||
<source src={musicmp3} type="audio/mpeg" /> | ||
</audio> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default About; |
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,2 +1,2 @@ | ||
export App from './App/App'; | ||
export App from './app/app'; | ||
export NotFound from './NotFound/NotFound'; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
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
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