don't load fathom script unless on production

This commit is contained in:
2022-05-16 09:40:36 -04:00
parent cf4f2fe442
commit 2f695be18f
12 changed files with 40 additions and 46 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const Block = styled("div", {
margin: "1em auto",
color: "$codeText",
[`& ${Code}`]: {
[`${Code}`]: {
display: "block",
overflowX: "auto",
padding: "1em",
+1 -1
View File
@@ -9,7 +9,7 @@ const Title = styled("h1", {
lineHeight: 1.3,
fontWeight: 700,
"& code": {
code: {
margin: "0 0.075em",
},
+2 -2
View File
@@ -12,10 +12,10 @@ const Display = styled(
maxWidth: "800px",
// these are injected by noVNC after connection, so we can't target them directly:
"& div": {
div: {
background: "none !important",
"& canvas": {
canvas: {
cursor: "inherit !important",
},
},
+1 -1
View File
@@ -13,7 +13,7 @@ const Player = styled(ReactPlayer, {
top: 0,
left: 0,
"& video": {
video: {
borderRadius: "$rounded",
},
});
+1 -1
View File
@@ -14,7 +14,7 @@ const Player = styled(ReactPlayer, {
left: 0,
// target both the lazy thumbnail preview *and* the actual YouTube embed
"& .react-player__preview, & iframe": {
".react-player__preview, iframe": {
borderRadius: "$rounded",
},
});