mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 04:22:18 +00:00
fix: github stars with constant
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { afterNavigate } from '$app/navigation';
|
||||
import { GITHUB_STARS } from '$lib/constants';
|
||||
import type { NavLink } from '$lib/layouts/Main.svelte';
|
||||
|
||||
export let open = false;
|
||||
@@ -43,7 +44,7 @@
|
||||
>
|
||||
<span class="aw-icon-star" aria-hidden="true" />
|
||||
<span class="text">Star on GitHub</span>
|
||||
<span class="aw-inline-tag aw-sub-body-400">38.4K</span>
|
||||
<span class="aw-inline-tag aw-sub-body-400">{GITHUB_STARS}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export const GITHUB_STARS = '38.4K';
|
||||
export const BANNER_KEY = 'pricing-banner-01'; // Change key to force banner to show again
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
|
||||
import { isMac } from '$lib/utils/platform';
|
||||
import { getContext, setContext } from 'svelte';
|
||||
import { GITHUB_STARS } from '$lib/constants';
|
||||
|
||||
export let variant: DocsLayoutVariant = 'default';
|
||||
export let isReferences = false;
|
||||
@@ -169,7 +170,7 @@
|
||||
>
|
||||
<span class="aw-icon-star" aria-hidden="true" />
|
||||
<span class="text">Star on GitHub</span>
|
||||
<span class="aw-inline-tag aw-sub-body-400">38.4K</span>
|
||||
<span class="aw-inline-tag aw-sub-body-400">{GITHUB_STARS}</span>
|
||||
</a>
|
||||
<a href="https://cloud.appwrite.io/console" class="aw-button">
|
||||
<span class="aw-sub-body-500">Go to console</span>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<script lang="ts">
|
||||
import { browser } from '$app/environment';
|
||||
import { MobileNav } from '$lib/components';
|
||||
import { BANNER_KEY } from '$lib/constants';
|
||||
import { BANNER_KEY, GITHUB_STARS } from '$lib/constants';
|
||||
import { isVisible } from '$lib/utils/isVisible';
|
||||
import { createScrollInfo } from '$lib/utils/scroll';
|
||||
import { hasNewChangelog } from '$routes/changelog/utils';
|
||||
@@ -240,11 +240,8 @@
|
||||
>
|
||||
<span aria-hidden="true" class="aw-icon-star" />
|
||||
<span class="text">Star on GitHub</span>
|
||||
<span class="aw-inline-tag aw-sub-body-400">38.4K</span>
|
||||
<span class="aw-inline-tag aw-sub-body-400">{GITHUB_STARS}</span>
|
||||
</a>
|
||||
<!-- <a href="https://cloud.appwrite.io/register" class="aw-button is-secondary"-->
|
||||
<!-- >Sign up</a-->
|
||||
<!-- >-->
|
||||
<a href="https://cloud.appwrite.io" class="aw-button">
|
||||
<span class="text">Get started</span>
|
||||
</a>
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
import { clickOutside } from '$lib/actions/clickOutside';
|
||||
|
||||
import Tooltip from '$lib/components/Tooltip.svelte';
|
||||
import { GITHUB_STARS } from '$lib/constants';
|
||||
import { layoutState, toggleSidenav } from './Docs.svelte';
|
||||
import SidebarNavButton from './SidebarNavButton.svelte';
|
||||
|
||||
@@ -125,7 +126,7 @@
|
||||
>
|
||||
<span class="aw-icon-star" aria-hidden="true" />
|
||||
<span class="text">Star on GitHub</span>
|
||||
<span class="aw-inline-tag aw-sub-body-400">38.4K</span>
|
||||
<span class="aw-inline-tag aw-sub-body-400">{GITHUB_STARS}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
import type { ProjectCardProps } from './ProjectCard.svelte';
|
||||
import ProjectCard from './ProjectCard.svelte';
|
||||
import MetricCard from '$lib/components/MetricCard.svelte';
|
||||
import { GITHUB_STARS } from '$lib/constants';
|
||||
|
||||
export let data;
|
||||
|
||||
@@ -179,7 +180,7 @@
|
||||
>
|
||||
<span aria-hidden="true" class="aw-icon-star" />
|
||||
<span>Star on GitHub</span>
|
||||
<span class="aw-inline-tag aw-sub-body-400">38.4K</span>
|
||||
<span class="aw-inline-tag aw-sub-body-400">{GITHUB_STARS}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user