Skip to content

Commit

Permalink
Chhange color
Browse files Browse the repository at this point in the history
  • Loading branch information
Lowess committed Sep 26, 2019
1 parent 1b218cd commit af23829
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import logo from './logo.svg';
import './App.css';
import GoGear from 'react-icons/lib/go/gear'

const localIpUrl = require('local-ip-url');

const palettes = {
// Multicolor
"multicolor": [
Expand Down Expand Up @@ -70,18 +68,15 @@ class App extends Component {
this.subjects = subjects["devops"]

// Set the palette style
this.palette = palettes["multicolor"]
this.palette = palettes["blue"]

this.state = {
subject: this.randomSubject(this.subjects),
style: {
color: this.randomColor(this.palette)
},
ip_private_style: {
color: "grey"
},
ip_public_style: {
color: "lightgrey"
server_style: {
color: "lighgrey"
}
}
}
Expand Down Expand Up @@ -128,7 +123,7 @@ class App extends Component {
</h3>
<hr />
<small>
Served by <span style={this.state.ip_private_style}>{localIpUrl('private')}</span> / <span style={this.state.ip_public_style}>{localIpUrl('public')}</span>
Served by <span style={this.state.server_style}></span>
</small>
</div>
</div>
Expand Down

0 comments on commit af23829

Please sign in to comment.