Add SVG masks to server / user icons.

This commit is contained in:
Paul
2021-07-02 16:24:36 +01:00
parent 8f047788c4
commit e252c2ff2e
4 changed files with 29 additions and 10 deletions

View File

@@ -0,0 +1,18 @@
// This file must be imported and used at least once for SVG masks.
export default function Masks() {
return (
<svg width={0} height={0} style={{ position: 'fixed' }}>
<defs>
<mask id="server">
<rect x="0" y="0" width="32" height="32" fill="white" />
<circle cx="27" cy="5" r="7" fill={"black"} />
</mask>
<mask id="user">
<rect x="0" y="0" width="32" height="32" fill="white" />
<circle cx="27" cy="27" r="7" fill={"black"} />
</mask>
</defs>
</svg>
)
}