mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
feat: update X brand logo & tweak labels (#7518)
This commit is contained in:
parent
43ccc875fb
commit
1cb350b2aa
4 changed files with 84 additions and 74 deletions
|
@ -486,10 +486,11 @@ export const DiscordIcon = createIcon(
|
||||||
modifiedTablerIconProps,
|
modifiedTablerIconProps,
|
||||||
);
|
);
|
||||||
|
|
||||||
export const TwitterIcon = createIcon(
|
export const XBrandIcon = createIcon(
|
||||||
<g strokeWidth="1.25">
|
<g strokeWidth="1.25">
|
||||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
||||||
<path d="M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z"></path>
|
<path d="M4 4l11.733 16h4.267l-11.733 -16z" />
|
||||||
|
<path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" />
|
||||||
</g>,
|
</g>,
|
||||||
tablerIconProps,
|
tablerIconProps,
|
||||||
);
|
);
|
||||||
|
|
|
@ -17,7 +17,7 @@ import {
|
||||||
TrashIcon,
|
TrashIcon,
|
||||||
usersIcon,
|
usersIcon,
|
||||||
} from "../icons";
|
} from "../icons";
|
||||||
import { GithubIcon, DiscordIcon, TwitterIcon } from "../icons";
|
import { GithubIcon, DiscordIcon, XBrandIcon } from "../icons";
|
||||||
import DropdownMenuItem from "../dropdownMenu/DropdownMenuItem";
|
import DropdownMenuItem from "../dropdownMenu/DropdownMenuItem";
|
||||||
import DropdownMenuItemLink from "../dropdownMenu/DropdownMenuItemLink";
|
import DropdownMenuItemLink from "../dropdownMenu/DropdownMenuItemLink";
|
||||||
import {
|
import {
|
||||||
|
@ -241,31 +241,35 @@ export const Export = () => {
|
||||||
};
|
};
|
||||||
Export.displayName = "Export";
|
Export.displayName = "Export";
|
||||||
|
|
||||||
export const Socials = () => (
|
export const Socials = () => {
|
||||||
<>
|
const { t } = useI18n();
|
||||||
<DropdownMenuItemLink
|
|
||||||
icon={GithubIcon}
|
return (
|
||||||
href="https://github.com/excalidraw/excalidraw"
|
<>
|
||||||
aria-label="GitHub"
|
<DropdownMenuItemLink
|
||||||
>
|
icon={GithubIcon}
|
||||||
GitHub
|
href="https://github.com/excalidraw/excalidraw"
|
||||||
</DropdownMenuItemLink>
|
aria-label="GitHub"
|
||||||
<DropdownMenuItemLink
|
>
|
||||||
icon={DiscordIcon}
|
GitHub
|
||||||
href="https://discord.gg/UexuTaE"
|
</DropdownMenuItemLink>
|
||||||
aria-label="Discord"
|
<DropdownMenuItemLink
|
||||||
>
|
icon={XBrandIcon}
|
||||||
Discord
|
href="https://x.com/excalidraw"
|
||||||
</DropdownMenuItemLink>
|
aria-label="X"
|
||||||
<DropdownMenuItemLink
|
>
|
||||||
icon={TwitterIcon}
|
{t("labels.followUs")}
|
||||||
href="https://twitter.com/excalidraw"
|
</DropdownMenuItemLink>
|
||||||
aria-label="Twitter"
|
<DropdownMenuItemLink
|
||||||
>
|
icon={DiscordIcon}
|
||||||
Twitter
|
href="https://discord.gg/UexuTaE"
|
||||||
</DropdownMenuItemLink>
|
aria-label="Discord"
|
||||||
</>
|
>
|
||||||
);
|
{t("labels.discordChat")}
|
||||||
|
</DropdownMenuItemLink>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
Socials.displayName = "Socials";
|
Socials.displayName = "Socials";
|
||||||
|
|
||||||
export const LiveCollaborationTrigger = ({
|
export const LiveCollaborationTrigger = ({
|
||||||
|
|
|
@ -138,7 +138,9 @@
|
||||||
"removeAllElementsFromFrame": "Remove all elements from frame",
|
"removeAllElementsFromFrame": "Remove all elements from frame",
|
||||||
"eyeDropper": "Pick color from canvas",
|
"eyeDropper": "Pick color from canvas",
|
||||||
"textToDiagram": "Text to diagram",
|
"textToDiagram": "Text to diagram",
|
||||||
"prompt": "Prompt"
|
"prompt": "Prompt",
|
||||||
|
"followUs": "Follow us",
|
||||||
|
"discordChat": "Discord chat"
|
||||||
},
|
},
|
||||||
"library": {
|
"library": {
|
||||||
"noItems": "No items added yet...",
|
"noItems": "No items added yet...",
|
||||||
|
|
|
@ -386,6 +386,52 @@ exports[`<Excalidraw/> > Test UIOptions prop > Test canvasActions > should rende
|
||||||
GitHub
|
GitHub
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
<a
|
||||||
|
aria-label="X"
|
||||||
|
class="dropdown-menu-item dropdown-menu-item-base"
|
||||||
|
href="https://x.com/excalidraw"
|
||||||
|
rel="noreferrer"
|
||||||
|
target="_blank"
|
||||||
|
title="X"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="dropdown-menu-item__icon"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
class=""
|
||||||
|
fill="none"
|
||||||
|
focusable="false"
|
||||||
|
role="img"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="2"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<g
|
||||||
|
stroke-width="1.25"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M0 0h24v24H0z"
|
||||||
|
fill="none"
|
||||||
|
stroke="none"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M4 4l11.733 16h4.267l-11.733 -16z"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="dropdown-menu-item__text"
|
||||||
|
>
|
||||||
|
Follow us
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
<a
|
<a
|
||||||
aria-label="Discord"
|
aria-label="Discord"
|
||||||
class="dropdown-menu-item dropdown-menu-item-base"
|
class="dropdown-menu-item dropdown-menu-item-base"
|
||||||
|
@ -423,50 +469,7 @@ exports[`<Excalidraw/> > Test UIOptions prop > Test canvasActions > should rende
|
||||||
<div
|
<div
|
||||||
class="dropdown-menu-item__text"
|
class="dropdown-menu-item__text"
|
||||||
>
|
>
|
||||||
Discord
|
Discord chat
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
aria-label="Twitter"
|
|
||||||
class="dropdown-menu-item dropdown-menu-item-base"
|
|
||||||
href="https://twitter.com/excalidraw"
|
|
||||||
rel="noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
title="Twitter"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="dropdown-menu-item__icon"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class=""
|
|
||||||
fill="none"
|
|
||||||
focusable="false"
|
|
||||||
role="img"
|
|
||||||
stroke="currentColor"
|
|
||||||
stroke-linecap="round"
|
|
||||||
stroke-linejoin="round"
|
|
||||||
stroke-width="2"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<g
|
|
||||||
stroke-width="1.25"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M0 0h24v24H0z"
|
|
||||||
fill="none"
|
|
||||||
stroke="none"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z"
|
|
||||||
/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="dropdown-menu-item__text"
|
|
||||||
>
|
|
||||||
Twitter
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue