-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c8eae0
commit 1b80d5d
Showing
5 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template> | ||
<div> | ||
<h4 class="text-base font-semibold mb-2">Premium sponsors</h4> | ||
</div> | ||
<a | ||
href="https://github.com/sponsors/privatenumber/sponsorships?pay_prorated=false&tier_id=388346" | ||
target="_blank" | ||
class="sponsor-placeholder" | ||
> | ||
Your logo + link here | ||
|
||
<button type="button" class="sponsor-button mt-4"> | ||
Become a sponsor | ||
</button> | ||
</a> | ||
</template> | ||
|
||
<style scoped> | ||
.sponsor-placeholder { | ||
@apply | ||
block | ||
border-2 | ||
border-dashed | ||
rounded | ||
py-6 | ||
text-center | ||
text-sm | ||
transition-colors | ||
text-zinc-500 | ||
border-zinc-400 | ||
hover:text-zinc-800 | ||
hover:border-zinc-700; | ||
} | ||
html.dark .sponsor-placeholder { | ||
@apply | ||
border-zinc-500 | ||
text-zinc-500 | ||
hover:border-zinc-200 | ||
hover:text-zinc-200; | ||
} | ||
.sponsor-button { | ||
@apply | ||
text-xs | ||
rounded-full | ||
bg-pink-500 | ||
text-white | ||
py-1 | ||
px-4; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
import { h } from 'vue'; | ||
import DefaultTheme from 'vitepress/theme'; | ||
import AsideSponsors from './components/AsideSponsors.vue'; | ||
import './styles.css'; | ||
|
||
export default DefaultTheme; | ||
export default { | ||
extends: DefaultTheme, | ||
Layout: () => h( | ||
DefaultTheme.Layout, | ||
null, | ||
{ | ||
'aside-ads-before': () => h(AsideSponsors), | ||
}, | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters