Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <template>
  2.   <div class="paginaPrincipal">
  3.     <h3>Uber do CDI Luz do Vegetal</h3>
  4.  
  5.     <h5>Você quer carona ou tem vaga?</h5>
  6.     <div class="container">
  7.       <div class="row">
  8.         <div class="col-md-offset-3 col-md-3">
  9.           <button v-on:click="irParaQueroCarona" type="button" class="btn btn-primary">Quero Carona</button>
  10.         </div>
  11.         <div class=" col-md-3">
  12.           <button v-on:click="irParaQueroCarona" type="button" class="btn btn-primary">Tenho vaga</button>
  13.         </div>
  14.       </div>
  15.     </div>
  16.   </div>
  17. </template>
  18.  
  19. <script>
  20. // eslint-disable-next-line no-unused-vars
  21. import {router} from '../main.js'
  22. export default {
  23.   name: 'hello',
  24.   data () {
  25.     return {
  26.       msg: 'Uber do CDI'
  27.     }
  28.   },
  29.   methods: {
  30.     irParaQueroCarona () {
  31.       this.$router.push({ path: '/queroCarona' })
  32.     }
  33.   }
  34. }
  35. </script>
  36.  
  37. <!-- Add "scoped" attribute to limit CSS to this component only -->
  38. <style scoped>
  39. h3,h5 {
  40.   font-weight: normal;
  41. }
  42.  
  43. ul {
  44.   list-style-type: none;
  45.   padding: 0;
  46. }
  47.  
  48. li {
  49.   display: inline-block;
  50.   margin: 0 10px;
  51. }
  52.  
  53. a {
  54.   color: #42b983;
  55. }
  56.   button
  57.   {
  58.     margin: 7px 0 7px 0;
  59.   }
  60. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement