File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <script setup lang="ts">
2+ const carbonads = ref (null )
3+
4+ onMounted (() => {
5+ if (carbonads .value ) {
6+ const script = document .createElement (' script' )
7+ script .setAttribute (' type' , ' text/javascript' )
8+ script .setAttribute (' src' , ' https://cdn.carbonads.com/carbon.js?serve=CWYIPK7W&placement=contentnuxtcom' )
9+ script .setAttribute (' id' , ' _carbonads_js' )
10+ carbonads .value .appendChild (script )
11+ }
12+ })
13+ </script >
14+
15+ <template >
16+ <div ref =" carbonads" class =" carbon" />
17+ </template >
18+
19+ <style lang="postcss">
20+ .carbon > #carbonads {
21+ @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-[220 px ];
22+
23+ &:hover {
24+ .carbon-text {
25+ @apply text-gray-700 dark :text-gray-200;
26+ }
27+ }
28+
29+ .carbon-img {
30+ @apply flex justify-center p-2 w-full;
31+
32+ & > img {
33+ @apply ! max-w-full w-full rounded;
34+ }
35+ }
36+
37+ .carbon-text {
38+ @apply flex px-2 text-sm text-gray-500 dark :text-gray-400 transition-colors text-center w-full;
39+ }
40+
41+ .carbon-poweredby {
42+ @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;
43+ }
44+ }
45+ </style >
Original file line number Diff line number Diff line change @@ -91,10 +91,12 @@ const ecosystemLinks = [
9191 <UDocsToc :links =" page .body .toc .links " >
9292 <template #bottom >
9393 <div class =" hidden !mt-6 lg:block space-y-6" >
94- <UDivider v-if =" page .body ?.toc ?.links ?.length " dashed />
94+ <UDivider v-if =" page .body ?.toc ?.links ?.length " type=" dashed" />
9595 <UPageLinks title="Community" :links =" communityLinks " />
96- <UDivider dashed />
96+ <UDivider type=" dashed" />
9797 <UPageLinks title="Ecosystem" :links =" ecosystemLinks " />
98+ <UDivider type="dashed" />
99+ <AdsCarbon />
98100 </div >
99101 </template >
100102 </UDocsToc >
You can’t perform that action at this time.
0 commit comments