-
Notifications
You must be signed in to change notification settings - Fork 0
/
1(A) create a responsive website which shows the commerce college admin dash board
137 lines (128 loc) · 3.52 KB
/
1(A) create a responsive website which shows the commerce college admin dash board
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
Wad 1-A
index.html :
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dashboard</title>
<link rel="stylesheet" href="style.css" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<div class="col-md-8">
<h1 class="mt-3">Dashboard</h1>
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-body" id="torders">
<h5 class="card-title">Total Orders</h5>
<p class="card-text">100</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-body" id="tpos">
<h5 class="card-title">Total Products</h5>
<p class="card-text">50</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-body" id="tcus">
<h5 class="card-title">Total Customers</h5>
<p class="card-text">200</p>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<br />
<h2 class="mt-3">Order History</h2>
<div class="order-history">
<table class="table table-striped">
<thead>
<tr>
<th>Order ID</th>
<th>Customer</th>
<th>Color</th>
<th>Count</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>John Doe</td>
<td>Red</td>
<td>1</td>
<td>₹1000</td>
</tr>
<tr>
<td>2</td>
<td>Jane Smith</td>
<td>Blue</td>
<td>2</td>
<td>₹1500</td>
</tr>
<tr>
<td>3</td>
<td>Michael Johnson</td>
<td>Green</td>
<td>1</td>
<td>₹8000</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-6">
<canvas id="myPieChart"></canvas>
</div>
</div>
</div>
</body>
</html>
style.css :
body {
font-family: Arial, sans-serif;
}
.navbar {
background-color: #343a40;
}
.card {
margin-bottom: 20px;
}
.order-history {
margin-top: 20px;
}
.order-history table {
width: 100%;
}
#torders{
background-color: rgba(255, 255, 0, 0.371);
}
#tpos{
background-color: rgba(0, 255, 13, 0.371);
}
#tcus{
background-color: rgba(255, 0, 0, 0.371);
}
.box {
border: 1px solid #ccc;
padding: 20px;
margin-bottom: 20px;
background-color: #f9f9f9;
}
.connector {
position: absolute;
border-left: 1px solid #ccc;
height: 100%;
left: 50%; }