mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: fonts
This commit is contained in:
1 parent
c9455da6a5
commit
3fbb32463b
6 files changed
+56
-213
No files matched your search
-122
@@ -7,128 +7,6 @@
|
||||
content="Appwrite is an open-source platform for building applications at any scale, using your preferred programming languages and tools." />
|
||||
<link rel="icon" type="image/svg+xml" href="/console/logos/appwrite-icon.svg" />
|
||||
<link rel="mask-icon" type="image/png" href="/console/logos/appwrite-icon.png" />
|
||||
<link
|
||||
rel="preload"
|
||||
href="/console/fonts/inter/inter-v8-latin-600.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="/console/fonts/inter/inter-v8-latin-regular.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="/console/fonts/poppins/poppins-v19-latin-500.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="/console/fonts/poppins/poppins-v19-latin-600.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="/console/fonts/poppins/poppins-v19-latin-700.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="/console/fonts/source-code-pro/source-code-pro-v20-latin-regular.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-Air.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-AirItalic.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-Thin.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-ThinItalic.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-Light.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-LightItalic.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-Regular.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-RegularItalic.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-Medium.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-MediumItalic.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-Bold.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-BoldItalic.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-Black.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link
|
||||
rel="preload"
|
||||
href="https://fonts.appwrite.io/aeonik-pro/AeonikPro-BlackItalic.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossorigin />
|
||||
<link rel="preload" as="style" type="text/css" href="/console/fonts/cloud.css" />
|
||||
<link rel="preload" as="style" type="text/css" href="/console/fonts/main.css" />
|
||||
<link rel="stylesheet" href="/console/css/loading.css" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
%sveltekit.head%
|
||||
|
||||
@@ -82,6 +82,8 @@
|
||||
{#if budgetEnabled}
|
||||
<div class="u-margin-block-start-16">
|
||||
<InputNumber
|
||||
required
|
||||
autofocus
|
||||
id="budget"
|
||||
label="Budget cap (USD)"
|
||||
placeholder="0"
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<Modal title="Select teams" bind:show onSubmit={create} on:close={reset} size="big">
|
||||
<Modal title="Select teams" bind:show onSubmit={create} on:close={reset}>
|
||||
<Typography.Text
|
||||
>Grant access to any member of a specific team. To grant access to team members with
|
||||
specific roles, you will need to set a <Link.Button on:click={() => dispatch('custom')}
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
function resolveTheme(theme: AppStore['themeInUse']) {
|
||||
switch (theme) {
|
||||
case 'dark':
|
||||
return true ? ThemeDarkCloud : ThemeDark; //TODO: remove after cloud instance is live
|
||||
return isCloud ? ThemeDarkCloud : ThemeDark;
|
||||
case 'light':
|
||||
return true ? ThemeLightCloud : ThemeLight;
|
||||
return isCloud ? ThemeLightCloud : ThemeLight;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (user && $page.url.searchParams.has('campaign')) {
|
||||
const campaignId = $page.url.searchParams.get('campaign');
|
||||
const campaign = await sdk.forConsole.billing
|
||||
@@ -123,15 +124,41 @@
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const preloadFonts = [
|
||||
base + '/fonts/inter/inter-v8-latin-600.woff2',
|
||||
base + '/fonts/inter/inter-v8-latin-regular.woff2',
|
||||
base + '/fonts/poppins/poppins-v19-latin-500.woff2',
|
||||
base + '/fonts/poppins/poppins-v19-latin-600.woff2',
|
||||
base + '/fonts/poppins/poppins-v19-latin-700.woff2',
|
||||
base + '/fonts/source-code-pro/source-code-pro-v20-latin-regular.woff2'
|
||||
];
|
||||
const preloadFontsCloud = [
|
||||
'https://fonts.appwrite.io/aeonik-pro/AeonikPro-Regular.woff2',
|
||||
'https://fonts.appwrite.io/aeonik-pro/AeonikPro-Medium.woff2',
|
||||
'https://fonts.appwrite.io/aeonik-pro/AeonikPro-Bold.woff2',
|
||||
'https://fonts.appwrite.io/aeonik-fono/AeonikFono-Regular.woff2',
|
||||
'https://fonts.appwrite.io/aeonik-fono/AeonikFono-Medium.woff2',
|
||||
'https://fonts.appwrite.io/aeonik-fono/AeonikFono-Bold.woff2'
|
||||
];
|
||||
</script>
|
||||
|
||||
<svelte:window on:resize={updateViewport} on:load={updateViewport} />
|
||||
|
||||
<svelte:head>
|
||||
<!-- {#if isCloud} -->
|
||||
<link rel="stylesheet" href={`${base}/fonts/cloud.css`} />
|
||||
<!-- {/if} -->
|
||||
{#each preloadFonts as font}
|
||||
<link rel="preload" href={font} as="font" type="font/woff2" crossorigin="anonymous" />
|
||||
{/each}
|
||||
<link rel="preload" as="style" type="text/css" href="/console/fonts/main.css" />
|
||||
<link rel="stylesheet" href={`${base}/fonts/main.css`} />
|
||||
|
||||
{#if isCloud}
|
||||
{#each preloadFontsCloud as font}
|
||||
<link rel="preload" href={font} as="font" type="font/woff2" crossorigin="anonymous" />
|
||||
{/each}
|
||||
<link rel="preload" as="style" type="text/css" href="/console/fonts/cloud.css" />
|
||||
<link rel="stylesheet" href={`${base}/fonts/cloud.css`} />
|
||||
{/if}
|
||||
</svelte:head>
|
||||
|
||||
<Root theme={resolveTheme($app.themeInUse)}>
|
||||
|
||||
@@ -118,9 +118,9 @@
|
||||
"overlay-skeleton": "rgba(25, 25, 28, 4%)",
|
||||
"gradient-border-button-secondary-bottom": "var(--border-neutral)",
|
||||
"gradient-border-button-secondary-top": "var(--border-neutral-strong)",
|
||||
"font-family-brand": "Aeonik Pro",
|
||||
"font-family-brand": "Inter",
|
||||
"font-family-sansserif": "Inter",
|
||||
"font-family-monospace": "Aeonik Fono",
|
||||
"font-family-monospace": "Fira Code",
|
||||
"font-family-code": "Fira Code",
|
||||
"font-weight-regular": "Regular",
|
||||
"font-weight-medium": "Medium",
|
||||
|
||||
+19
-83
@@ -1,51 +1,3 @@
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: normal;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-Air.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: italic;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-AirItalic.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: normal;
|
||||
font-weight: 200;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-Thin.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: italic;
|
||||
font-weight: 200;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-ThinItalic.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-Light.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-LightItalic.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: normal;
|
||||
@@ -54,14 +6,6 @@
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-Regular.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-RegularItalic.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: normal;
|
||||
@@ -70,14 +14,6 @@
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-Medium.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-MediumItalic.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: normal;
|
||||
@@ -87,25 +23,25 @@
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: italic;
|
||||
font-family: 'Aenoik Fono';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-fono/AeonikFono-Regular.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aenoik Fono';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-fono/AeonikFono-Medium.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aenoik Fono';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-BoldItalic.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-Black.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Aeonik Pro';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: url('https://fonts.appwrite.io/aeonik-pro/AeonikPro-BlackItalic.woff2') format('woff2');
|
||||
src: url('https://fonts.appwrite.io/aeonik-fono/AeonikFono-Bold.woff2') format('woff2');
|
||||
}
|
||||
Reference in new issue
Block a user