Compare commits
No commits in common. "e98602c0c21cc2dabea3f09de9838868514a76f0" and "ba61105204c57c648641eef4649aa6218d5618ed" have entirely different histories.
e98602c0c2
...
ba61105204
3 changed files with 20 additions and 37 deletions
50
src/Body.tsx
50
src/Body.tsx
|
@ -8,34 +8,6 @@ import LinkedIn from "./assets/linkedin.svg?react";
|
||||||
import Mastodon from "./assets/mastodon.svg?react";
|
import Mastodon from "./assets/mastodon.svg?react";
|
||||||
import DarkModeToggleIcon from "./assets/darkmodetoggle.svg?react";
|
import DarkModeToggleIcon from "./assets/darkmodetoggle.svg?react";
|
||||||
|
|
||||||
type ColouredBlockProps = {
|
|
||||||
colorNum: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
const ColouredBlock = ({ colorNum }: ColouredBlockProps) => (
|
|
||||||
<span style={{ color: `var(--color${colorNum})` }}>███</span>
|
|
||||||
);
|
|
||||||
|
|
||||||
type ColouredLineProps = {
|
|
||||||
light: boolean;
|
|
||||||
};
|
|
||||||
|
|
||||||
const ColouredLine = ({ light }: ColouredLineProps) => {
|
|
||||||
const startIndex = light ? 8 : 0;
|
|
||||||
return (
|
|
||||||
<p className="blocks">
|
|
||||||
{Array.from({ length: 8 }).map(
|
|
||||||
(
|
|
||||||
_value,
|
|
||||||
index, // Apparently this is the best way to map a range in JavaScript
|
|
||||||
) => (
|
|
||||||
<ColouredBlock colorNum={startIndex + index} key={index} />
|
|
||||||
),
|
|
||||||
)}
|
|
||||||
</p>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
// TODO: Automate screenshot of info for thumbnail?
|
// TODO: Automate screenshot of info for thumbnail?
|
||||||
const Fetch = () => {
|
const Fetch = () => {
|
||||||
return (
|
return (
|
||||||
|
@ -83,8 +55,26 @@ const Fetch = () => {
|
||||||
<p>
|
<p>
|
||||||
<br />
|
<br />
|
||||||
</p>
|
</p>
|
||||||
<ColouredLine light={false} />
|
<p className="blocks">
|
||||||
<ColouredLine light={true} />
|
<span style={{ color: "var(--color0)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color1)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color2)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color3)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color4)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color5)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color6)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color7)" }}>███</span>
|
||||||
|
</p>
|
||||||
|
<p className="blocks">
|
||||||
|
<span style={{ color: "var(--color8)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color9)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color10)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color11)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color12)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color13)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color14)" }}>███</span>
|
||||||
|
<span style={{ color: "var(--color15)" }}>███</span>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 166 KiB |
|
@ -300,13 +300,6 @@ p {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Helper for capturing thumb.png*/
|
|
||||||
@media print {
|
|
||||||
.invisible-div {
|
|
||||||
padding: 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#basic-info {
|
#basic-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue