-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: replace astackblitz embeds for sandbox
- Loading branch information
1 parent
2c7a8e2
commit 5dc9e73
Showing
17 changed files
with
210 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
github: [alvarosabu] | ||
github: [tresjs, alvarosabu] | ||
ko_fi: alvarosaburido |
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
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,62 @@ | ||
<script setup lang="ts"> | ||
import { VPHomeSponsors } from 'vitepress/theme' | ||
import { useSponsor } from '../composables/sponsor' | ||
const { data } = useSponsor() | ||
</script> | ||
|
||
<template> | ||
<VPHomeSponsors | ||
v-if="data" | ||
message="TresJS is free and open source, made possible by wonderful sponsors." | ||
:data="data" | ||
/> | ||
<div class="action"> | ||
<a | ||
class="sponsor" | ||
href="https://github.com/sponsors/vitejs" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
Become a sponsor <i class="i-carbon-heart" /> | ||
</a> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.action { | ||
display: flex; | ||
justify-content: center; | ||
gap: 1rem; | ||
padding-top: 4rem; | ||
} | ||
.sponsor { | ||
/* .VPButton */ | ||
display: inline-block; | ||
border: 1px solid transparent; | ||
text-align: center; | ||
font-weight: 600; | ||
white-space: nowrap; | ||
transition: | ||
color 0.25s, | ||
border-color 0.25s, | ||
background-color 0.25s; | ||
/* .VPButton.medium */ | ||
border-radius: 20px; | ||
padding: 0 20px; | ||
line-height: 38px; | ||
font-size: 14px; | ||
/* .VPButton.sponsor */ | ||
border-color: var(--vp-button-sponsor-border); | ||
color: var(--vp-button-sponsor-text); | ||
background-color: var(--vp-button-sponsor-bg); | ||
} | ||
.sponsor:hover { | ||
/* .VPButton.sponsor:hover */ | ||
border-color: var(--vp-button-sponsor-hover-border); | ||
color: var(--vp-button-sponsor-hover-text); | ||
background-color: var(--vp-button-sponsor-hover-bg); | ||
} | ||
</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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ url: string }>() | ||
</script> | ||
|
||
<template> | ||
<iframe | ||
:src="url" | ||
class="w-full my-16 rounded shadow-lg outline-none border-none aspect-4/3" | ||
/> | ||
</template> |
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,20 @@ | ||
import { ref, onMounted } from 'vue' | ||
|
||
const data = ref() | ||
|
||
export function useSponsor() { | ||
onMounted(async () => { | ||
if (data.value) { | ||
return | ||
} | ||
/* | ||
const result = await fetch(dataUrl) | ||
const json = await result.json() */ | ||
|
||
data.value = [] | ||
}) | ||
|
||
return { | ||
data, | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.