fix(web): update old discord logo to new one (#16789)

* fix: update discord svg path and add viewbox

* fix formatting
This commit is contained in:
Nicholas Flamy 2025-03-10 23:46:32 -04:00 committed by GitHub
parent 75fa305e98
commit 5d86e6d2d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 6 deletions

View file

@ -2,7 +2,7 @@ import React from 'react';
import Link from '@docusaurus/Link';
import Layout from '@theme/Layout';
import { useColorMode } from '@docusaurus/theme-common';
import { discordPath } from '@site/src/components/svg-paths';
import { discordPath, discordViewBox } from '@site/src/components/svg-paths';
import Icon from '@mdi/react';
function HomepageHeader() {
const { isDarkTheme } = useColorMode();
@ -60,7 +60,11 @@ function HomepageHeader() {
</div>
<div className="my-12 flex gap-1 font-medium place-items-center place-content-center text-immich-primary dark:text-immich-dark-primary">
<Icon path={discordPath} size={1} />
<Icon
path={discordPath}
viewBox={discordViewBox} /* viewBox may show an error in your IDE but it is normal. */
size={1}
/>
<Link to="https://discord.immich.app/">Join our Discord</Link>
</div>
<img