Skip to content

Commit

Permalink
refactor(favicon): use background-less favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
Conaclos committed Aug 21, 2023
1 parent fcd1f10 commit 295e622
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 18 deletions.
Binary file modified website/public/img/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/public/img/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/public/img/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/public/img/circle-indent-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/public/img/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/public/img/favicon-32x32.png
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 website/public/img/favicon.ico
Binary file not shown.
Binary file removed website/public/img/favicon.png
Binary file not shown.
3 changes: 1 addition & 2 deletions website/public/img/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions website/public/img/pinned-logo.svg

This file was deleted.

6 changes: 3 additions & 3 deletions website/src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ const { default: favicon } = await import("/public/img/favicon.svg?raw");
<title>{title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="mask-icon" href="/img/pinned-logo.svg" color="#FFC905">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/svg+xml" href={encodeSVG(favicon)}>
<link rel="manifest" href="/img/site.webmanifest">

<link rel="preload" href="/fonts/Inter-Regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/Inter-Bold.woff2" as="font" type="font/woff2" crossorigin>
Expand Down
9 changes: 1 addition & 8 deletions website/src/playground/components/RomeHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
import biomeIcon from "../../svg/logomark.svg";
import biomeDarkIcon from "../../svg/logomark_white_yellow.svg";
import { useTheme } from "../utils";

export default function RomeHeader() {
const theme = useTheme();

return (
<>
<img
alt="Biome logo"
src={theme === "dark" ? biomeDarkIcon : biomeIcon}
/>
<img alt="Biome logo" src={biomeIcon} />
<span>Biome</span>
</>
);
Expand Down
4 changes: 3 additions & 1 deletion website/src/svg/logomark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion website/src/svg/logomark_white_yellow.svg

This file was deleted.

0 comments on commit 295e622

Please sign in to comment.