Skip to content

Commit e83f4e7

Browse files
committed
docs: Revise index.html content and improve playground styling for better user experience
1 parent c9d6e86 commit e83f4e7

5 files changed

Lines changed: 39 additions & 39 deletions

File tree

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
</nav>
2121
<div class="container">
2222

23-
<h1><span>Exprify</span> Math Expression Parser &amp; Evaluator</h1>
24-
<p>A powerful math expression parser and evaluator for JavaScript with runtime data-type checking, arbitrary-precision arithmetic, matrices, symbolic algebra, and more.</p>
23+
<h1><span>Exprify</span> - Math Expression + Simplify</h1>
24+
<p>Exprify is a JavaScript expression parser and evaluator. It is made for math applications, scientific computing, and complex workflows in the browser and Node.js. It supports basic arithmetic, variables, and defined functions. Exprify also covers advanced mathematical areas like unit conversion, matrix operations, complex number arithmetic, and symbolic manipulation.</p>
2525

2626
<h2 id="install">Installation</h2>
2727
<div class="grid">
@@ -140,7 +140,7 @@ <h3>State Serialization</h3>
140140

141141
</div>
142142
<div class="footer">
143-
Exprify - <a href="https://github.com/code-hemu/exprify">GitHub</a>
143+
<a href="https://github.com/code-hemu/exprify">Exprify - GitHub</a>
144144
</div>
145145
</body>
146146

docs/script/playground.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Exprify from '../dist/exprify.esm.js';
1+
import Exprify from '../../dist/exprify.esm.js';
22

33
const expr = new Exprify();
44
const output = document.getElementById('output');

docs/style/functions.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212

1313
nav {
14-
background: #1a1a2e;
14+
background: #666666;
1515
color: #fff;
1616
padding: 16px 40px;
1717
display: flex;
@@ -20,7 +20,7 @@
2020
}
2121

2222
nav a {
23-
color: #a0c4ff;
23+
color: #ffffff;
2424
text-decoration: none;
2525
}
2626

@@ -82,7 +82,7 @@
8282
border-radius: 16px;
8383
background: #fff;
8484
cursor: pointer;
85-
font-size: 13px;
85+
font-size: 15px;
8686
}
8787

8888
.filter-group button:hover {
@@ -106,7 +106,7 @@
106106
padding: 10px 12px;
107107
background: #16213e;
108108
color: #fff;
109-
font-size: 13px;
109+
font-size: 15px;
110110
cursor: pointer;
111111
user-select: none;
112112
position: sticky;
@@ -135,14 +135,14 @@
135135
}
136136

137137
td.cat {
138-
font-size: 12px;
138+
font-size: 15px;
139139
}
140140

141141
td.cat .tag {
142142
display: inline-block;
143143
padding: 2px 8px;
144144
border-radius: 10px;
145-
font-size: 11px;
145+
font-size: 15px;
146146
}
147147

148148
.tag-trig {
@@ -196,7 +196,7 @@
196196
}
197197

198198
td.desc {
199-
font-size: 14px;
199+
font-size: 15px;
200200
}
201201

202202
td.example {
@@ -208,14 +208,14 @@
208208

209209
.count {
210210
color: #888;
211-
font-size: 14px;
211+
font-size: 15px;
212212
margin-bottom: 12px;
213213
}
214214

215215
.footer {
216216
text-align: center;
217217
color: #888;
218-
font-size: 14px;
218+
font-size: 15px;
219219
padding: 40px;
220220
border-top: 1px solid #ddd;
221221
margin-top: 40px;

docs/style/index.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ body {
1111
}
1212

1313
nav {
14-
background: #1a1a2e;
14+
background: #666666;
1515
color: #fff;
1616
padding: 16px 40px;
1717
display: flex;
@@ -20,7 +20,7 @@ nav {
2020
}
2121

2222
nav a {
23-
color: #a0c4ff;
23+
color: #ffffff;
2424
text-decoration: none;
2525
}
2626

@@ -75,7 +75,7 @@ code {
7575
}
7676

7777
pre {
78-
background: #1a1a2e;
78+
background: #666666;
7979
color: #e0e0e0;
8080
padding: 16px;
8181
border-radius: 6px;

docs/style/playground.css

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
}
66

77
body {
8-
background: #1a1a2e;
9-
color: #e0e0e0;
8+
background: #f8f9fa;
9+
color: #333;
1010
font: 14px/1.5 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
1111
display: flex;
1212
height: 100vh;
1313
}
1414

1515
.sidebar {
1616
width: 280px;
17-
background: #16213e;
18-
border-right: 1px solid #0f3460;
17+
background: #fff;
18+
border-right: 1px solid #ddd;
1919
padding: 16px;
2020
display: flex;
2121
flex-direction: column;
@@ -24,14 +24,14 @@ body {
2424
}
2525

2626
.sidebar h2 {
27-
font-size: 13px;
27+
font-size: 15px;
2828
text-transform: uppercase;
2929
color: #e94560;
3030
letter-spacing: 1px;
3131
}
3232

3333
.sidebar h3 {
34-
font-size: 12px;
34+
font-size: 15px;
3535
color: #888;
3636
margin-top: 8px;
3737
}
@@ -44,8 +44,8 @@ body {
4444
}
4545

4646
.examples-list button {
47-
background: #0f3460;
48-
color: #a0c4ff;
47+
background: #e8e8ee;
48+
color: #333;
4949
border: none;
5050
border-radius: 4px;
5151
padding: 6px 10px;
@@ -55,26 +55,26 @@ body {
5555
}
5656

5757
.examples-list button:hover {
58-
background: #1a4a8a;
59-
color: #fff;
58+
background: #d0d0d8;
59+
color: #000;
6060
}
6161

6262
.vars-table {
6363
width: 100%;
64-
font-size: 11px;
64+
font-size: 15px;
6565
border-collapse: collapse;
6666
}
6767

6868
.vars-table th {
6969
text-align: left;
7070
color: #e94560;
7171
padding: 2px 4px;
72-
border-bottom: 1px solid #333;
72+
border-bottom: 1px solid #ddd;
7373
}
7474

7575
.vars-table td {
7676
padding: 2px 4px;
77-
color: #ccc;
77+
color: #555;
7878
font-family: monospace;
7979
word-break: break-all;
8080
}
@@ -93,7 +93,7 @@ body {
9393
display: flex;
9494
flex-direction: column;
9595
gap: 2px;
96-
font-size: 13px;
96+
font-size: 15px;
9797
}
9898

9999
.output .entry {
@@ -108,11 +108,11 @@ body {
108108
}
109109

110110
.output .expr {
111-
color: #ffd700;
111+
color: #b8860b;
112112
}
113113

114114
.output .result {
115-
color: #7bed9f;
115+
color: #2e7d32;
116116
white-space: pre-wrap;
117117
}
118118

@@ -121,12 +121,12 @@ body {
121121
}
122122

123123
.output .sep {
124-
border-bottom: 1px solid #222;
124+
border-bottom: 1px solid #ddd;
125125
margin: 4px 0;
126126
}
127127

128128
.input-area {
129-
border-top: 1px solid #0f3460;
129+
border-top: 1px solid #ddd;
130130
padding: 12px 16px;
131131
display: flex;
132132
gap: 8px;
@@ -141,9 +141,9 @@ body {
141141

142142
.input-area input {
143143
flex: 1;
144-
background: #0f3460;
145-
color: #e0e0e0;
146-
border: 1px solid #1a4a8a;
144+
background: #fff;
145+
color: #333;
146+
border: 1px solid #ddd;
147147
border-radius: 4px;
148148
padding: 8px 12px;
149149
font: 14px/1.4 monospace;
@@ -155,5 +155,5 @@ body {
155155
}
156156

157157
.input-area input::placeholder {
158-
color: #555;
159-
}
158+
color: #aaa;
159+
}

0 commit comments

Comments
 (0)