forked from nukeop/nuclear
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
8 changed files
with
82 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
.downloads_container { | ||
position: relative; | ||
height: 100%; | ||
|
||
.empty_state { | ||
@include emptyState; | ||
|
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,7 @@ | ||
module.exports = { | ||
agplDisclaimer: 'This program is free software: you can redistribute' | ||
+ ' it and/or modify it under the terms of the GNU Affero General' | ||
+ ' Public License as published by the Free Software Foundation,' | ||
+ ' either version 3 of the License, or (at your option) any later' | ||
+ ' version. See the GNU Affero General Public License for more details.' | ||
}; |
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,62 @@ | ||
import React from 'react'; | ||
import { | ||
Button, | ||
Header, | ||
Image, | ||
Modal | ||
} from 'semantic-ui-react'; | ||
|
||
import HelpButton from '../HelpButton'; | ||
import { agplDisclaimer } from './const'; | ||
|
||
import logoImg from '../../../resources/media/logo_full_light.png'; | ||
import styles from './styles.scss'; | ||
|
||
class HelpModal extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
|
||
this.state = { | ||
open: false | ||
}; | ||
} | ||
|
||
handleOpen() { | ||
this.setState({ open: true }); | ||
} | ||
|
||
handleClose() { | ||
this.setState({ open: false }); | ||
} | ||
|
||
render() { | ||
return ( | ||
<Modal | ||
open={ this.state.open } | ||
onClose={ this.handleClose.bind(this) } | ||
basic | ||
centered | ||
dimmer='blurring' | ||
trigger={ <HelpButton onClick={ this.handleOpen.bind(this) } /> } | ||
className={ styles.help_modal } | ||
> | ||
<Modal.Header>About Nuclear Music Player</Modal.Header> | ||
<Modal.Content image> | ||
<Image wrapped size='medium' src={logoImg}/> | ||
<Modal.Description> | ||
<Header inverted>Desktop music player for streaming from free sources</Header> | ||
<p>Copyright © <a href='https://github.com/nukeop/'>nukeop</a> 2019, released under AGPL-3.0</p> | ||
<p>Many thanks to our contributors on Github, your help was vital in creating this program.</p> | ||
</Modal.Description> | ||
</Modal.Content> | ||
<Modal.Content> | ||
<Modal.Description> | ||
{ agplDisclaimer } | ||
</Modal.Description> | ||
</Modal.Content> | ||
</Modal> | ||
); | ||
} | ||
} | ||
|
||
export default HelpModal; |
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,9 @@ | ||
@import '../../vars.scss'; | ||
|
||
.help_modal { | ||
top: 25% !important; | ||
color: rgba($white, 0.75) !important; | ||
a { | ||
color: $cyan; | ||
} | ||
} |
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