Skip to content

Commit 90cc582

Browse files
committed
improved styling
1 parent 3e418c1 commit 90cc582

File tree

4 files changed

+61
-9
lines changed

4 files changed

+61
-9
lines changed

html/browser-message.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<div class="container-fluid">
2+
<style>
3+
/* Dark mode styling for browser message */
4+
.dark .alert.alert-info {
5+
background-color: #1e3a3a; /* Darker teal background */
6+
color: #e2e2e2; /* Lighter text */
7+
border: none;
8+
}
9+
.dark .border-info {
10+
border-color: #17a2b8 !important;
11+
}
12+
.dark .link-primary {
13+
color: #5c9eff !important;
14+
}
15+
</style>
216
<h3 class="mb-3">Phoenix AI Control Status</h3>
317
<div class="alert alert-info border-start border-info border-4 mb-4">
418
<p class="fw-bold">Browser Version</p>

html/error-template.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
<div class="container-fluid">
2+
<style>
3+
/* Dark mode styling for error message */
4+
.dark .alert.alert-danger {
5+
background-color: #3a1e1e; /* Darker red background */
6+
color: #e2e2e2; /* Lighter text */
7+
border: none;
8+
}
9+
.dark .border-danger {
10+
border-color: #f44336 !important;
11+
}
12+
.dark code {
13+
color: #f89898; /* Lighter red for error code */
14+
background-color: rgba(0, 0, 0, 0.2);
15+
}
16+
.dark .link-primary {
17+
color: #5c9eff !important;
18+
}
19+
</style>
220
<h3 class="mb-3">Error Checking AI Control Status</h3>
321
<div class="alert alert-danger border-start border-danger border-4 mb-4">
422
<p class="mb-2">An error occurred while checking AI control configuration:</p>

html/status-template.html

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,35 @@
11
<div class="container-fluid">
2-
<h3 class="mb-3">Phoenix AI Control Status</h3>
2+
<style>
3+
.alert.alert-success {
4+
text-shadow: none;
5+
background-color: #dff0d8;
6+
border: none;
7+
}
8+
.dark .alert.alert-success {
9+
text-shadow: none;
10+
background-color: #1e3a1e; /* Darker background for better contrast */
11+
border: none;
12+
color: #e2e2e2; /* Lighter text for better contrast */
13+
}
14+
.dark .text-success {
15+
color: #4caf50 !important; /* Brighter green in dark mode */
16+
}
17+
.dark .border-success {
18+
border-color: #4caf50 !important; /* Match the text color */
19+
}
320

21+
</style>
422
{{#status.isEnabled}}
523
<div class="alert alert-success border-start border-success border-4 mb-4">
624
<p class="fs-5 mb-2"><strong>AI Status:</strong> <span class="text-success">✓ Enabled</span></p>
725
<p class="mb-0">{{status.message}}</p>
826
</div>
9-
{{/status.isEnabled}}
10-
11-
{{^status.isEnabled}}
27+
{{/status.isEnabled}} {{^status.isEnabled}}
1228
<div class="alert alert-danger border-start border-danger border-4 mb-4">
1329
<p class="fs-5 mb-2"><strong>AI Status:</strong> <span class="text-danger">✗ Disabled</span></p>
1430
<p class="mb-0">{{status.message}}</p>
1531
</div>
16-
{{/status.isEnabled}}
17-
18-
{{#showConfigDetails}}
32+
{{/status.isEnabled}} {{#showConfigDetails}}
1933
<div class="mb-4">
2034
<h4 class="mb-3">Configuration Details</h4>
2135
<table class="table table-bordered table-striped">
@@ -49,7 +63,13 @@ <h4 class="mb-3">Configuration Details</h4>
4963

5064
<div class="mt-4">
5165
<h4 class="mb-3">Need to Control AI in Your Educational Institution?</h4>
52-
<p>Visit <a href="https://docs.phcode.dev/docs/control-ai" target="_blank" class="link-primary">https://docs.phcode.dev/docs/control-ai</a> for documentation on how to:</p>
66+
<p>
67+
Visit
68+
<a href="https://docs.phcode.dev/docs/control-ai" target="_blank" class="link-primary"
69+
>https://docs.phcode.dev/docs/control-ai</a
70+
>
71+
for documentation on how to:
72+
</p>
5373
<ul class="list-group list-group-flush mb-3">
5474
<li class="list-group-item">Disable AI features by default</li>
5575
<li class="list-group-item">Allow specific users to access AI</li>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"html/error-template.html"
2121
],
2222
"nodeConfig": {
23-
"nodeIsRequired": true,
23+
"nodeIsRequired": false,
2424
"main": "node/index.js",
2525
"npmInstall": "node/"
2626
}

0 commit comments

Comments
 (0)