mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-06 04:22:07 +00:00
Merge pull request #2115 from appwrite/add-hiring-console-message
This commit is contained in:
@@ -17,6 +17,33 @@ const BillingPlan = {
|
||||
SCALE: 'tier-2'
|
||||
} as const;
|
||||
|
||||
const ASCII_ART = `
|
||||
_ _ _
|
||||
/_\\ _ __ _ ____ ___ __(_) |_ ___
|
||||
//_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\
|
||||
/ _ \\ |_) | |_) \\ V V /| | | | || __/
|
||||
\\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___|
|
||||
|_| |_|
|
||||
`;
|
||||
|
||||
export function displayHiringMessage() {
|
||||
if (browser) {
|
||||
console.log('%c' + ASCII_ART, 'font-family: monospace; white-space: pre; color: #fd366e;');
|
||||
console.log(
|
||||
'%cWe are hiring!',
|
||||
'font-family: Aeonik Pro, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 20px; font-weight: bold;'
|
||||
);
|
||||
console.log(
|
||||
'%cJoin us in building the open-source, all-in-one development platform',
|
||||
'font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px;'
|
||||
);
|
||||
console.log(
|
||||
'%cCheck out our open positions at https://appwrite.io/careers',
|
||||
'font-family: monospace; color: #666;'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export async function createSource(
|
||||
ref: string | null,
|
||||
referrer: string | null,
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
import { saveReferrerAndUtmSource } from '$lib/utils/utm';
|
||||
import { Sprite } from '$lib/components/ui/icon/sprite';
|
||||
import { setTheme, ThemeProvider } from '$lib/providers/theme';
|
||||
import { displayHiringMessage } from '$lib/utils/console';
|
||||
|
||||
function applyTheme(theme: Theme) {
|
||||
const resolvedTheme = theme === 'system' ? getSystemTheme() : theme;
|
||||
@@ -71,6 +72,7 @@
|
||||
const tracked = new Set();
|
||||
|
||||
onMount(() => {
|
||||
displayHiringMessage();
|
||||
saveReferrerAndUtmSource(page.url);
|
||||
|
||||
const initialTheme = page.route.id?.startsWith('/docs') ? getPreferredTheme() : 'dark';
|
||||
|
||||
Reference in New Issue
Block a user