index.pug 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. div(id="app")
  2. // Единый header для всего приложения
  3. header(class="header")
  4. nav(class="header__nav")
  5. div(class="header__nav-block")
  6. div(class="header__brand")
  7. img(
  8. v-if="currentDomainSettings && currentDomainSettings.logo"
  9. :src="currentDomainSettings.logo"
  10. :alt="currentDomainSettings.companyName || 'Браер-Колор'"
  11. class="header__logo"
  12. )
  13. span(v-else class="header__nav-name") {{ companyName }}
  14. div(class="header__nav-menu")
  15. div(class="header__menu-item")
  16. router-link(to="/catalog" class="header__menu-link") Каталог
  17. div(class="header__menu-item")
  18. router-link(to="/blog" class="header__menu-link") Блог
  19. div(class="header__menu-item")
  20. router-link(to="/contacts" class="header__menu-link") Контакты
  21. div(class="header__menu-item")
  22. button(
  23. @click="toggleTheme"
  24. class="header__theme-toggle"
  25. ) {{ theme === 'light' ? '🌙' : '☀️' }}
  26. main(class="main")
  27. router-view(v-slot='{ Component }')
  28. transition(name='page-slide' mode='out-in')
  29. component(:is='Component')
  30. footer(class="footer")
  31. div(class="footer__content")
  32. div(class="footer__sections")
  33. div(class="footer__section")
  34. h3(class="footer__section-title") {{ currentDomainSettings?.companyName || companyName }}
  35. p(class="footer__section-text") {{ currentDomainSettings?.description || 'Интернет-магазин лакокрасочной продукции' }}
  36. div(class="footer__section")
  37. h3(class="footer__section-title") Контакты
  38. p(class="footer__section-text") {{ currentDomainSettings?.email || 'info@braer-color.ru' }}
  39. p(class="footer__section-text") {{ currentDomainSettings?.phone || '+7 (999) 999-99-99' }}
  40. div(class="footer__section")
  41. h3(class="footer__section-title") Быстрые ссылки
  42. div(class="footer__links")
  43. router-link(to="/catalog" class="footer__link") Каталог
  44. router-link(to="/blog" class="footer__link") Блог
  45. router-link(to="/about" class="footer__link") О компании