font.vue 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <script lang="ts" setup>
  2. import { isDark } from '~/composables/dark'
  3. </script>
  4. <template>
  5. <div v-if="!isDark" class="demo-term-box">
  6. <img src="/images/typography/term-pingfang.png" alt="" />
  7. <img src="/images/typography/term-hiragino.png" alt="" />
  8. <img src="/images/typography/term-microsoft.png" alt="" />
  9. <img src="/images/typography/term-helvetica.png" alt="" />
  10. <img src="/images/typography/term-arial.png" alt="" />
  11. </div>
  12. <div v-else class="demo-term-box">
  13. <img src="/images/typography/term-pingfang-dark.png" alt="" />
  14. <img src="/images/typography/term-hiragino-dark.png" alt="" />
  15. <img src="/images/typography/term-microsoft-dark.png" alt="" />
  16. <img src="/images/typography/term-helvetica-dark.png" alt="" />
  17. <img src="/images/typography/term-arial-dark.png" alt="" />
  18. </div>
  19. </template>
  20. <style scoped>
  21. img {
  22. width: 220px;
  23. height: 174px;
  24. margin: 0 24px 24px 0;
  25. }
  26. img:nth-of-type(3) {
  27. margin-right: 0;
  28. }
  29. </style>