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.

93 lines
2.1 KiB

  1. <template>
  2. <header>
  3. <div class="header__col">
  4. <Logo />
  5. <div v-if="!selectedOrig.iata" class="logo-blurb">
  6. from one of <strong>{{ airportsOrig.length }}</strong>
  7. <span style="color: white;">local</span> airports
  8. </div>
  9. <div
  10. v-if="
  11. selectedOrig.iata && !selectedDest.iata && airports_dest.length > 1
  12. "
  13. class="logo-blurb"
  14. >
  15. to one of <strong>{{ airportsDest.length }}</strong>
  16. {{ getCompliment }} destinations
  17. </div>
  18. </div>
  19. <div class="header__col">
  20. <div v-show="!isPickerVisible">
  21. <button class="btn btn--primary" @click="showPicker">
  22. tap the map or search 🔎
  23. </button>
  24. </div>
  25. <div v-show="isPickerVisible">
  26. <button class="btn btn--primary" @click="showPicker">
  27. hide search <svg
  28. xmlns="http://www.w3.org/2000/svg"
  29. class="icon icon-tabler icon-tabler-arrow-bar-to-up"
  30. width="24"
  31. height="24"
  32. viewBox="0 0 24 24"
  33. stroke-width="3"
  34. stroke="#ffffff"
  35. fill="none"
  36. stroke-linecap="round"
  37. stroke-linejoin="round"
  38. >
  39. <path stroke="none" d="M0 0h24v24H0z" fill="none" />
  40. <line x1="12" y1="10" x2="12" y2="20" />
  41. <line x1="12" y1="10" x2="16" y2="14" />
  42. <line x1="12" y1="10" x2="8" y2="14" />
  43. <line x1="4" y1="4" x2="20" y2="4" />
  44. </svg>
  45. </button>
  46. </div>
  47. </div>
  48. <div class="header__col" />
  49. </header>
  50. </template>
  51. <script>
  52. export default {
  53. props: {
  54. selectedOrig: {
  55. type: [Object],
  56. default () {
  57. return {}
  58. }
  59. },
  60. selectedDest: {
  61. type: [Object],
  62. default () {
  63. return {}
  64. }
  65. },
  66. airportsOrig: {
  67. type: [Array],
  68. default () {
  69. return []
  70. }
  71. },
  72. airportsDest: {
  73. type: [Array],
  74. default () {
  75. return []
  76. }
  77. },
  78. isPickerVisible: {
  79. type: [Boolean],
  80. default () {
  81. return null
  82. }
  83. }
  84. }
  85. }
  86. </script>
  87. <style>
  88. .asdf {
  89. color: red;
  90. }
  91. </style>