Skip to content

Commit

Permalink
feat(website): update website logo to use svg (#14142)
Browse files Browse the repository at this point in the history
  • Loading branch information
2manslkh authored Jul 11, 2023
1 parent 0bba1e4 commit 1217fb6
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/website/components/ThemedImage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";

import Image from "next/image";
import { useTheme } from "next-themes";
import { useEffect, useState } from "react";

function ThemedImage() {
const { resolvedTheme } = useTheme();
Expand All @@ -9,8 +10,8 @@ function ThemedImage() {
useEffect(() => {
setSrc(
resolvedTheme === "dark"
? "/images/logotype-white.png"
: "/images/logotype-black.png"
? "/images/logotype-white.svg"
: "/images/logotype-black.svg"
);
}, [resolvedTheme]);

Expand All @@ -20,7 +21,7 @@ function ThemedImage() {
width={100}
height={100}
alt="logo"
style={{ width: "100%", height: "auto" }}
style={{ width: "128px", height: "auto" }}
/>
) : null;
}
Expand Down
Binary file removed packages/website/public/images/logotype-black.png
Binary file not shown.
8 changes: 8 additions & 0 deletions packages/website/public/images/logotype-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed packages/website/public/images/logotype-white.png
Binary file not shown.
8 changes: 8 additions & 0 deletions packages/website/public/images/logotype-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1217fb6

Please sign in to comment.