Skip to content

Commit 5ec927b

Browse files
authored
Merge pull request #2115 from appwrite/add-hiring-console-message
2 parents f50a970 + 26e3d21 commit 5ec927b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

src/lib/utils/console.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,33 @@ const BillingPlan = {
1717
SCALE: 'tier-2'
1818
} as const;
1919

20+
const ASCII_ART = `
21+
_ _ _
22+
/_\\ _ __ _ ____ ___ __(_) |_ ___
23+
//_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\
24+
/ _ \\ |_) | |_) \\ V V /| | | | || __/
25+
\\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___|
26+
|_| |_|
27+
`;
28+
29+
export function displayHiringMessage() {
30+
if (browser) {
31+
console.log('%c' + ASCII_ART, 'font-family: monospace; white-space: pre; color: #fd366e;');
32+
console.log(
33+
'%cWe are hiring!',
34+
'font-family: Aeonik Pro, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 20px; font-weight: bold;'
35+
);
36+
console.log(
37+
'%cJoin us in building the open-source, all-in-one development platform',
38+
'font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px;'
39+
);
40+
console.log(
41+
'%cCheck out our open positions at https://appwrite.io/careers',
42+
'font-family: monospace; color: #666;'
43+
);
44+
}
45+
}
46+
2047
export async function createSource(
2148
ref: string | null,
2249
referrer: string | null,

src/routes/+layout.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
import { saveReferrerAndUtmSource } from '$lib/utils/utm';
6060
import { Sprite } from '$lib/components/ui/icon/sprite';
6161
import { setTheme, ThemeProvider } from '$lib/providers/theme';
62+
import { displayHiringMessage } from '$lib/utils/console';
6263
6364
function applyTheme(theme: Theme) {
6465
const resolvedTheme = theme === 'system' ? getSystemTheme() : theme;
@@ -71,6 +72,7 @@
7172
const tracked = new Set();
7273
7374
onMount(() => {
75+
displayHiringMessage();
7476
saveReferrerAndUtmSource(page.url);
7577
7678
const initialTheme = page.route.id?.startsWith('/docs') ? getPreferredTheme() : 'dark';

0 commit comments

Comments
 (0)