gym-nuxt3/pages/index.vue

30 lines
713 B
Vue

<script setup lang="ts">
definePageMeta({
title: 'Dashboard',
name: 'Dashboard',
})
const fromDate = ref(new Date(new Date().setDate(new Date().getDate() - 1)).toISOString().substr(0, 10))
const toDate = ref(new Date().toISOString().substr(0, 10))
</script>
<template>
<div class="w-full flex justify-end">
<input
v-model="fromDate"
type="date"
class="text-black py-2 px-2 mt-5 rounded-md mb-4 w-2/4 mr-4"
>
<input
v-model="toDate"
type="date"
class="text-black py-2 px-2 mt-5 rounded-md mb-4 w-2/4"
>
</div>
<ExerciseChart :from-date="fromDate" :to-date="toDate" muscle="Legs" exercise="Barbell Back Squat" />
</template>
<style scoped>
</style>