A Pen by Sarah Drasner on CodePen.
Created
November 18, 2017 11:09
-
-
Save HristoKolev/d9b06c24646e43a1dab363d208025f1a to your computer and use it in GitHub Desktop.
Directives Exercise Start
This file contains hidden or 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
<div id="app"> | |
<div class="row"> | |
<span>1</span> | |
<span>+</span> | |
<span>1</span> | |
<span>=</span> | |
<span>2</span> | |
</div> | |
<div class="row second"> | |
<p>My favorite kind of taco is Al Pastor</p> | |
</div> | |
</div> |
This file contains hidden or 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
new Vue({ | |
el: '#app', | |
data() { | |
return { | |
num1: 0, | |
num2: 0, | |
name: '' | |
} | |
} | |
}) |
This file contains hidden or 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
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.15.3/axios.min.js"></script> |
This file contains hidden or 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
$primary: #5968d7; | |
.row { | |
margin: 50px; | |
display: flex; | |
justify-content: center; | |
font-family: 'Work Sans', sans-serif; | |
} | |
input, span { | |
padding: 10px; | |
font-size: 30px; | |
font-family: 'Work Sans', sans-serif; | |
} | |
input { | |
width: 50px; | |
} | |
span { | |
width: 20px; | |
} | |
.second { | |
font-size: 18px; | |
p { | |
margin-left: 20px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment