1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <!--
- * @Author: NMTuan
- * @Email: NMTuan@qq.com
- * @Date: 2024-02-18 11:35:10
- * @LastEditTime: 2024-02-20 16:07:01
- * @LastEditors: NMTuan
- * @Description:
- * @FilePath: \timeNow\app.vue
- -->
- <template>
- <div class="w-full h-screen overflow-hidden flex flex-col items-center justify-between">
- <div></div>
- <div class="bg-white/5 w-full flex flex-col items-center justify-center py-[4vw]">
- <div class="select-none">
- <ClockWeek></ClockWeek>
- <ClockBoard></ClockBoard>
- <ClockDate></ClockDate>
- </div>
- </div>
- <div class="w-full px-[4px]">
- <div class="px-[4px]">
- <TimeLine></TimeLine>
- </div>
- <div class="my-[4px]">
- <DayLine></DayLine>
- <MonthLine></MonthLine>
- </div>
- </div>
- </div>
- </template>
- <script setup>
- const dateStore = useDateStore()
- let dt
- onMounted(() => {
- dateStore.getNow()
- dt = setInterval(() => {
- dateStore.getNow()
- }, 97)
- })
- onBeforeUnmount(() => {
- clearInterval(dt)
- })
- </script>
- <style lang="scss">
- html,
- body,
- #__nuxt {
- background-color: #000;
- }
- @font-face {
- font-family: 'DigitalDismay';
- src: url('/fonts/DigitalDismay.otf') format('opentype');
- }
- .font {
- &-digital-dismay {
- font-family: 'DigitalDismay';
- }
- }
- </style>
|