Skip to content

Commit aff9152

Browse files
committed
refactor: remove excalidraw logo and branding because of their tweet
1 parent d2c75f0 commit aff9152

File tree

16 files changed

+35
-36
lines changed

16 files changed

+35
-36
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ CollabyDraw is built with **privacy by design** to ensure that no sensitive draw
5757
5858
- No one — not even the server — can read what’s drawn in a room without the key.
5959
- Ensures **confidentiality** for private brainstorming, teaching, or design sessions.
60-
- Works like **Excalidraw's E2EE rooms**, but tailored for your collaborative drawing logic.
60+
- Works like **Collabydraw's E2EE rooms**, but tailored for your collaborative drawing logic.
6161
6262
---
6363

apps/collabydraw/app/(auth-layout)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function AuthLayout({
1717
<Link href="/" className="Logo flex items-center select-none is-normal is-plain underline-none text-current">
1818
<div className=""><LogoSvg /></div>
1919
<div className="md:flex hidden">
20-
<h1 className="brand-title ExcalidrawLogo-text font-excalifont">CollabyDraw</h1>
20+
<h1 className="brand-title CollabydrawLogo-text font-collabyfont">CollabyDraw</h1>
2121
</div>
2222
</Link>
2323
</div>

apps/collabydraw/app/(site)/about/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default function AboutPage() {
8080
<li>No one — not even the server — can read what’s drawn without the key</li>
8181
<li>Ensures <strong>confidentiality</strong> for private sessions</li>
8282
<li>
83-
Works like <strong>Excalidraw&apos;s E2EE rooms</strong>, but tailored for your logic
83+
Works like <strong>Collabydraw&apos;s E2EE rooms</strong>, but tailored for your logic
8484
</li>
8585
</ul>
8686

apps/collabydraw/app/globals.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ h6 {
2424
}
2525

2626
@font-face {
27-
font-family: "Excalifont";
28-
src: url("/fonts/Excalifont-Regular.woff2") format("woff2"),
29-
url("/fonts/Excalifont-Regular.ttf") format("truetype");
27+
font-family: "Collabyfont";
28+
src: url("/fonts/Collabyfont-Regular.woff2") format("woff2"),
29+
url("/fonts/Collabyfont-Regular.ttf") format("truetype");
3030
font-weight: normal;
3131
font-style: normal;
3232
}
@@ -501,8 +501,8 @@ button {
501501
animation-delay: 0.5s;
502502
}
503503

504-
.collabydraw .excalifont {
505-
font-family: Excalifont, Xiaolai;
504+
.collabydraw .collabyfont {
505+
font-family: Collabyfont, Xiaolai;
506506
}
507507

508508
.collabydraw .welcome-screen-decor {
@@ -585,7 +585,7 @@ button {
585585
font-size: 2.25rem;
586586
}
587587

588-
.collabydraw .ExcalidrawLogo {
588+
.collabydraw .CollabydrawLogo {
589589
--logo-icon--xs: 2rem;
590590
--logo-text--xs: 1.5rem;
591591
--logo-icon--small: 2.5rem;
@@ -598,24 +598,24 @@ button {
598598
align-items: center;
599599
}
600600

601-
.collabydraw .ExcalidrawLogo svg {
601+
.collabydraw .CollabydrawLogo svg {
602602
flex: 0 0 auto;
603603
}
604604

605-
.collabydraw .ExcalidrawLogo .ExcalidrawLogo-icon {
605+
.collabydraw .CollabydrawLogo .CollabydrawLogo-icon {
606606
width: auto;
607607
color: var(--color-logo-icon);
608608
}
609609

610-
.collabydraw .ExcalidrawLogo.is-small .ExcalidrawLogo-icon {
610+
.collabydraw .CollabydrawLogo.is-small .CollabydrawLogo-icon {
611611
height: var(--logo-icon--small);
612612
}
613613

614-
.collabydraw .ExcalidrawLogo-text {
614+
.collabydraw .CollabydrawLogo-text {
615615
margin-left: .75rem;
616616
width: auto;
617617
color: var(--color-logo-text);
618-
font-family: Excalifont, Xiaolai;
618+
font-family: Collabyfont, Xiaolai;
619619
font-size: 2.25rem;
620620
font-weight: bolder;
621621
text-transform: uppercase;

apps/collabydraw/canvas-engine/CanvasEngine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ export class CanvasEngine {
10581058
textarea.tabIndex = 0;
10591059
textarea.wrap = "off";
10601060
textarea.style.color = this.strokeFill;
1061-
const fontString = `${calFont}px/1.2 ${this.fontFamily === "normal" ? "Arial" : this.fontFamily === "hand-drawn" ? "Excalifont, Xiaolai" : "Assistant"}`;
1061+
const fontString = `${calFont}px/1.2 ${this.fontFamily === "normal" ? "Arial" : this.fontFamily === "hand-drawn" ? "Collabyfont, Xiaolai" : "Assistant"}`;
10621062
textarea.style.font = fontString;
10631063
textarea.style.zIndex = "1";
10641064

@@ -1746,7 +1746,7 @@ export class CanvasEngine {
17461746
const calFontSize = getFontSize(fontSize, this.scale);
17471747
const lineHeight = getLineHeight(calFontSize);
17481748

1749-
const fontString = `${fontStyle} ${calFontSize}px/1.2 ${fontFamily === "normal" ? "Arial" : fontFamily === "hand-drawn" ? "Excalifont, Xiaolai" : "Assistant"}`;
1749+
const fontString = `${fontStyle} ${calFontSize}px/1.2 ${fontFamily === "normal" ? "Arial" : fontFamily === "hand-drawn" ? "Collabyfont, Xiaolai" : "Assistant"}`;
17501750
this.ctx.font = fontString;
17511751
this.ctx.fillStyle = fillStyle;
17521752
this.ctx.textAlign = textAlign;

apps/collabydraw/canvas-engine/SelectionController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class SelectionController {
126126

127127
case "text":
128128
const calFontSize = getFontSize(shape.fontSize, 100);
129-
this.ctx.font = `${calFontSize}px/1.2 ${shape.fontFamily === "normal" ? "Arial" : shape.fontFamily === "hand-drawn" ? "Excalifont, Xiaolai" : "Assistant"}`;
129+
this.ctx.font = `${calFontSize}px/1.2 ${shape.fontFamily === "normal" ? "Arial" : shape.fontFamily === "hand-drawn" ? "Collabyfont, Xiaolai" : "Assistant"}`;
130130
const metrics = this.ctx.measureText(shape.text || "");
131131
bounds.x = shape.x - 10;
132132
bounds.y = shape.y - 10;

apps/collabydraw/components/CollaborationToolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default function CollaborationToolbar({ participants, hash }: { participa
9797
</div>
9898
</div>
9999
<Button type="button" onClick={() => setIsOpen(true)}
100-
className={cn("excalidraw-button collab-button relative w-auto py-2 px-3 md:py-3 md:px-4 rounded-md text-[.875rem] font-semibold shadow-none active:scale-[.98]", inRoom ? "bg-[#0fb884] dark:bg-[#0fb884] hover:bg-[#0fb884]" : "bg-color-primary hover:bg-brand-hover active:bg-brand-active")}
100+
className={cn("collabydraw-button collab-button relative w-auto py-2 px-3 md:py-3 md:px-4 rounded-md text-[.875rem] font-semibold shadow-none active:scale-[.98]", inRoom ? "bg-[#0fb884] dark:bg-[#0fb884] hover:bg-[#0fb884]" : "bg-color-primary hover:bg-brand-hover active:bg-brand-active")}
101101
title="Live collaboration..."><Share2 size={16} className="hidden xs670:inline md:hidden" />
102102
<span className="inline-block xs670:hidden md:inline-block">Share</span> {inRoom && participants && participants.length > 0 && (
103103
<div className="CollabButton-collaborators text-[.6rem] text-[#2b8a3e] bg-[#b2f2bb] font-bold font-assistant rounded-[50%] p-1 min-w-4 min-h-4 w-4 h-4 flex items-center justify-center absolute bottom-[-5px] right-[-5px]">{participants.length}</div>

apps/collabydraw/components/EncryptedWidget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function EncryptedWidget() {
1212
<EncryptedIcon className="w-[1.2rem] h-[1.2rem]" />
1313
</Link>
1414
</TooltipTrigger>
15-
<TooltipContent className="font-excalifont">
15+
<TooltipContent className="font-collabyfont">
1616
Your drawings are end-to-end encrypted so Collabydraw&apos;s servers will never see them.
1717
</TooltipContent>
1818
</Tooltip>

apps/collabydraw/components/ScreenLoading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default function ScreenLoading({ content }: { content?: string }) {
22
return (
3-
<div className="Loading h-dvh w-full flex items-center justify-center font-excalifont bg-island-bg-color text-loading-text-color text-xl tracking-wide">
3+
<div className="Loading h-dvh w-full flex items-center justify-center font-collabyfont bg-island-bg-color text-loading-text-color text-xl tracking-wide">
44
{content ? `${content}` : 'Loading Scenes...'}
55
</div>
66
)

apps/collabydraw/components/UserRoomsList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function UserRoomsList() {
88
return (
99
<div className="User_Rooms_List fixed z-[4] bottom-4 right-4 rounded-lg hidden md:flex items-center surface-box-shadow">
1010
<Button type="button" onClick={() => setIsOpen(true)}
11-
className="excalidraw-button collab-button relative w-auto py-3 px-4 rounded-md text-[.875rem] font-semibold shadow-none bg-color-primary hover:bg-brand-hover active:bg-brand-active active:scale-[.98]"
11+
className="collabydraw-button collab-button relative w-auto py-3 px-4 rounded-md text-[.875rem] font-semibold shadow-none bg-color-primary hover:bg-brand-hover active:bg-brand-active active:scale-[.98]"
1212
title="See All Rooms..."><Info /></Button>
1313
<UserRoomsListDialog open={isOpen} onOpenChange={setIsOpen} />
1414
</div>

0 commit comments

Comments
 (0)