Permalink
Browse files

05 Using Sass, ES6 and Modules

  • Loading branch information...
alarner committed Jul 29, 2016
1 parent 4f54b5f commit 0533040128e71a926dc79acb153ef3b3ccec6119
Showing with 21 additions and 1 deletion.
  1. +5 −0 public/scripts/alert.js
  2. +7 −1 public/scripts/main.js
  3. +9 −0 public/styles/main.scss
@@ -0,0 +1,5 @@
function showMessage() {
alert('This is a new message');
}
module.exports = showMessage;
@@ -1 +1,7 @@
console.log('js working');
const showMessage = require('./alert');
console.log('js working');
const h1 = document.querySelector('h1');
h1.addEventListener('click', () => {
showMessage();
});
@@ -1,3 +1,12 @@
.blue {
background: green;
}
h1 {
color: #333;
font-family: 'Open Sans', sans-serif;
&:hover {
color: #999;
}
}

0 comments on commit 0533040

Please sign in to comment.