Skip to content

Commit 8bfc681

Browse files
committed
feat(ui): refine layout, add disclaimer, update colors
- Adjusted body layout for centered alignment and full-viewport height. - Introduced a disclaimer bar with links to GitHub for additional information. - Updated background and canvas colors to improve UI consistency. - Fine-tuned typography and spacing for better readability.
1 parent df99033 commit 8bfc681

File tree

1 file changed

+31
-10
lines changed

1 file changed

+31
-10
lines changed

index.html

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,18 @@
2525
<style>
2626
:root {
2727
--bg: #1e1e2e;
28+
--canvas: #0f0f17;
2829
}
2930

30-
html,
3131
body {
3232
width: 100%;
33-
height: 100%;
33+
height: 100vh;
3434
margin: 0;
3535
padding: 0;
36-
}
37-
38-
body {
3936
display: flex;
40-
align-items: stretch;
41-
justify-content: stretch;
42-
background: radial-gradient(circle at 20% 0%, #313244 0%, var(--bg) 45%, #181825 100%);
37+
align-items: center;
38+
justify-content: center;
39+
background-color: var(--canvas);
4340
overflow: hidden;
4441
}
4542

@@ -53,18 +50,42 @@
5350
justify-content: center;
5451
align-items: center;
5552
align-content: center;
56-
background-color: #282a36;
53+
background-color: var(--bg);
5754
}
5855

5956
pre {
6057
margin: 0;
6158
font-family: "JuliaMono", monospace;
6259
font-size: 14px;
63-
line-height: 1.4;
60+
line-height: 1.1;
61+
}
62+
#disclaimer {
63+
position: absolute;
64+
top: 0;
65+
width: 100%;
66+
background: rgba(15, 15, 23, 0.8);
67+
color: #bd93f9;
68+
text-align: center;
69+
font-family: system-ui, -apple-system, sans-serif;
70+
font-size: 13px;
71+
padding: 6px 0;
72+
z-index: 100;
73+
}
74+
#disclaimer a {
75+
color: #4da6ff;
76+
text-decoration: none;
77+
}
78+
#disclaimer a:hover {
79+
text-decoration: underline;
6480
}
6581
</style>
6682
</head>
6783
<body>
84+
<div id="disclaimer">
85+
Download full version of CBM from
86+
<a href="https://github.com/ushkinaz/cbn-tui/?tab=readme-ov-file#-install" target="_blank"
87+
rel="noopener noreferrer">GitHub</a>. Web version has severe limitations, for instance mouse support apps is very limited.
88+
</div>
6889
<div id="grid"></div>
6990
</body>
7091
</html>

0 commit comments

Comments
 (0)