App.vue 623 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div id="app">
  3. <Nav />
  4. <div class="content">
  5. <router-view />
  6. </div>
  7. </div>
  8. </template>
  9. <script setup lang="ts">
  10. import Nav from '@/components/Nav.vue';
  11. </script>
  12. <style scoped lang="scss">
  13. #app {
  14. display: flex;
  15. flex-direction: column;
  16. width: 100vw;
  17. height: 100vh;
  18. }
  19. .content {
  20. flex: 1;
  21. overflow-y: auto;
  22. overflow-x: hidden;
  23. }
  24. @font-face {
  25. font-family: 'YouSheBiaoTiYuan';
  26. src: url('@/assets/fonts/YouSheBiaoTiYuan.otf');
  27. }
  28. @font-face {
  29. font-family: 'DINAlternate';
  30. src: url('@/assets/fonts/DINAlternate-Bold.ttf');
  31. }
  32. </style>