mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-08 18:17:11 +02:00
Use open-color directly (#1371)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React from "react";
|
||||
import oc from "open-color";
|
||||
|
||||
// https://github.com/tholman/github-corners
|
||||
export const GitHubCorner = React.memo(() => (
|
||||
@@ -15,17 +16,17 @@ export const GitHubCorner = React.memo(() => (
|
||||
rel="noopener noreferrer"
|
||||
aria-label="GitHub repository"
|
||||
>
|
||||
<path d="M0 0l115 115h15l12 27 108 108V0z" fill="#6c6c6c" />
|
||||
<path d="M0 0l115 115h15l12 27 108 108V0z" fill={oc.gray[6]} />
|
||||
<path
|
||||
className="octo-arm"
|
||||
d="M128 109c-15-9-9-19-9-19 3-7 2-11 2-11-1-7 3-2 3-2 4 5 2 11 2 11-3 10 5 15 9 16"
|
||||
style={{ transformOrigin: "130px 106px" }}
|
||||
fill="#fff"
|
||||
fill={oc.white}
|
||||
/>
|
||||
<path
|
||||
className="octo-body"
|
||||
d="M115 115s4 2 5 0l14-14c3-2 6-3 8-3-8-11-15-24 2-41 5-5 10-7 16-7 1-2 3-7 12-11 0 0 5 3 7 16 4 2 8 5 12 9s7 8 9 12c14 3 17 7 17 7-4 8-9 11-11 11 0 6-2 11-7 16-16 16-30 10-41 2 0 3-1 7-5 11l-12 11c-1 1 1 5 1 5z"
|
||||
fill="#fff"
|
||||
fill={oc.white}
|
||||
/>
|
||||
</a>
|
||||
</svg>
|
||||
|
Reference in New Issue
Block a user