Files
vuefilemanager/resources/js/components/Admin/WidgetTotals.vue
2021-10-26 06:57:40 +02:00

84 lines
1.8 KiB
Vue

<template>
<WidgetWrapper :icon="icon" :title="title">
<div class="widget-value">
<span>{{ value }}</span>
</div>
<router-link :to="{name: linkRoute}" class="footer-link">
<span class="content">{{ linkName }}</span>
<chevron-right-icon size="16" class="text-theme dark-text-theme"/>
</router-link>
</WidgetWrapper>
</template>
<script>
import WidgetWrapper from '/resources/js/components/Admin/WidgetWrapper'
import { UsersIcon, StarIcon, HardDriveIcon, ChevronRightIcon } from 'vue-feather-icons'
export default {
name: 'WidgetTotals',
props: ['icon', 'title', 'value', 'linkRoute', 'linkName'],
components: {
ChevronRightIcon,
WidgetWrapper,
HardDriveIcon,
StarIcon,
UsersIcon
}
}
</script>
<style lang="scss" scoped>
@import '/resources/sass/vuefilemanager/_variables';
@import '/resources/sass/vuefilemanager/_mixins';
.widget-value {
margin-top: 10px;
margin-bottom: 30px;
span {
@include font-size(38);
font-weight: 800;
}
}
.footer-link {
display: flex;
align-items: center;
polyline {
color: inherit;
}
.content {
@include font-size(12);
font-weight: 700;
margin-right: 5px;
}
}
@media only screen and (max-width: 1190px) {
.widget-value {
span {
@include font-size(30);
}
}
}
.dark {
.widget-value {
span {
color: $dark_mode_text_primary;
}
}
.footer-link {
.content {
color: $dark_mode_text_primary;
}
}
}
</style>