Skip to content

Commit

Permalink
refactor(favicon): use background-less favicon (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conaclos authored Aug 21, 2023
1 parent fcd1f10 commit 0b5a3fd
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 19 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 removed website/public/img/circle-indent-logo.png
Binary file not shown.
4 changes: 4 additions & 0 deletions website/public/img/circle-indent-logo.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 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
2 changes: 1 addition & 1 deletion website/src/pages/blog/biome-v1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authorName: Emanuele Stoppa
authorAvatar: https://avatars.githubusercontent.com/u/602478?v=4
authorUrl: https://twitter.com/ematipico
coauthorName: Biome Core Team
coauthorAvatar: /img/circle-indent-logo.png
coauthorAvatar: /img/circle-indent-logo.svg
pubDate: 2023-08-15
layout: ../../layouts/Blog.astro
socialImage: social-logo.png
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 0b5a3fd

Please sign in to comment.