CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/components/anthropic-avatar.tsx
Views: 687
1
import { CSS } from "@cocalc/frontend/app-framework";
2
3
// The base64 encoded png is exactly the Anthropic icon from their website, with transparent background, and compressed using pngnq.
4
// Why? Importing it from a file and including it causes a nextjs error.
5
6
export default function AnthropicAvatar({
7
size = 64,
8
style,
9
backgroundColor = "transparent",
10
}: {
11
size: number;
12
style?: CSS;
13
backgroundColor?: string;
14
}) {
15
return (
16
<div
17
style={{
18
width: size,
19
height: size,
20
display: "inline-block",
21
position: "relative",
22
...style,
23
}}
24
>
25
<div
26
style={{
27
position: "absolute",
28
backgroundColor,
29
color: "white",
30
height: size,
31
top: "0px",
32
}}
33
>
34
<img
35
alt="Anthropic AI Icon"
36
width={size}
37
height={size}
38
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJQAAACUCAMAAABC4vDmAAADAFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////+/v7+/v78/Pz8/Pz6+vr6+vr4+Pj4+Pj39/f19fX19fXz8/Pz8/Px8fHx8fHv7+/u7u7u7u7s7Ozs7Ozq6urq6uro6Ojn5+fn5+fl5eXl5eXj4+Pi4uLi4uLg4ODg4ODe3t7e3t7c3Nzb29vb29vZ2dnZ2dnX19fW1tbW1tbU1NTU1NTS0tLR0dHR0dHPz8/Nzc3Nzc3MzMzMzMzKysrJycnJycnHx8fHx8fFxcXExMTExMTCwsLBwcHBwcG/v7+/v7+9vb28vLy8vLy6urq5ubm5ubm3t7e2tra2tra0tLSysrKysrKxsbGxsbGvr6+urq6urq6srKyrq6urq6upqamoqKioqKimpqalpaWlpaWjo6OioqKioqKgoKCfn5+dnZ2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