Skip to content

Commit 04c7210

Browse files
art: 🎨 color profile changed
1 parent 7d28cdc commit 04c7210

6 files changed

Lines changed: 22 additions & 14 deletions

File tree

src/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
app = Flask(__name__)
55

66
# Configure the SQLite database
7-
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///speedtest_results.db'
7+
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///dashboard.db'
88
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
99
app.config['SECRET_KEY'] = 'secret'
1010

src/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,3 @@ class SystemInfo(db.Model):
4747

4848
def __repr__(self):
4949
return f'<SystemInfo {self.username}, {self.cpu_percent}, {self.memory_percent}, {self.disk_usage}, {self.battery_percent}, {self.cpu_core}, {self.boot_time}, {self.network_sent}, {self.network_received}, {self.process_count}, {self.swap_memory}, {self.uptime}, {self.ipv4_connections}, {self.ipv6_connections}, {self.dashboard_memory_usage}>'
50-

src/static/css/style.css

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@
1212
--color-black: #000000; /* Black for text */
1313

1414
/* card colors */
15-
--color-username: #007bff; /* Bright blue for username */
15+
--color-username: #469fff; /* Bright blue for username */
1616
--color-boot: #28a745; /* Green for boot time */
17-
--color-cpu: #af13e3; /* Red for CPU */
18-
--color-ip: #03e77c; /* Bright blue for IP address */
19-
--color-cpu-usage: #ffc107; /* Yellow for CPU usage */
20-
--color-memory: #6f42c1; /* Purple for memory */
21-
--color-disk: #6711e9; /* Gray for disk */
22-
--color-uptime: #042b31; /* Cyan for uptime */
23-
--color-network: #20053d; /* Bright blue for network */
24-
--color-speedtest: #253003; /* Bright blue for speedtest */
17+
--color-cpu: #ac0fea; /* Red for CPU */
18+
--color-cpu-usage: #ca11eb; /* Yellow for CPU usage */
19+
--color-memory: #ffbf00; /* Purple for memory */
20+
--color-disk: #047507; /* Gray for disk */
21+
--color-uptime: #f44336; /* Cyan for uptime */
22+
--color-network: #08a2a8; /* Bright blue for network */
23+
--color-speedtest: #f44336; /* Bright blue for speedtest */
2524
--color-battery: #007bff; /* Bright blue for battery */
25+
--color-connection: #f44336; /* Red for connection */
26+
--color-bg-dashboard-memory: #28a745; /* Green for memory card */
2627

2728
/* shadow colors */
2829
--color-shadow: #f80000; /* Red shadow for username */
@@ -150,6 +151,14 @@ body {
150151
background-color: var(--color-boot); /* Green for boot time */
151152
}
152153

154+
.card.bg-connection {
155+
background-color: var(--color-connection); /* Red for connection */
156+
}
157+
158+
.card.bg-dashboard-memory {
159+
background-color: var(--color-bg-dashboard-memory); /* Green for memory card */
160+
}
161+
153162
.card.bg-cpu-usage {
154163
background-color: var(--color-cpu-usage); /* Yellow for CPU usage */
155164
}

src/templates/dasbhboard_comp/connection.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="col-md-6 col-lg-4 mb-4">
2-
<div class="card bg-ipv4">
2+
<div class="card bg-connection">
33
<div class="card-body">
44
<h5 class="card-title">IPV4 Connections <i class="fas fa-network-wired"></i></h5>
55
<p class="card-text fs-4">{{ system_info['ipv4_connections'] }}</p>

src/templates/dasbhboard_comp/dashboard_memory_usage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="col-md-6 col-lg-4 mb-4">
2-
<div class="card bg-username">
2+
<div class="card bg-dashboard-memory">
33
<div class="card-body">
44
<h5 class="card-title">Dashboard Memory Usages <i class="fas fa-memory"></i></h5>
55
<p class="card-text fs-4">{{ system_info['dashboard_memory_usage'] }}</p>

src/templates/dasbhboard_comp/uptime.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="col-md-6 col-lg-6 mb-4">
22
<div class="card bg-uptime" data-disk="{{ system_info['disk_usage'] }}" shadow-sm border-0 rounded-3>
3-
<div class="card-body">
3+
<div class="card-body bg-uptime">
44
<h5 class="card-title">System Uptime <i class="fas fa-clock"></i></h5>
55
<p class="card-text fs-4">{{ system_info['uptime'] }}</p>
66
<a href="{{ url_for('system_health') }}" class="btn btn-primary">View Details</a>

0 commit comments

Comments
 (0)