-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): upgrade versions and add carbon ads
- Loading branch information
Showing
4 changed files
with
408 additions
and
913 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<script setup lang="ts"> | ||
const carbonads = ref(null) | ||
onMounted(() => { | ||
if (carbonads.value) { | ||
const script = document.createElement('script') | ||
script.setAttribute('type', 'text/javascript') | ||
script.setAttribute('src', 'https://cdn.carbonads.com/carbon.js?serve=CWYIPK7M&placement=imagenuxtcom') | ||
script.setAttribute('id', '_carbonads_js') | ||
carbonads.value.appendChild(script) | ||
} | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div ref="carbonads" class="carbon" /> | ||
</template> | ||
|
||
<style lang="postcss"> | ||
.carbon > #carbonads { | ||
@apply relative border border-gray-200 dark:border-gray-800 rounded-lg bg-white dark:bg-gray-800/50 hover:border-gray-300 dark:hover:border-gray-700 w-full transition-colors min-h-[220px]; | ||
&:hover { | ||
.carbon-text { | ||
@apply text-gray-700 dark:text-gray-200; | ||
} | ||
} | ||
.carbon-img { | ||
@apply flex justify-center p-2 w-full; | ||
& > img { | ||
@apply !max-w-full w-full rounded; | ||
} | ||
} | ||
.carbon-text { | ||
@apply flex px-2 text-sm text-gray-500 dark:text-gray-400 transition-colors text-center w-full; | ||
} | ||
.carbon-poweredby { | ||
@apply block text-xs text-center text-gray-400 dark:text-gray-500 hover:text-gray-500 dark:hover:text-gray-400 pt-1 pb-2 px-2 transition-colors; | ||
} | ||
} | ||
</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
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.