Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lib/components/shared/github-stats.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
href={SOCIAL_STATS.GITHUB.LINK}
target="_blank"
rel="noopener noreferrer"
class={className}
class={[className, 'is-github-stat-link'].filter(Boolean).join(' ')}
variant="secondary"
aria-label={`Appwrite on GitHub, ${SOCIAL_STATS.GITHUB.STAT} stars`}
>
<Icon name="star" aria-hidden="true" />
<span class="text">Star on GitHub</span>
<Icon name="github" aria-hidden="true" />
<InlineTag>{SOCIAL_STATS.GITHUB.STAT}</InlineTag>
</Button>
5 changes: 3 additions & 2 deletions src/lib/layouts/Docs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,10 @@
href={SOCIAL_STATS.GITHUB.LINK}
target="_blank"
rel="noopener noreferrer"
class="is-github-stat-link"
aria-label={`Appwrite on GitHub, ${SOCIAL_STATS.GITHUB.STAT} stars`}
>
<Icon name="star" aria-hidden="true"></Icon>
<span class="text">Star on GitHub</span>
<Icon name="github" aria-hidden="true"></Icon>
<InlineTag>{SOCIAL_STATS.GITHUB.STAT}</InlineTag>
</Button>
<IsLoggedIn />
Expand Down
8 changes: 5 additions & 3 deletions src/lib/layouts/Main.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,14 @@
href={isOfferPage ? undefined : SOCIAL_STATS.GITHUB.LINK}
target={isOfferPage ? undefined : '_blank'}
rel={isOfferPage ? undefined : 'noopener noreferrer'}
class="web-u-inline-width-100-percent-mobile"
class="web-u-inline-width-100-percent-mobile is-github-stat-link"
style={isOfferPage ? 'pointer-events: none;' : ''}
event={isOfferPage ? undefined : 'main-github_star_nav-click'}
aria-label={isOfferPage
? 'Appwrite on GitHub'
: `Appwrite on GitHub, ${SOCIAL_STATS.GITHUB.STAT} stars`}
>
<Icon name="star" aria-hidden="true" />
<span class="text">Star on GitHub</span>
<Icon name="github" aria-hidden="true" />
<InlineTag>{SOCIAL_STATS.GITHUB.STAT}</InlineTag>
</Button>
<IsLoggedIn offerButton={isOfferPage} />
Expand Down
6 changes: 3 additions & 3 deletions src/lib/layouts/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@
href={SOCIAL_STATS.GITHUB.LINK}
target="_blank"
rel="noopener noreferrer"
class="web-u-inline-width-100-percent-mobile"
class="web-u-inline-width-100-percent-mobile is-github-stat-link"
aria-label={`Appwrite on GitHub, ${SOCIAL_STATS.GITHUB.STAT} stars`}
>
<Icon class="star" aria-hidden />
<span class="text">Star on GitHub</span>
<Icon name="github" aria-hidden="true" />
<InlineTag>{SOCIAL_STATS.GITHUB.STAT}</InlineTag>
</Button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(marketing)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<Main>
<Hero title={data.heroTitle} subtitle={data.heroSubtitle} heroLayout={data.heroLayout} />
<Platforms headline="Designed for the tools you work with" />
<LogoList class="border-smooth border-b" title="Loved by startups and world leaders" />
<LogoList class="border-smooth border-b" title="Trusted by developer teams worldwide" />
<Bento />
<Pullquote
name="Phil McCluskey"
Expand Down
5 changes: 1 addition & 4 deletions src/routes/[variation]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@
{/if}

{#if config.showLogoList}
<LogoList
class="border-smooth border-b"
title="Loved by developers from the world's leading organizations"
/>
<LogoList class="border-smooth border-b" title="Trusted by developer teams worldwide" />
{/if}

{#if config.showBento}
Expand Down
6 changes: 3 additions & 3 deletions src/routes/community/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@
href={SOCIAL_STATS.GITHUB.LINK}
target="_blank"
rel="noopener noreferrer"
class="is-full-width-mobile"
class="is-full-width-mobile is-github-stat-link"
aria-label={`Appwrite on GitHub, ${SOCIAL_STATS.GITHUB.STAT} stars`}
>
<Icon name="star" aria-hidden="true" />
<span>Star on GitHub</span>
<Icon name="github" aria-hidden="true" />
<InlineTag>{SOCIAL_STATS.GITHUB.STAT}</InlineTag>
</Button>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/routes/products/messaging/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ messaging.create_email(
<span class="text-eyebrow text-primary uppercase">
Messaging<span class="web-u-color-text-accent">_</span>
</span>
<span class="web-hero-banner-button text-eyebrow uppercase">BETA</span>
</div>
<h1 class="text-display font-aeonik-pro text-primary">
Open source messaging service for developers
Expand Down
19 changes: 19 additions & 0 deletions src/scss/6-elements/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,23 @@
}
}
}
}

// GitHub repo control: icon + star count only (no text label)
.#{$p}-button.is-github-stat-link {
gap: pxToRem(6);
padding-inline: pxToRem(10);
min-inline-size: pxToRem(44);

& > svg {
flex-shrink: 0;
}

&.is-text > svg {
opacity: 0.72;
}

&.is-text:where(:hover, :active, [data-highlighted]):where(:not(#{$disabled})) > svg {
opacity: 1;
}
}
4 changes: 0 additions & 4 deletions src/scss/7-components/_main-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@
margin-inline-end: pxToRem(24);
}

.#{$p}-inline-tag {
display: none;
}

.#{$p}-button {
min-block-size: pxToRem(36);
padding-inline: pxToRem(12);
Expand Down
Loading