Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
ES6 Tutorial
## ES6 Tutorial

Start the tutorial [here](http://ccoenraets.github.io/es6-tutorial).
160 changes: 160 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
body {
font-family: 'Roboto', 'Sans Serif';
font-size: 16px;
padding: 0;
margin: 0;
}

header {
background-color: #03A9F4;
padding: 14px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

h1, h2, h3 {
font-weight: 300;
}

header > h1 {
font-weight: 300;
font-size: 24px;
margin: 0;
color: #FFFFFF;
}

h2 {
font-size: 22px;
margin: 20px 0 0 0;
}

h2 > .currency {
color: #0288D1;
}

h3 {
margin: 10px 0 28px 0;
}

h3 > span {
color: #0288D1;
}

.principal {
color: #0288D1;
}

.interest {
color: #EF6C00;
}

input[type=text] {
-webkit-appearance: none;
width: 150px;
height: 24px;
padding: 3px 8px;
font-size: 14px;
line-height: 1.42857143;
color: #555;
border: 1px solid #ccc;
border-radius: 2px;
-webkit-box-shadow: none;
box-shadow: none;
}

table {
border-collapse: collapse;
font-weight: 300;
font-size: 12px;
}

th {
text-align: right;
font-weight: 400;
}

td {
text-align: right;
padding: 0 .5rem;
}

th,
td {
border: solid 1px #EEEEEE !important;
padding: 1px 4px;
}

label {
display: inline-block;
width: 80px;
text-align: right;
margin-right: 4px;
}

.content {
padding: 20px;
}

.bar {
display: inline-block;
border: none;
height: 8px;
}

.bar.principal {
background-color: #0288D1;
margin-right:1px;
}

.bar.interest {
background-color: #EF6C00;
margin-left:1px;
}

.stretch {
width: 100%;
padding-left:0;
padding-right:0;
}

.flex {
display: -webkit-flex;
display: flex;
}

.currency::before {
content:"$";
}

.left {
text-align: left;
}

.form > div {
margin: 6px 0;
}

button {
text-transform: none;
-webkit-appearance: none;
cursor: pointer;
padding: 12px 18px;
border-radius: 2px;
background: #FCFCFC;
font-size: 16px;
border: solid 1px #ddd;
color: #444;
}

button:hover {
background: #F4F4F4;
border: solid 1px #ccc;
}

button:active {
background: #FEFEFE;
border: solid 1px #ddd;
}

button:focus {
outline:0;
}
21 changes: 14 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,34 @@
<html>
<head>
<meta charset="utf-8">
<link href="styles.css" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,700' rel='stylesheet' type='text/css'>
<link href="css/styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<header>
<h1>Mortgage Calculator</h1>
</header>
<div class="content">
<div class="form">
<div>
<label for="principal">Principal:</label>
<label>Principal:</label>
<input type="text" id="principal" value="200000"/>
</div>
<div>
<label for="years">Years:</label>
<label>Years:</label>
<input type="text" id="years" value="30"/>
</div>
<div>
<label for="rate">Rate:</label>
<input type="text" id="rate" value="5.0">
<label htmlFor="rate">Rate:</label>
<input type="text" id="rate" value="5.0"/>
</div>
<div>
<label htmlFor="calcBtn"></label>
<button id="calcBtn">Calculate</button>
</div>
<button id="calcBtn">Calculate</button>
</div>
<h2>Monthly Payment: <span id="monthlyPayment" class="currency"></span></h2>
</div>
<script src="calc.js"></script>
<script src="js/main.js"></script>
</body>
</html>
File renamed without changes.
16 changes: 0 additions & 16 deletions package.json

This file was deleted.

120 changes: 0 additions & 120 deletions styles.css

This file was deleted.