You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
952 B

  1. <template>
  2. <div class="flyout flyout--book">
  3. <NuxtLink
  4. :to="'/flights/' + selectedOrig.iata + '/' + selectedDest.iata"
  5. :class="['btn btn--primary btn--large',{'btn--empty': !selectedOrig.iata || !selectedDest.iata}]"
  6. >
  7. <span :class="['btn__content']">
  8. see fights from <strong>{{ selectedOrig.municipality }}</strong> to <strong>{{ selectedDest.municipality }}</strong>
  9. </span>
  10. </NuxtLink>
  11. </div>
  12. </template>
  13. <script>
  14. export default {
  15. props: {
  16. selectedOrig: {
  17. type: [Object],
  18. default () {
  19. return {}
  20. }
  21. },
  22. selectedDest: {
  23. type: [Object],
  24. default () {
  25. return {}
  26. }
  27. }
  28. }
  29. }
  30. </script>
  31. <style>
  32. .flyout {
  33. background: white;
  34. border-radius: 3rem 3rem 0 0;
  35. padding: 3rem;
  36. pointer-events: all;
  37. }
  38. .btn__content {
  39. transition: width 0s 5s;
  40. }
  41. .btn.btn--empty {
  42. background: lightgray;
  43. }
  44. .btn.btn--large {
  45. font-size: 2rem;
  46. }
  47. </style>