mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-06 21:07:44 +00:00
work
This commit is contained in:
@@ -14,10 +14,13 @@
|
|||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
primary: [
|
primary: [
|
||||||
"to-secondary-100 bg-gradient-to-br from-pink-500 via-pink-500",
|
"bg-gradient-to-br from-pink-500 via-pink-500 to-secondary-100",
|
||||||
"hover:shadow-[0_0_2rem_#fd366e52]",
|
"hover:shadow-[0_0_2rem_#fd366e52] active:not:disabled:shadow-[0_0_2rem_#fd366e52]",
|
||||||
|
],
|
||||||
|
secondary: [
|
||||||
|
"bg-[#fd366e0a] relative",
|
||||||
|
"hover:shadow-[0_-6px_10px_0px_rgba(253,54,110,0.08)_inset]",
|
||||||
],
|
],
|
||||||
secondary: ["bg-[#fd366e0a] relative"],
|
|
||||||
text: [
|
text: [
|
||||||
"bg-transparent border-transparent",
|
"bg-transparent border-transparent",
|
||||||
"hover:bg-gradient-to-b from-[#ffffff0f] via-[#ffffff1a] to-[#ffffff0f];",
|
"hover:bg-gradient-to-b from-[#ffffff0f] via-[#ffffff1a] to-[#ffffff0f];",
|
||||||
@@ -38,22 +41,25 @@
|
|||||||
const { class: classes, ...props } = $$restProps;
|
const { class: classes, ...props } = $$restProps;
|
||||||
|
|
||||||
const buttonClasses = classNames(button({ variant }), classes, {
|
const buttonClasses = classNames(button({ variant }), classes, {
|
||||||
gradient: variant === "secondary",
|
secondary: variant === "secondary",
|
||||||
|
"leading-tight": $$slots.icon,
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if href}
|
{#if href}
|
||||||
<a {...props} {href} class={buttonClasses}>
|
<a {...props} {href} class={buttonClasses}>
|
||||||
|
<slot name="icon" />
|
||||||
<slot />
|
<slot />
|
||||||
</a>
|
</a>
|
||||||
{:else}
|
{:else}
|
||||||
<button {...props} class={buttonClasses}>
|
<button {...props} class={buttonClasses}>
|
||||||
|
<slot name="icon" />
|
||||||
<slot />
|
<slot />
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.gradient {
|
.secondary {
|
||||||
--border-gradient-before: linear-gradient(
|
--border-gradient-before: linear-gradient(
|
||||||
to bottom,
|
to bottom,
|
||||||
rgba(253, 54, 110, 0.48) 0%,
|
rgba(253, 54, 110, 0.48) 0%,
|
||||||
|
|||||||
@@ -19,13 +19,12 @@
|
|||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<slot name="icon" />
|
<slot name="icon" />
|
||||||
{label}
|
|
||||||
{name}
|
|
||||||
<input
|
<input
|
||||||
on:input
|
on:input
|
||||||
on:change
|
on:change
|
||||||
on:focus
|
on:focus
|
||||||
on:blur
|
on:blur
|
||||||
|
{name}
|
||||||
bind:value
|
bind:value
|
||||||
class="w-full border-0 ring-0 outline-none"
|
class="w-full border-0 ring-0 outline-none"
|
||||||
{...props}
|
{...props}
|
||||||
@@ -42,7 +41,7 @@
|
|||||||
on:blur
|
on:blur
|
||||||
bind:value
|
bind:value
|
||||||
class={classNames(
|
class={classNames(
|
||||||
"focus:border-greyscale-100 bg-greyscale-800 border-greyscale-700 flex items-center gap-1 rounded-lg border py-2 px-3 text-sm font-light transition-colors focus-within:border-white active:shadow-sm active:shadow-black/30",
|
"focus:border-greyscale-100 bg-greyscale-800 border-greyscale-700 mt-2 flex items-center gap-1 rounded-lg border py-2 px-3 text-sm font-light transition-colors focus-within:border-white active:shadow-sm active:shadow-black/30",
|
||||||
classes,
|
classes,
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
import DeveloperCard from "./DeveloperCard.svelte";
|
import DeveloperCard from "./DeveloperCard.svelte";
|
||||||
import { PUBLIC_APPWRITE_DASHBOARD } from "$env/static/public";
|
import { PUBLIC_APPWRITE_DASHBOARD } from "$env/static/public";
|
||||||
import CoverImage from "./dashboard.png";
|
import CoverImage from "./dashboard.png";
|
||||||
|
import Button from "$lib/components/ui/Button.svelte";
|
||||||
|
|
||||||
const title = "Appwrite - Build like a team of hundreds";
|
const title = "Appwrite - Build like a team of hundreds";
|
||||||
const description = DEFAULT_DESCRIPTION;
|
const description = DEFAULT_DESCRIPTION;
|
||||||
@@ -146,12 +147,12 @@
|
|||||||
Databases, Functions, Storage, and Messaging to your projects
|
Databases, Functions, Storage, and Messaging to your projects
|
||||||
using the frameworks and languages of your choice.
|
using the frameworks and languages of your choice.
|
||||||
</p>
|
</p>
|
||||||
<a
|
<Button
|
||||||
href={PUBLIC_APPWRITE_DASHBOARD}
|
href={PUBLIC_APPWRITE_DASHBOARD}
|
||||||
class="web-button is-full-width-mobile mt-8"
|
class="mt-8 w-full lg:w-fit"
|
||||||
>
|
>
|
||||||
<span class="text">Get started</span>
|
Get started
|
||||||
</a>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -460,13 +461,9 @@
|
|||||||
ensuring you can code with the language you want at any time.
|
ensuring you can code with the language you want at any time.
|
||||||
</p>
|
</p>
|
||||||
<Technologies />
|
<Technologies />
|
||||||
<a
|
<Button href="/docs/sdks" variant="secondary"
|
||||||
href="/docs/sdks"
|
>Explore all SDKs</Button
|
||||||
class="web-button is-secondary"
|
|
||||||
style:align-self="start"
|
|
||||||
>
|
>
|
||||||
<span class="web-sub-body-500">Explore all SDKs</span>
|
|
||||||
</a>
|
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -131,7 +131,13 @@
|
|||||||
placeholder="Search"
|
placeholder="Search"
|
||||||
bind:value={$query}
|
bind:value={$query}
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
></Input>
|
>
|
||||||
|
<span
|
||||||
|
class="web-icon-search"
|
||||||
|
aria-hidden="true"
|
||||||
|
slot="icon"
|
||||||
|
/></Input
|
||||||
|
>
|
||||||
|
|
||||||
<!-- <label
|
<!-- <label
|
||||||
class="web-input-button focus:border-greyscale-100 web-flex-basis-400"
|
class="web-input-button focus:border-greyscale-100 web-flex-basis-400"
|
||||||
|
|||||||
Reference in New Issue
Block a user