From a3da672ed636ccd55fdb13a0c05f55a27304d74e Mon Sep 17 00:00:00 2001 From: Alexandro Uc Santos Date: Sat, 3 Feb 2024 17:17:15 -0600 Subject: [PATCH] faqs in admin --- src/components/BarChartStatistics.vue | 29 ++--- src/components/DoughnutChartStatistics.vue | 27 +---- src/components/Sidebar.vue | 2 +- src/views/HomeView.vue | 133 +++++++++------------ 4 files changed, 74 insertions(+), 117 deletions(-) diff --git a/src/components/BarChartStatistics.vue b/src/components/BarChartStatistics.vue index 7058c86..2e587a4 100644 --- a/src/components/BarChartStatistics.vue +++ b/src/components/BarChartStatistics.vue @@ -53,6 +53,7 @@ chartData.value = { labels: dataMap.value.map((e) => (e.label.length > 12) ? e.label.substring(0, 11) : e.label), + position: 'bottom', datasets: [{ label: props.label, data: dataMap.value.map((e) => e.data), @@ -67,33 +68,19 @@ const chartOptions = { - responsive: true, - + responsive: true, } \ No newline at end of file diff --git a/src/components/DoughnutChartStatistics.vue b/src/components/DoughnutChartStatistics.vue index 85fd2fd..cd9c259 100644 --- a/src/components/DoughnutChartStatistics.vue +++ b/src/components/DoughnutChartStatistics.vue @@ -26,7 +26,6 @@ props.data.forEach(item => { const index = dataMap.value.findIndex((e) => e.label === item); - console.log(index); if(index === -1) { if(props.dataModel) { @@ -48,7 +47,6 @@ } }); - console.log(dataMap.value) chartData.value = { labels: dataMap.value.map((e) => e.label), datasets: [{ @@ -66,27 +64,14 @@ \ No newline at end of file diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 450804b..efb7448 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -118,7 +118,7 @@
Aviso de privaciadad Términos y condiciones - FAQS + Faqs
@@ -68,44 +79,24 @@ width: 100%; display: flex; flex-direction: row; - gap: 1rem; - flex-wrap: nowrap; - } - - .total-loads { - min-width: 300px; - } - - .process-load { - margin-bottom: 1rem; - font-size: 1.2rem; - } - - .process-load span { - margin-left: 1rem; - margin-right: 1rem; - font-size: 1.4rem; - font-weight: 900; - margin-top: 0px; + justify-content: space-between; + flex-wrap: wrap; + /* gap: 1rem; */ } .card-dashboard { - width: 33%; + width: 32%; + /* margin: 8px 8px; */ min-height: 300px; display: flex; flex-direction: column; } - .card-loads { + .card-chart { + width: 100%; + /* max-width: 333px; */ display: flex; - flex-direction: row; - justify-content: space-around; - } - - .small { - font-size: 1rem; - color: grey; - font-weight: 300; + flex-direction: column; } .main-info{ @@ -116,19 +107,24 @@ justify-content: center; margin: auto 0; padding: 0px; - font-size: 5rem; + font-size: 7rem; font-weight: 900; } + .indicator-text { + font-size: 3rem; + } .container-dashboard h3 { font-size: 1.2rem; - font-weight: 400; + font-weight: 700; + margin-bottom: 1.5rem; color: #323232; } - ol li { - font-size: 1.3rem; - font-weight: 500; + @media (max-width: 1300px) { + .card-dashboard { + width: 48%; + } } @media (max-width: 768px) { @@ -136,22 +132,11 @@ .container-dashboard { width: 100%; flex-direction: column; + justify-content: center; + flex-wrap: nowrap; } .card-dashboard { width: 100%; } - - .process-load { - margin-bottom: 0.5rem; - font-size: 1rem; - } - - .process-load span { - margin-left: 1rem; - margin-right: 1rem; - font-size: 1.2rem; - font-weight: 700; - margin-top: 0px; - } }