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=CWYIPK7M&placement=imagenuxtcom' )
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 1111 "dependencies" : {
1212 "@iconify-json/ph" : " ^1.1.10" ,
1313 "@iconify-json/simple-icons" : " ^1.1.88" ,
14- "@nuxt/content" : " ^2.9 .0" ,
14+ "@nuxt/content" : " ^2.10 .0" ,
1515 "@nuxt/image" : " link:.." ,
16- "@nuxt/ui-pro" : " ^0.5.0 " ,
17- "@nuxthq/studio" : " ^1.0.5 " ,
16+ "@nuxt/ui-pro" : " npm:@nuxt/ui-pro-edge@latest " ,
17+ "@nuxthq/studio" : " ^1.0.6 " ,
1818 "@nuxtjs/fontaine" : " ^0.4.1" ,
1919 "@nuxtjs/google-fonts" : " ^3.1.3" ,
2020 "@nuxtjs/plausible" : " ^0.2.4" ,
Original file line number Diff line number Diff line change @@ -78,8 +78,10 @@ const communityLinks = computed(() => [
7878 <UDocsToc :links =" page .body .toc .links " >
7979 <template #bottom >
8080 <div class =" hidden lg:block space-y-6 !mt-6" >
81- <UDivider v-if =" page .body ?.toc ?.links ?.length " dashed />
81+ <UDivider v-if =" page .body ?.toc ?.links ?.length " type=" dashed" />
8282 <UPageLinks title="Community" :links =" communityLinks " />
83+ <UDivider type="dashed" />
84+ <AdsCarbon />
8385 </div >
8486 </template >
8587 </UDocsToc >
You can’t perform that action at this time.
0 commit comments