Skip to content

Commit

Permalink
Merge pull request #1312 from appwrite/typefixes
Browse files Browse the repository at this point in the history
couple little guys
  • Loading branch information
thejessewinton authored Sep 9, 2024
2 parents 1a246bc + cb2da40 commit 35ab5da
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 26 deletions.
14 changes: 7 additions & 7 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@

/* Letter spacing */
--letter-spacing-*: initial;
--letter-spacing-compressed: -0.022rem;
--letter-spacing-squeezed: -0.01rem;
--letter-spacing-tighter: -0.018rem;
--letter-spacing-tight: -0.0045rem;
--letter-spacing-none: 0rem;
--letter-spacing-loose: 0.08rem;
--letter-spacing-compressed: -0.022em;
--letter-spacing-squeezed: -0.01em;
--letter-spacing-tighter: -0.018em;
--letter-spacing-tight: -0.0045em;
--letter-spacing-none: 0em;
--letter-spacing-loose: 0.08em;
}

/* Themes */
Expand Down Expand Up @@ -163,6 +163,6 @@
/* Container */
@layer components {
.container {
@apply mx-auto box-content max-w-[75rem] px-8;
@apply mx-auto box-content max-w-[75rem] px-5;
}
}
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
%sveltekit.head%
</head>

<body class="dark group/body" data-sveltekit-preload-data="hover">
<body class="dark group/body antialiased" data-sveltekit-preload-data="hover">
<script>
// Theme
const isDocs = window.location.pathname.startsWith('/docs');
Expand Down
2 changes: 1 addition & 1 deletion src/lib/animations/Products/Products.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
>
{#if scrollInfo.percentage > -0.1}
<span
class="web-badges text-micro uppercase text-white"
class="web-badges text-micro uppercase !text-white"
transition:slide={{ axis: 'x' }}>Products_</span
>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/animations/Products/ProductsMobile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<div class="outside">
<div class="wrapper">
<span class="web-badges text-micro uppercase text-white">Products_</span>
<span class="web-badges text-micro uppercase !text-white">Products_</span>

<h2 class="text-display font-aeonik-pro text-primary mt-4">
Your backend, minus the hassle
Expand Down
4 changes: 3 additions & 1 deletion src/lib/components/Accordion/Item.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

<li class="collapsible-item">
<details class="collapsible-wrapper group" {open}>
<summary class="collapsible-button flex cursor-pointer items-center justify-between">
<summary
class="collapsible-button flex cursor-pointer list-none appearance-none items-center justify-between marker:hidden [&::-webkit-details-marker]:hidden"
>
<span class="text">{title}</span>
<div class="icon text-primary transition-transform group-[&[open]]:rotate-180">
<span class="icon-cheveron-down" aria-hidden="true" />
Expand Down
8 changes: 6 additions & 2 deletions src/lib/components/IsLoggedIn.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<script lang="ts">
import Button from './ui/Button.svelte';
import { PUBLIC_APPWRITE_DASHBOARD } from '$env/static/public';
import { classNames } from '$lib/utils/classnames';
export let classes = '';
</script>

<Button class={classes} href={PUBLIC_APPWRITE_DASHBOARD}>
<a
class={classNames('web-button web-u-inline-width-100-percent-mobile', classes)}
href={PUBLIC_APPWRITE_DASHBOARD}
>
<span class="hidden group-[&[data-logged-in]]/body:block">Go to Console</span>
<span class="block group-[&[data-logged-in]]/body:hidden">Get started</span>
</Button>
</a>
2 changes: 1 addition & 1 deletion src/lib/layouts/DocsArticle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
/>
</a>
{/if}
<h1 class="text-title font-aeonik-pro">{title}</h1>
<h1 class="text-title font-aeonik-pro text-primary">{title}</h1>
</div>
</div>
<div class="web-article-header-end" />
Expand Down
2 changes: 1 addition & 1 deletion src/markdoc/nodes/Heading.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
const ctx = hasContext('headings') ? getContext<LayoutContext>('headings') : undefined;
const classList: Record<typeof level, string> = {
1: 'text-label mb-4 mt-8',
2: 'text-description',
2: 'text-description mb-4',
3: 'text-body font-medium',
4: 'text-sub-body font-medium'
};
Expand Down
14 changes: 7 additions & 7 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@
Functions, Storage, and Messaging to your projects using the frameworks
and languages of your choice.
</svelte:fragment>
<Button
<a
href={PUBLIC_APPWRITE_DASHBOARD}
class="mt-8 w-full lg:w-fit"
class="web-button mt-8 w-full lg:w-fit"
slot="cta"
>
Get started
</Button>
</a>
</Hero>
</section>
</div>
Expand All @@ -170,7 +170,7 @@
<div class="mb-12 lg:my-[7.5rem]">
<div class="container">
<h2
class="text-title font-aeonik-pro text-primary text-center web-u-max-width-600 mx-auto"
class="text-title font-aeonik-pro text-primary web-u-max-width-600 mx-auto text-center"
>
Trusted by developers from the world's leading organizations
</h2>
Expand Down Expand Up @@ -303,10 +303,10 @@
</section>
<div class="mt-20 overflow-hidden">
<ul
class="web-info-boxes text-sub-body font-medium divide-x divide-y divide-black/[0.04]"
class="web-info-boxes text-sub-body divide-x divide-y divide-black/[0.04] font-medium"
>
{#each infoBoxes as box}
<li class="relative p-8 last-of-type:border-r border-black/[0.04]">
<li class="relative border-black/[0.04] p-8 last-of-type:border-r">
<img src={box.icon} width="40" height="40" alt="" />
<h3
class="text-primary mt-4 flex flex-wrap items-baseline gap-3"
Expand Down Expand Up @@ -450,7 +450,7 @@
you can code with the language you want at any time.
</p>
<Technologies />
<Button href="/docs/sdks" variant="secondary">Explore all SDKs</Button>
<a href="/docs/sdks" class="web-button is-secondary">Explore all SDKs</a>
</section>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/pricing/faq.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
class="flex w-full items-center justify-between gap-2.5 py-6 text-left"
use:melt={$trigger(`${index}`)}
>
<span class="text-label text-primary">
<span class="text-label font-aeonik-pro text-primary">
{faqItem.question}
</span>
<div
Expand All @@ -115,7 +115,7 @@
</div>
{:else}
<details class="collapsible-wrapper" open={index === 0}>
<summary class="collapsible-button">
<summary class="collapsible-button appearance-none">
<span class="text-label text-primary">
{faqItem.question}
</span>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/startups/faq.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
class="flex w-full items-center justify-between gap-2.5 py-6 text-left"
use:melt={$trigger(`${index}`)}
>
<span class="text-label text-primary">
<span class="text-label font-aeonik-pro text-primary">
{faqItem.question}
</span>
<div
Expand All @@ -120,7 +120,7 @@
</div>
{:else}
<details class="collapsible-wrapper" open={index === 0}>
<summary class="collapsible-button">
<summary class="collapsible-button appearance-none">
<span class="text-label text-primary">
{faqItem.question}
</span>
Expand Down

0 comments on commit 35ab5da

Please sign in to comment.