diff --git a/.gitignore b/.gitignore index a234678..9c8d144 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ bower_components .sass-cache +node_modules diff --git a/index.html b/index.html index 9c64e0b..87cf69e 100644 --- a/index.html +++ b/index.html @@ -27,7 +27,7 @@

This will be displayed if the seen data attribute of the Vue app evaluates to true

- +
    @@ -38,7 +38,7 @@

{{message}}

- +

{{message}}

@@ -49,15 +49,6 @@
-
-
- - -
- -
placeholder
@@ -67,9 +58,29 @@
  • {{user.name}}
  • +
    +
    + + + + + +
    +
    + + + diff --git a/js/app.js b/js/app.js index 1cfd169..73fe8db 100644 --- a/js/app.js +++ b/js/app.js @@ -1,3 +1,4 @@ +Vue.use(VueInputmask) var app = new Vue( { @@ -127,3 +128,21 @@ var app8 = new Vue( } ); + + +let app9 = new Vue({ + el: "#app9", + data: { + person:{ + first: null, + last: null, + tel: null, + email: null, + } + }, + methods: { + onSubmit(){ + console.log(JSON.stringify(this.person)); + } + } +}); diff --git a/scss/app.scss b/scss/app.scss index 363ccdf..eaedfd9 100644 --- a/scss/app.scss +++ b/scss/app.scss @@ -33,8 +33,31 @@ input { display: block; margin-bottom: .67em; padding-left: .67em; + padding: 5px; + font-size: 1rem; } select { margin-bottom: .67em; } + +.btn { + padding: 10px 15px 10px 15px; + background-color: $primary-color; + border-radius: 3px; + color: $white; + border: none; + + &:hover { + + background-color: lighten($primary-color, 20%); + transition: all 300ms ease-in-out; + + &:active{ + transition: transform 300ms ease; + transform: scale(1.1); + } + + } + +}