-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up analysis page; store query in URLs
- Loading branch information
1 parent
43e96f9
commit 1b95918
Showing
14 changed files
with
584 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.ColorInput { | ||
cursor: pointer; | ||
|
||
> div { | ||
border-radius: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import hexToRgb from "@xtjs/lib/hexToRgb"; | ||
import rgbToHex from "@xtjs/lib/rgbToHex"; | ||
import "./ColorInput.css"; | ||
|
||
export const ColorInput = ({ | ||
color, | ||
onChange, | ||
size, | ||
}: { | ||
color: [number, number, number]; | ||
onChange: (color: [number, number, number]) => void; | ||
size: number; | ||
}) => { | ||
return ( | ||
<label className="ColorInput"> | ||
<input | ||
hidden | ||
type="color" | ||
value={rgbToHex(...color)} | ||
onChange={(e) => onChange(hexToRgb(e.currentTarget.value))} | ||
/> | ||
<div | ||
style={{ | ||
backgroundColor: `rgb(${color.join(",")})`, | ||
height: `${size}px`, | ||
width: `${size}px`, | ||
}} | ||
/> | ||
</label> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ table { | |
|
||
th, | ||
td { | ||
padding: 0.5rem; | ||
padding: 0.25rem 0.375rem; | ||
border: 1px solid #ddd; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ | |
rel="stylesheet" | ||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" | ||
/> | ||
<link rel="stylesheet" href="./dist/index.css" /> | ||
<script defer src="./dist/index.js"></script> | ||
<link rel="stylesheet" href="/dist/index.css" /> | ||
<script defer src="/dist/index.js"></script> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.