NEXT craftinamerica.org. Base setup for headless wordpress https://www.craftinamerica.org
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.

navigation.vue 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // Replace with calls to menu system
  2. <template lang="pug">
  3. nav.main
  4. router-link(to="/")
  5. h1.t-serif.t-up
  6. img(src="../../star.svg")
  7. span &nbsp;logotype
  8. label(for="toggle-mobile-menu" aria-label="Menu") &#9776;
  9. input(id="toggle-mobile-menu" type="checkbox").hide
  10. ul
  11. li
  12. router-link(:to="`/`")
  13. h5 home
  14. li
  15. router-link(:to="`/episodes`")
  16. h5 pbs series
  17. li
  18. router-link(:to="`/artists`")
  19. h5 artists
  20. li
  21. router-link(:to="`/exhibitions`")
  22. h5 exhibitions
  23. li
  24. router-link(:to="`/events`")
  25. h5 events
  26. li
  27. router-link(:to="`/center`")
  28. h5 center
  29. li
  30. router-link(:to="`/education`")
  31. h5 education
  32. li
  33. router-link(:to="`/posts`")
  34. h5 news
  35. li
  36. router-link(:to="`/support`")
  37. h5 support
  38. li
  39. router-link(:to="`/search`")
  40. h5 search
  41. </template>
  42. <style lang="postcss">
  43. @import '../../sss/variables.sss'
  44. @import '../../sss/theme.sss'
  45. nav.main
  46. position: sticky
  47. top: 0
  48. background-color: lightblue
  49. word-wrap: break-word
  50. z-index: 10000
  51. h1
  52. font-size: 1.5em
  53. color: $cia_red
  54. a > h1
  55. margin: 0
  56. img
  57. width: 25px
  58. height: 25px
  59. padding: 0
  60. label
  61. position: absolute
  62. right: 3vw
  63. top: 10px
  64. input
  65. &.hide
  66. display: none
  67. cursor: pointer
  68. &:checked + ul
  69. display: block
  70. clear: both
  71. position: fixed
  72. ul
  73. width: 100%
  74. background-color: rgba(0,255,255,0.5)
  75. display: none
  76. li
  77. h5
  78. font-size: 1.0em
  79. color: $cia_black
  80. </style>