-

-
-
-
- {name}{" "}
-
-
-
- {description &&
{description}
}
+ {icons.map(
+ ({ darkModeImageHref, description, href, imageHref, name }) => (
+
+
+

+ {darkModeImageHref && (
+

+ )}
+
-
-
- ))}
+
+ )
+ )}
);
}
diff --git a/app/data/sponsors.json b/app/data/sponsors.json
index eecad27..38e1029 100644
--- a/app/data/sponsors.json
+++ b/app/data/sponsors.json
@@ -13,9 +13,10 @@
"name": "Indy Hall"
},
{
+ "darkModeImageHref": "/assets/logos/liberty.png",
"description": "The essential destination site for technical job seekers.",
"href": "https://libertyjobs.com",
- "imageHref": "/assets/logos/liberty.png",
+ "imageHref": "/assets/logos/liberty-regular.png",
"name": "Liberty Jobs"
}
]
diff --git a/app/root.css b/app/root.css
index d7ec899..72f3aae 100644
--- a/app/root.css
+++ b/app/root.css
@@ -69,9 +69,21 @@ p {
color: var(--color-background);
}
+.only-dark {
+ display: none;
+}
+
@media (prefers-color-scheme: dark) {
:root {
--color-background: #323330;
--color-foreground: #efdb4f;
}
+
+ .only-dark {
+ display: block;
+ }
+
+ .only-light {
+ display: none;
+ }
}
diff --git a/app/routes/sponsors.tsx b/app/routes/sponsors.tsx
index 18ae256..5ce0ecc 100644
--- a/app/routes/sponsors.tsx
+++ b/app/routes/sponsors.tsx
@@ -7,7 +7,7 @@ import { constructSiteTitle } from "~/utils/common";
interface LoaderData {
currentSponsors: Record<
- "description" | "href" | "imageHref" | "name",
+ "darkModeImageHref" | "description" | "href" | "imageHref" | "name",
string
>[];
}
diff --git a/public/assets/logos/liberty-regular.png b/public/assets/logos/liberty-regular.png
new file mode 100644
index 0000000..5ab87ba
Binary files /dev/null and b/public/assets/logos/liberty-regular.png differ