NEXT craftinamerica.org. Base setup for headless wordpress https://www.craftinamerica.org
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

navigation.vue 1.7KB

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