Skip to content

Commit f9fc708

Browse files
committed
Assign distinct colors to different datatypes and update node color rendering
1 parent d59e18c commit f9fc708

File tree

7 files changed

+740
-677
lines changed

7 files changed

+740
-677
lines changed

src/components/NodeInfoPanel.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ const NodeInfoPanel: React.FC<NodeInfoPanelProps> = ({
191191
<Grid container spacing={1}>
192192
<Grid item xs={12}>
193193
<Typography
194-
sx={{ color: Colors.darkpurple, fontWeight: "Bold" }}
194+
sx={{ color: Colors.darkPurple, fontWeight: "Bold" }}
195195
>
196196
NeuroJSON.io Database Name
197197
</Typography>
198198
<Typography>{dbInfo.db_name}</Typography>
199199
</Grid>
200200
<Grid item xs={12}>
201201
<Typography
202-
sx={{ color: Colors.darkpurple, fontWeight: "Bold" }}
202+
sx={{ color: Colors.darkPurple, fontWeight: "Bold" }}
203203
>
204204
REST-API URL
205205
</Typography>
@@ -217,7 +217,7 @@ const NodeInfoPanel: React.FC<NodeInfoPanelProps> = ({
217217
</Grid>
218218
<Grid item xs={12}>
219219
<Typography
220-
sx={{ color: Colors.darkpurple, fontWeight: "Bold" }}
220+
sx={{ color: Colors.darkPurple, fontWeight: "Bold" }}
221221
>
222222
Database Creation Time
223223
</Typography>
@@ -227,7 +227,7 @@ const NodeInfoPanel: React.FC<NodeInfoPanelProps> = ({
227227
</Grid>
228228
<Grid item xs={12}>
229229
<Typography
230-
sx={{ color: Colors.darkpurple, fontWeight: "Bold" }}
230+
sx={{ color: Colors.darkPurple, fontWeight: "Bold" }}
231231
>
232232
Searchable Database Size
233233
</Typography>
@@ -237,7 +237,7 @@ const NodeInfoPanel: React.FC<NodeInfoPanelProps> = ({
237237
</Grid>
238238
<Grid item xs={12}>
239239
<Typography
240-
sx={{ color: Colors.darkpurple, fontWeight: "Bold" }}
240+
sx={{ color: Colors.darkPurple, fontWeight: "Bold" }}
241241
>
242242
DatabaseDisk Size (compressed)
243243
</Typography>
@@ -255,7 +255,7 @@ const NodeInfoPanel: React.FC<NodeInfoPanelProps> = ({
255255
backgroundColor: Colors.orange,
256256
color: Colors.white,
257257
"&:hover": {
258-
backgroundColor: Colors.darkorange,
258+
backgroundColor: Colors.darkOrange,
259259
},
260260
}}
261261
onClick={() => navigate(`/databases/${nodeData.id}`)}
@@ -271,7 +271,7 @@ const NodeInfoPanel: React.FC<NodeInfoPanelProps> = ({
271271
backgroundColor: Colors.orange,
272272
color: Colors.white,
273273
"&:hover": {
274-
backgroundColor: Colors.darkorange,
274+
backgroundColor: Colors.darkOrange,
275275
},
276276
}}
277277
>
@@ -286,7 +286,7 @@ const NodeInfoPanel: React.FC<NodeInfoPanelProps> = ({
286286
backgroundColor: Colors.orange,
287287
color: Colors.white,
288288
"&:hover": {
289-
backgroundColor: Colors.darkorange,
289+
backgroundColor: Colors.darkOrange,
290290
},
291291
}}
292292
>
@@ -301,7 +301,7 @@ const NodeInfoPanel: React.FC<NodeInfoPanelProps> = ({
301301
backgroundColor: Colors.orange,
302302
color: Colors.white,
303303
"&:hover": {
304-
backgroundColor: Colors.darkorange,
304+
backgroundColor: Colors.darkOrange,
305305
},
306306
}}
307307
onClick={() =>

src/design/Layouts/FullScreen.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,16 @@ const FullScreen = () => {
4646
>
4747
<Typography
4848
variant="h1"
49-
// sx={{
50-
// color: Colors.yellow,
51-
// textTransform: "none",
52-
// }}
49+
sx={{
50+
color: Colors.yellow,
51+
}}
5352
>
5453
NeuroJSON.io
5554
</Typography>
5655
<Typography
5756
variant="h2"
5857
sx={{
5958
color: Colors.lightGray,
60-
textTransform: "none",
6159
}}
6260
>
6361
Free Data Worth Sharing

src/design/theme.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ export const Colors = {
2424
textPrimary: "#212121",
2525
textSecondary: "#494747",
2626
green: "#02DEC4",
27-
darkgreen: "#49c6ae",
27+
darkGreen: "#49c6ae",
2828
yellow: "#FFDD31",
29+
lightYellow: "#FAEBD7",
2930
purple: "#5865F2",
30-
darkpurple: "#282C56",
31+
darkPurple: "#282C56",
3132
orange: "#FF9F2F",
32-
darkorange: "#E88C25",
33+
darkOrange: "#E88C25",
3334
primary,
3435
secondary,
3536
};
@@ -52,12 +53,12 @@ const theme = createTheme({
5253
fontFamily: "Raleway",
5354
fontWeight: 700,
5455
fontSize: "2rem",
55-
color: Colors.yellow,
5656
textTransform: "none",
5757
},
5858
h2: {
5959
fontWeight: 600,
6060
fontSize: "1.75rem",
61+
textTransform: "none",
6162
color: Colors.secondary.main,
6263
},
6364
body1: {

0 commit comments

Comments
 (0)