-
-
- Lorem ipsum dolor sit amet...
-
-
-
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium...
-
-
-
- At vero eos et accusamus et iusto odio dignissimos...
-
-
-
- Temporibus autem quibusdam et aut officiis...
-
-
+
+ @for (item of orders; track $index) {
+
+
{{ '#' + item.order_id }}
+
{{ item.user_id }}
+
{{ item.items[0].product_id }}
+
{{ item.items[0].quantity }}
+
{{ item.status }}
+
+
+ }
diff --git a/src/app/pages/dashboard/dash-content/dash-content.component.scss b/src/app/pages/dashboard/dash-content/dash-content.component.scss
index 681e9fa..a675190 100644
--- a/src/app/pages/dashboard/dash-content/dash-content.component.scss
+++ b/src/app/pages/dashboard/dash-content/dash-content.component.scss
@@ -20,6 +20,96 @@
justify-content: space-between;
}
+
+.widgets {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
+ gap: 20px;
+}
+
+.widget {
+ padding: 15px;
+ border-radius: 8px;
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
+ transition: transform 0.3s ease;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ color: #333;
+}
+
+.widget-content {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ text-align: center;
+}
+
+.widget-icon {
+ font-size: 3.5rem;
+ margin-right: 10px;
+ vertical-align: middle;
+}
+
+.widget-info {
+ text-align: left;
+ padding: 16px;
+}
+
+.widget-title {
+ font-size: 1rem;
+ margin: 0;
+}
+
+.widget-value {
+ font-size: 1.5rem;
+ font-weight: bold;
+ margin-top: 5px;
+ margin-bottom: 5px;
+}
+
+.chart-container {
+ padding: 20px;
+ background-color: #f0f0f0;
+ border-radius: 10px;
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
+}
+
+/* Estilos específicos para cada widget */
+.widget.total-vendas {
+ background-color: #fdebd0;
+}
+
+.widget.total-vendas .widget-icon {
+ color: #f5b041;
+}
+
+.widget.numero-pedidos {
+ background-color: #dff0d8;
+}
+
+.widget.numero-pedidos .widget-icon {
+ color: #5cb85c;
+}
+
+.widget.produtos-estoque {
+ background-color: #d9edf7;
+}
+
+.widget.produtos-estoque .widget-icon {
+ color: #06b0e4;
+}
+
+.widget.clientes-registrados {
+ background-color: #fcf8e3;
+}
+
+.widget.clientes-registrados .widget-icon {
+ color: #f0ad4e;
+}
+
.container {
grid-template-areas:
'order mini-cards';
diff --git a/src/app/pages/dashboard/dash-content/dash-content.component.ts b/src/app/pages/dashboard/dash-content/dash-content.component.ts
index 706b2d1..f15150c 100644
--- a/src/app/pages/dashboard/dash-content/dash-content.component.ts
+++ b/src/app/pages/dashboard/dash-content/dash-content.component.ts
@@ -27,6 +27,12 @@ export class DashContentComponent {
title: "Simple Card 3",
info: "Lorem ipsum dolor sit amet 3333..."
}
+ ];
+
+ orders = [
+ { "order_id": 1, "user_id": "Emily", "items": [{ "product_id": "Produto 01", "quantity": 2 }, { "product_id": 3, "quantity": 1 }], "total_price": 849.97, "status": "Shipped" },
+ { "order_id": 2, "user_id": "João", "items": [{ "product_id": "Produto 02", "quantity": 1 }, { "product_id": 7, "quantity": 1 }], "total_price": 1149.98, "status": "Delivered" },
+ { "order_id": 3, "user_id": "Djoor", "items": [{ "product_id": "Produto 04", "quantity": 1 }, { "product_id": 8, "quantity": 1 }], "total_price": 599.98, "status": "Processing" }
]
}
diff --git a/src/app/pages/products/components/product-list/product-list.component.html b/src/app/pages/products/components/product-list/product-list.component.html
index 96180e8..33357b9 100644
--- a/src/app/pages/products/components/product-list/product-list.component.html
+++ b/src/app/pages/products/components/product-list/product-list.component.html
@@ -4,26 +4,36 @@
Products
-
-
-
Itens por página:
-
-
+
@for (product of products; track product.id) {
}
-
-
Itens por página:
-
-
+
\ No newline at end of file