Skip to content

Commit

Permalink
Sponsor promo page added (#2046)
Browse files Browse the repository at this point in the history
  • Loading branch information
endigo9740 authored Sep 26, 2023
1 parent b50f842 commit 9975453
Show file tree
Hide file tree
Showing 4 changed files with 580 additions and 29 deletions.
70 changes: 42 additions & 28 deletions sites/skeleton.dev/src/lib/components/DocsAppBar/DocsAppBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
const themes = [
{ type: 'skeleton', name: 'Skeleton', icon: '💀' },
{ type: 'wintry', name: 'Wintry', icon: '🌨️', badge: 'New' },
{ type: 'wintry', name: 'Wintry', icon: '🌨️' },
{ type: 'modern', name: 'Modern', icon: '🤖' },
{ type: 'rocket', name: 'Rocket', icon: '🚀' },
{ type: 'seafoam', name: 'Seafoam', icon: '🧜‍♀️' },
Expand Down Expand Up @@ -125,12 +125,12 @@
<span>Blog</span>
</a>
</li>
<li>
<!-- <li>
<a href="https://store.skeleton.dev" target="_blank">
<span class="w-6 text-center"><i class="fa-solid fa-shopping-cart" /></span>
<span>Skeleton Store</span>
</a>
</li>
</li> -->
<hr class="!my-4" />
<li>
<a href="/elements/core">
Expand Down Expand Up @@ -175,7 +175,8 @@
<nav class="list-nav p-4 -m-4 max-h-64 lg:max-h-[500px] overflow-y-auto">
<form action="/?/setTheme" method="POST" use:enhance={setTheme}>
<ul>
{#each themes as { icon, name, type, badge }}
<!-- , badge -->
{#each themes as { icon, name, type }}
<li>
<button
class="option w-full h-full"
Expand All @@ -186,7 +187,7 @@
>
<span>{icon}</span>
<span class="flex-auto text-left">{name}</span>
{#if badge}<span class="badge variant-filled-secondary">{badge}</span>{/if}
<!-- {#if badge}<span class="badge variant-filled-secondary">{badge}</span>{/if} -->
</button>
</li>
{/each}
Expand All @@ -195,7 +196,10 @@
</nav>
<hr />
<div>
<a class="btn variant-filled w-full" href="/docs/generator">Create a Theme</a>
<a class="btn variant-filled w-full" href="/docs/generator">
<i class="fa-solid fa-palette" />
<span>Create a Theme</span>
</a>
</div>
</div>
<!-- <div class="arrow bg-surface-100-800-token" /> -->
Expand All @@ -212,28 +216,38 @@
</button>
<!-- popup -->
<div class="card p-4 w-60 shadow-xl" data-popup="sponsor">
<nav class="list-nav">
<ul>
<li>
<a href="https://ko-fi.com/skeletonlabs" target="_blank" rel="noreferrer">
<span class="w-6 text-center"><i class="fa-solid fa-mug-saucer" /></span>
<span>Ko-Fi</span>
</a>
</li>
<li>
<a href="https://github.com/sponsors/skeletonlabs" target="_blank" rel="noreferrer">
<span class="w-6 text-center"><i class="fa-brands fa-github" /></span>
<span>GitHub</span>
</a>
</li>
<li>
<a href="https://patreon.com/user?u=83786276" target="_blank" rel="noreferrer">
<span class="w-6 text-center"><i class="fa-brands fa-patreon" /></span>
<span>Patreon</span>
</a>
</li>
</ul>
</nav>
<div class="space-y-4">
<nav class="list-nav">
<ul>
<li>
<a href="https://github.com/sponsors/skeletonlabs" target="_blank" rel="noreferrer">
<span class="w-6 text-center"><i class="fa-brands fa-github" /></span>
<span>GitHub</span>
</a>
</li>
<li>
<a href="https://ko-fi.com/skeletonlabs" target="_blank" rel="noreferrer">
<span class="w-6 text-center"><i class="fa-solid fa-mug-saucer" /></span>
<span>Ko-Fi</span>
</a>
</li>
<li>
<a href="https://patreon.com/user?u=83786276" target="_blank" rel="noreferrer">
<span class="w-6 text-center"><i class="fa-brands fa-patreon" /></span>
<span>Patreon</span>
</a>
</li>
</ul>
</nav>
<hr />
<div>
<a class="btn variant-filled w-full" href="/docs/sponsorship">
<i class="fa-solid fa-gift" />
<span>Incentives</span>
<span class="badge variant-filled-secondary">New</span>
</a>
</div>
</div>
<!-- <div class="arrow bg-surface-100-800-token" /> -->
</div>
</div>
Expand Down
8 changes: 7 additions & 1 deletion sites/skeleton.dev/src/lib/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ export const menuNavLinks: Record<string, Array<{ title: string; list: List }>>
list: [
{ href: '/docs/generator', label: 'Theme Generator', keywords: 'create, custom, style, css, design' },
{ href: '/docs/purgecss', label: 'PurgeCSS', keywords: 'purgecss, vite, tree, shaking, bundle, optimize' },
{ href: '/docs/contributing', label: 'Contributing', keywords: 'branch, pr' }
{ href: '/docs/contributing', label: 'Contributing', keywords: 'branch, pr' },
{
href: '/docs/sponsorship',
label: 'Sponsorship',
keywords: 'sponsor, funding, contribute, support, github, ko-fi, patreon',
badge: 'New'
}
]
}
],
Expand Down
Loading

0 comments on commit 9975453

Please sign in to comment.