Skip to content

Commit

Permalink
Merge pull request igorprado#26 from igorprado/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
igorprado committed Oct 15, 2015
2 parents 03eeafe + d0c3675 commit bebe3c4
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 21 deletions.
2 changes: 1 addition & 1 deletion devServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var compiler = webpack(config);

app.use(require('webpack-dev-middleware')(compiler, {
noInfo: true,
publicPath: config.output.publicPath
publicPath: '/' + config.output.publicPath
}));

app.use(require('webpack-hot-middleware')(compiler));
Expand Down
2 changes: 1 addition & 1 deletion example/build/app.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions example/build/app.js

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/src/images/congruent_pentagon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 14 additions & 12 deletions example/src/scripts/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var NotificationGenerator = require('./NotificationGenerator');
var NotificationSystemExample;

// Styles
console.log(require('styles/base'));
require('styles/base');

NotificationSystemExample = React.createClass({

Expand Down Expand Up @@ -76,7 +76,6 @@ NotificationSystemExample = React.createClass({

_allowHTML: function(allow) {
this.setState({ allowHTML: allow });
console.log(this.state);
},

_showTheMagic: function() {
Expand Down Expand Up @@ -105,17 +104,20 @@ NotificationSystemExample = React.createClass({
return (
<div className="app-container">
<header style={ { minHeight: this.state.viewHeight } } className="header gradient">
<h1 className="title">React Notification System</h1>
<h2 className="subtitle">A complete and totally customizable notifications component for React</h2>
<h3 className="versions">(For React 0.14x and 0.13.x)</h3>
<div className="overlay"></div>
<div className="content">
<h1 className="title">React Notification System</h1>
<h2 className="subtitle">A complete and totally customizable notifications component for React</h2>
<h3 className="versions">(For React 0.14x and 0.13.x)</h3>

<div className="btn-show-magic-holder">
<button className="btn btn-outline btn-show-magic" onClick={ this._showTheMagic }>Show me what it can do!</button>
<small className="more-magic">Click twice for more awesomeness!</small>
</div>
<div className="github-buttons">
<a className="github-button" href="https://github.com/igorprado/react-notification-system" data-style="mega" data-icon="octicon-star" data-count-href="/igorprado/react-notification-system/stargazers" data-count-api="/repos/igorprado/react-notification-system#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star igorprado/react-notification-system on GitHub">Star</a>
<a className="github-button" href="https://github.com/igorprado/react-notification-system/fork" data-style="mega" data-icon="octicon-repo-forked" data-count-href="/igorprado/react-notification-system/network" data-count-api="/repos/igorprado/react-notification-system#forks_count" data-count-aria-label="# forks on GitHub" aria-label="Fork igorprado/react-notification-system on GitHub">Fork</a>
<div className="btn-show-magic-holder">
<button className="btn btn-outline btn-show-magic" onClick={ this._showTheMagic }>Show me what it can do!</button>
<small className="more-magic">Click twice for more awesomeness!</small>
</div>
<div className="github-buttons">
<a className="github-button" href="https://github.com/igorprado/react-notification-system" data-style="mega" data-icon="octicon-star" data-count-href="/igorprado/react-notification-system/stargazers" data-count-api="/repos/igorprado/react-notification-system#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star igorprado/react-notification-system on GitHub">Star</a>
<a className="github-button" href="https://github.com/igorprado/react-notification-system/fork" data-style="mega" data-icon="octicon-repo-forked" data-count-href="/igorprado/react-notification-system/network" data-count-api="/repos/igorprado/react-notification-system#forks_count" data-count-aria-label="# forks on GitHub" aria-label="Fork igorprado/react-notification-system on GitHub">Fork</a>
</div>
</div>
</header>
<div className="wrapper">
Expand Down
12 changes: 12 additions & 0 deletions example/src/styles/base.sass
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ html, body
text-align: center
border-bottom: 6px solid $blue-green

.overlay
background: url(../images/congruent_pentagon.png) top left repeat
position: absolute
top: 0
left: 0
width: 100%
height: 100%
opacity: 0.3

.content
position: relative

.fractal
background: url(../images/footer_lodyas.png) top left repeat;

Expand Down
2 changes: 1 addition & 1 deletion webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
output: {
path: path.join(__dirname, 'example/build'),
filename: 'app.js',
publicPath: '/build/'
publicPath: 'build/'
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
output: {
path: path.join(__dirname, 'example/build'),
filename: 'app.js',
publicPath: '/build/'
publicPath: '../build/'
},
plugins: [
new ExtractTextPlugin('app.css', { allChunks: true }),
Expand Down Expand Up @@ -49,7 +49,7 @@ module.exports = {
if_return: true,
join_vars: true,
cascade: true,
drop_console: true
drop_console: false
},
output: {
comments: false
Expand Down

0 comments on commit bebe3c4

Please sign in to comment.