nuxt-og-image 5.1.12 → 6.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/README.md +2 -2
  2. package/bin/cli.mjs +2 -0
  3. package/dist/chunks/tw4-classes.cjs +116 -0
  4. package/dist/chunks/tw4-classes.mjs +113 -0
  5. package/dist/chunks/tw4-generator.cjs +118 -0
  6. package/dist/chunks/tw4-generator.mjs +110 -0
  7. package/dist/cli.cjs +333 -0
  8. package/dist/cli.d.cts +1 -0
  9. package/dist/cli.d.mts +1 -0
  10. package/dist/cli.d.ts +1 -0
  11. package/dist/cli.mjs +330 -0
  12. package/dist/client/200.html +1 -1
  13. package/dist/client/404.html +1 -1
  14. package/dist/client/_fonts/0xp3SbCWC1OhX7q1-uF6kilMZFm-alJNkUtkLTPCy_A-tN9KwPUWhhXvtqh74sU9FIkI4W6hsbm85r0X24hjOfM.woff2 +0 -0
  15. package/dist/client/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-D6hedAgqRfOCLZzaShnyeAvlEnMzk4Wm7g9WDKWFHIc.woff +0 -0
  16. package/dist/client/_fonts/4HA9tc4y8BVQeLXvLn3JgQqilAj1xrAnUSprQGHIPSw-ZPswEL_UDOYaxTLQDUySPjoOHDxhD83pD19HMfKfK9s.woff2 +0 -0
  17. package/dist/client/_fonts/Bmul3LaKlc7BUKqJHE_UmEoF40Sg_2ga52yJjwyDcKs-TnYmYl1DNYkiWMu0Vx49DakCPBuiCCj9zoLIuQjUdKY.woff2 +0 -0
  18. package/dist/client/_fonts/DfgmjWGpWte3Q3a54Nevr_BYmMM5YEJXRI1CdI2VwO0-ox5RadQfCyVTmKl_hubTaIJjtRw9oaQz2GDBeZR6l1M.woff2 +0 -0
  19. package/dist/client/_fonts/Lc_5lWuBuZcZ166p1-s-mnGkMJwIYJE_QDCkws8iCkI-r45Qbm2hCykrfOZ0kowz__uTTTUOPDN9hz34QcRNTY4.woff2 +0 -0
  20. package/dist/client/_fonts/iEvApgDRmzKzNqOYocBTrmcHZmuGAJloawKDP1S0nyE-T3oc_9We24QGwfw5naik4cM0g7VxylWVaQwKm4dy3cw.woff2 +0 -0
  21. package/dist/client/_nuxt/0kYTU2a7.js +2 -0
  22. package/dist/client/_nuxt/B0QDx5EE.js +2 -0
  23. package/dist/client/_nuxt/BKqzYw6x.js +3 -0
  24. package/dist/client/_nuxt/C-Ivr2Rl.js +1 -0
  25. package/dist/client/_nuxt/CLgn8DCr.js +1 -0
  26. package/dist/client/_nuxt/CwWm-XE3.js +1 -0
  27. package/dist/client/_nuxt/D9eL2h5z.js +1 -0
  28. package/dist/client/_nuxt/DJXHIJSq.js +1 -0
  29. package/dist/client/_nuxt/DVnX3Z-O.js +1 -0
  30. package/dist/client/_nuxt/DXObZt09.js +184 -0
  31. package/dist/client/_nuxt/Dxi6QG7I.js +1 -0
  32. package/dist/client/_nuxt/E8AZ6HoH.js +1 -0
  33. package/dist/client/_nuxt/IFrameLoader.CGrV1TpP.css +1 -0
  34. package/dist/client/_nuxt/JAMwWy1K.js +3864 -0
  35. package/dist/client/_nuxt/OSectionBlock.BVHnMsIr.css +1 -0
  36. package/dist/client/_nuxt/PONEy9N-.js +1 -0
  37. package/dist/client/_nuxt/UdkqSAsD.js +1 -0
  38. package/dist/client/_nuxt/builds/latest.json +1 -1
  39. package/dist/client/_nuxt/builds/meta/5205806b-8e5a-41ea-90c0-9cd83a75fc0a.json +1 -0
  40. package/dist/client/_nuxt/entry.BEExJd9R.css +2 -0
  41. package/dist/client/_nuxt/error-404.B79WD2X-.css +1 -0
  42. package/dist/client/_nuxt/error-500.DT3Sd0Wu.css +1 -0
  43. package/dist/client/_nuxt/pages.eW3hi7XF.css +1 -0
  44. package/dist/client/_nuxt/templates.dUiUBaip.css +1 -0
  45. package/dist/client/_payload.json +1 -0
  46. package/dist/client/debug/_payload.json +1 -0
  47. package/dist/client/debug/index.html +1 -0
  48. package/dist/client/docs/_payload.json +1 -0
  49. package/dist/client/docs/index.html +1 -0
  50. package/dist/client/fonts/HubotSans-Regular.woff2 +0 -0
  51. package/dist/client/index.html +1 -1
  52. package/dist/client/templates/_payload.json +1 -0
  53. package/dist/client/templates/index.html +1 -0
  54. package/dist/content.cjs +6 -6
  55. package/dist/content.d.cts +13 -13
  56. package/dist/content.d.mts +13 -13
  57. package/dist/content.d.ts +13 -13
  58. package/dist/content.mjs +1 -1
  59. package/dist/module.cjs +36 -1025
  60. package/dist/module.d.cts +63 -23
  61. package/dist/module.d.mts +63 -23
  62. package/dist/module.d.ts +63 -23
  63. package/dist/module.json +1 -1
  64. package/dist/module.mjs +32 -1007
  65. package/dist/runtime/app/components/Templates/Community/Brutalist.satori.d.vue.ts +14 -0
  66. package/dist/runtime/app/components/Templates/Community/Brutalist.satori.vue +51 -0
  67. package/dist/runtime/app/components/Templates/Community/Brutalist.satori.vue.d.ts +14 -0
  68. package/dist/runtime/app/components/Templates/Community/{Frame.vue.d.ts → Frame.satori.d.vue.ts} +2 -2
  69. package/dist/runtime/app/components/Templates/Community/Frame.satori.vue +71 -0
  70. package/dist/runtime/app/components/Templates/Community/{Frame.d.vue.ts → Frame.satori.vue.d.ts} +2 -2
  71. package/dist/runtime/app/components/Templates/Community/Newspaper.satori.d.vue.ts +12 -0
  72. package/dist/runtime/app/components/Templates/Community/Newspaper.satori.vue +70 -0
  73. package/dist/runtime/app/components/Templates/Community/Newspaper.satori.vue.d.ts +12 -0
  74. package/dist/runtime/app/components/Templates/Community/Nuxt.satori.d.vue.ts +12 -0
  75. package/dist/runtime/app/components/Templates/Community/{Nuxt.vue → Nuxt.satori.vue} +3 -3
  76. package/dist/runtime/app/components/Templates/Community/Nuxt.satori.vue.d.ts +12 -0
  77. package/dist/runtime/app/components/Templates/Community/NuxtSeo.satori.d.vue.ts +12 -0
  78. package/dist/runtime/app/components/Templates/Community/NuxtSeo.satori.vue +69 -0
  79. package/dist/runtime/app/components/Templates/Community/NuxtSeo.satori.vue.d.ts +12 -0
  80. package/dist/runtime/app/components/Templates/Community/Pergel.satori.d.vue.ts +12 -0
  81. package/dist/runtime/app/components/Templates/Community/{Pergel.vue → Pergel.satori.vue} +14 -11
  82. package/dist/runtime/app/components/Templates/Community/Pergel.satori.vue.d.ts +12 -0
  83. package/dist/runtime/app/components/Templates/Community/Retro.satori.d.vue.ts +12 -0
  84. package/dist/runtime/app/components/Templates/Community/Retro.satori.vue +64 -0
  85. package/dist/runtime/app/components/Templates/Community/Retro.satori.vue.d.ts +12 -0
  86. package/dist/runtime/app/components/Templates/Community/SaaS.satori.d.vue.ts +12 -0
  87. package/dist/runtime/app/components/Templates/Community/SaaS.satori.vue +60 -0
  88. package/dist/runtime/app/components/Templates/Community/SaaS.satori.vue.d.ts +12 -0
  89. package/dist/runtime/app/components/Templates/Community/SimpleBlog.satori.d.vue.ts +9 -0
  90. package/dist/runtime/app/components/Templates/Community/SimpleBlog.satori.vue +38 -0
  91. package/dist/runtime/app/components/Templates/Community/SimpleBlog.satori.vue.d.ts +9 -0
  92. package/dist/runtime/app/components/Templates/Community/{UnJs.d.vue.ts → UnJs.satori.d.vue.ts} +2 -2
  93. package/dist/runtime/app/components/Templates/Community/{UnJs.vue → UnJs.satori.vue} +41 -33
  94. package/dist/runtime/app/components/Templates/Community/{UnJs.vue.d.ts → UnJs.satori.vue.d.ts} +2 -2
  95. package/dist/runtime/app/components/Templates/Community/WithEmoji.satori.d.vue.ts +13 -0
  96. package/dist/runtime/app/components/Templates/Community/WithEmoji.satori.vue +27 -0
  97. package/dist/runtime/app/components/Templates/Community/WithEmoji.satori.vue.d.ts +13 -0
  98. package/dist/runtime/app/composables/_defineOgImageRaw.d.ts +6 -0
  99. package/dist/runtime/app/composables/_defineOgImageRaw.js +70 -0
  100. package/dist/runtime/app/composables/defineOgImage.d.ts +14 -2
  101. package/dist/runtime/app/composables/defineOgImage.js +13 -42
  102. package/dist/runtime/app/composables/defineOgImageComponent.d.ts +5 -1
  103. package/dist/runtime/app/composables/defineOgImageComponent.js +4 -5
  104. package/dist/runtime/app/composables/defineOgImageScreenshot.d.ts +1 -1
  105. package/dist/runtime/app/composables/defineOgImageScreenshot.js +2 -2
  106. package/dist/runtime/app/composables/mock.d.ts +7 -4
  107. package/dist/runtime/app/composables/mock.js +4 -4
  108. package/dist/runtime/app/utils/plugins.js +22 -28
  109. package/dist/runtime/app/utils.d.ts +15 -1
  110. package/dist/runtime/app/utils.js +74 -46
  111. package/dist/runtime/pure.d.ts +7 -0
  112. package/dist/runtime/pure.js +105 -0
  113. package/dist/runtime/server/og-image/bindings/css-inline/wasm-fs.d.ts +3 -2
  114. package/dist/runtime/server/og-image/bindings/css-inline/wasm.d.ts +3 -2
  115. package/dist/runtime/server/og-image/bindings/font-assets/cloudflare.d.ts +3 -0
  116. package/dist/runtime/server/og-image/bindings/font-assets/cloudflare.js +22 -0
  117. package/dist/runtime/server/og-image/bindings/font-assets/dev-prerender.d.ts +3 -0
  118. package/dist/runtime/server/og-image/bindings/font-assets/dev-prerender.js +49 -0
  119. package/dist/runtime/server/og-image/bindings/font-assets/node.d.ts +3 -0
  120. package/dist/runtime/server/og-image/bindings/font-assets/node.js +14 -0
  121. package/dist/runtime/server/og-image/bindings/resvg/node-dev.d.ts +5 -0
  122. package/dist/runtime/server/og-image/bindings/resvg/node-dev.js +70 -0
  123. package/dist/runtime/server/og-image/bindings/satori/wasm-fs.d.ts +1 -1
  124. package/dist/runtime/server/og-image/bindings/satori/wasm-fs.js +4 -8
  125. package/dist/runtime/server/og-image/bindings/satori/wasm.d.ts +1 -1
  126. package/dist/runtime/server/og-image/bindings/satori/wasm.js +4 -9
  127. package/dist/runtime/server/og-image/bindings/takumi/node.d.ts +6 -0
  128. package/dist/runtime/server/og-image/bindings/takumi/node.js +5 -0
  129. package/dist/runtime/server/og-image/bindings/takumi/wasm.d.ts +6 -0
  130. package/dist/runtime/server/og-image/bindings/takumi/wasm.js +6 -0
  131. package/dist/runtime/server/og-image/cache/buildCache.d.ts +16 -0
  132. package/dist/runtime/server/og-image/cache/buildCache.js +48 -0
  133. package/dist/runtime/server/og-image/cache/lru.d.ts +2 -2
  134. package/dist/runtime/server/og-image/cache/lru.js +3 -3
  135. package/dist/runtime/server/og-image/cache/mock.d.ts +1 -2
  136. package/dist/runtime/server/og-image/cache/mock.js +0 -1
  137. package/dist/runtime/server/og-image/chromium/screenshot.js +4 -3
  138. package/dist/runtime/server/og-image/context.d.ts +2 -3
  139. package/dist/runtime/server/og-image/context.js +56 -195
  140. package/dist/runtime/server/og-image/devtools.d.ts +10 -0
  141. package/dist/runtime/server/og-image/devtools.js +74 -0
  142. package/dist/runtime/server/og-image/fonts.d.ts +6 -0
  143. package/dist/runtime/server/og-image/fonts.js +41 -0
  144. package/dist/runtime/server/og-image/instances.d.ts +1 -0
  145. package/dist/runtime/server/og-image/instances.js +5 -0
  146. package/dist/runtime/server/og-image/satori/instances.d.ts +1 -36
  147. package/dist/runtime/server/og-image/satori/plugins/emojis.js +83 -4
  148. package/dist/runtime/server/og-image/satori/plugins/encoding.js +11 -1
  149. package/dist/runtime/server/og-image/satori/plugins/imageSrc.js +5 -1
  150. package/dist/runtime/server/og-image/satori/plugins/twClasses.js +35 -0
  151. package/dist/runtime/server/og-image/satori/renderer.js +16 -53
  152. package/dist/runtime/server/og-image/satori/transforms/emojis/emoji-names-minimal.d.ts +1 -0
  153. package/dist/runtime/server/og-image/satori/transforms/emojis/emoji-names-minimal.js +223 -0
  154. package/dist/runtime/server/og-image/satori/transforms/emojis/emoji-utils.d.ts +45 -0
  155. package/dist/runtime/server/og-image/satori/transforms/emojis/emoji-utils.js +13 -0
  156. package/dist/runtime/server/og-image/satori/transforms/emojis/fetch.d.ts +6 -0
  157. package/dist/runtime/server/og-image/satori/transforms/emojis/fetch.js +38 -0
  158. package/dist/runtime/server/og-image/satori/transforms/emojis/index.d.ts +7 -0
  159. package/dist/runtime/server/og-image/satori/transforms/emojis/index.js +64 -0
  160. package/dist/runtime/server/og-image/satori/transforms/emojis/local.d.ts +7 -0
  161. package/dist/runtime/server/og-image/satori/transforms/emojis/local.js +32 -0
  162. package/dist/runtime/server/og-image/satori/utils.js +5 -4
  163. package/dist/runtime/server/og-image/satori/vnodes.js +7 -6
  164. package/dist/runtime/server/og-image/takumi/instances.d.ts +1 -0
  165. package/dist/runtime/server/og-image/takumi/instances.js +6 -0
  166. package/dist/runtime/server/og-image/takumi/nodes.d.ts +12 -0
  167. package/dist/runtime/server/og-image/takumi/nodes.js +86 -0
  168. package/dist/runtime/server/og-image/takumi/renderer.d.ts +3 -0
  169. package/dist/runtime/server/og-image/takumi/renderer.js +45 -0
  170. package/dist/runtime/server/og-image/templates/html.js +32 -23
  171. package/dist/runtime/server/plugins/prerender.d.ts +1 -1
  172. package/dist/runtime/server/plugins/prerender.js +17 -7
  173. package/dist/runtime/server/util/auto-eject.d.ts +2 -0
  174. package/dist/runtime/server/util/auto-eject.js +30 -0
  175. package/dist/runtime/server/util/eventHandlers.d.ts +0 -1
  176. package/dist/runtime/server/util/eventHandlers.js +15 -85
  177. package/dist/runtime/server/util/options.d.ts +7 -2
  178. package/dist/runtime/server/util/options.js +40 -6
  179. package/dist/runtime/server/util/wasm.d.ts +1 -1
  180. package/dist/runtime/server/utils.d.ts +6 -2
  181. package/dist/runtime/server/utils.js +12 -8
  182. package/dist/runtime/shared/urlEncoding.d.ts +64 -0
  183. package/dist/runtime/shared/urlEncoding.js +194 -0
  184. package/dist/runtime/shared.d.ts +4 -9
  185. package/dist/runtime/shared.js +31 -50
  186. package/dist/runtime/types.d.ts +71 -25
  187. package/dist/shared/nuxt-og-image.DroaQ3v-.cjs +2852 -0
  188. package/dist/shared/nuxt-og-image.HMyihp-D.mjs +2825 -0
  189. package/dist/types.d.mts +2 -0
  190. package/package.json +119 -56
  191. package/types/virtual.d.ts +7 -1
  192. package/dist/client/_nuxt/B8PEiB0p.js +0 -1
  193. package/dist/client/_nuxt/CD9VIl4i.js +0 -4062
  194. package/dist/client/_nuxt/CI_lqgv7.js +0 -1
  195. package/dist/client/_nuxt/CVO1_9PV.js +0 -1
  196. package/dist/client/_nuxt/Cp-IABpG.js +0 -1
  197. package/dist/client/_nuxt/D0r3Knsf.js +0 -1
  198. package/dist/client/_nuxt/Dz8kdfgF.js +0 -1
  199. package/dist/client/_nuxt/builds/meta/71b0f7ea-9aae-4c28-bbd9-8eea71b82dfb.json +0 -1
  200. package/dist/client/_nuxt/entry.DNM8P-MU.css +0 -1
  201. package/dist/client/_nuxt/error-404.C2mGI6Vt.css +0 -1
  202. package/dist/client/_nuxt/error-500.ClHbVBiL.css +0 -1
  203. package/dist/client/_nuxt/l5rcX3cq.js +0 -8
  204. package/dist/runtime/app/components/OgImage/OgImage.d.ts +0 -3
  205. package/dist/runtime/app/components/OgImage/OgImage.js +0 -10
  206. package/dist/runtime/app/components/Templates/Community/BrandedLogo.d.vue.ts +0 -13
  207. package/dist/runtime/app/components/Templates/Community/BrandedLogo.vue +0 -22
  208. package/dist/runtime/app/components/Templates/Community/BrandedLogo.vue.d.ts +0 -13
  209. package/dist/runtime/app/components/Templates/Community/Frame.vue +0 -58
  210. package/dist/runtime/app/components/Templates/Community/Nuxt.d.vue.ts +0 -12
  211. package/dist/runtime/app/components/Templates/Community/Nuxt.vue.d.ts +0 -12
  212. package/dist/runtime/app/components/Templates/Community/NuxtSeo.d.vue.ts +0 -15
  213. package/dist/runtime/app/components/Templates/Community/NuxtSeo.vue +0 -103
  214. package/dist/runtime/app/components/Templates/Community/NuxtSeo.vue.d.ts +0 -15
  215. package/dist/runtime/app/components/Templates/Community/Pergel.d.vue.ts +0 -12
  216. package/dist/runtime/app/components/Templates/Community/Pergel.vue.d.ts +0 -12
  217. package/dist/runtime/app/components/Templates/Community/SimpleBlog.d.vue.ts +0 -9
  218. package/dist/runtime/app/components/Templates/Community/SimpleBlog.vue +0 -27
  219. package/dist/runtime/app/components/Templates/Community/SimpleBlog.vue.d.ts +0 -9
  220. package/dist/runtime/app/components/Templates/Community/Wave.d.vue.ts +0 -11
  221. package/dist/runtime/app/components/Templates/Community/Wave.vue +0 -28
  222. package/dist/runtime/app/components/Templates/Community/Wave.vue.d.ts +0 -11
  223. package/dist/runtime/app/components/Templates/Community/WithEmoji.d.vue.ts +0 -13
  224. package/dist/runtime/app/components/Templates/Community/WithEmoji.vue +0 -21
  225. package/dist/runtime/app/components/Templates/Community/WithEmoji.vue.d.ts +0 -13
  226. package/dist/runtime/assets/Inter-normal-400.ttf.base64 +0 -1
  227. package/dist/runtime/assets/Inter-normal-700.ttf.base64 +0 -1
  228. package/dist/runtime/server/og-image/satori/font.d.ts +0 -3
  229. package/dist/runtime/server/og-image/satori/font.js +0 -40
  230. package/dist/runtime/server/og-image/satori/plugins/unocss.js +0 -55
  231. package/dist/runtime/server/og-image/satori/transforms/emojis.d.ts +0 -3
  232. package/dist/runtime/server/og-image/satori/transforms/emojis.js +0 -3595
  233. package/dist/runtime/server/plugins/__zero-runtime/nuxt-content-v2.d.ts +0 -2
  234. package/dist/runtime/server/plugins/__zero-runtime/nuxt-content-v2.js +0 -9
  235. package/dist/runtime/server/plugins/nuxt-content-v2.d.ts +0 -2
  236. package/dist/runtime/server/plugins/nuxt-content-v2.js +0 -5
  237. package/dist/runtime/server/routes/__zero-runtime/font.d.ts +0 -2
  238. package/dist/runtime/server/routes/__zero-runtime/font.js +0 -8
  239. package/dist/runtime/server/routes/font.d.ts +0 -2
  240. package/dist/runtime/server/routes/font.js +0 -3
  241. package/dist/runtime/server/util/plugins.d.ts +0 -2
  242. package/dist/runtime/server/util/plugins.js +0 -56
  243. /package/dist/runtime/server/og-image/satori/plugins/{unocss.d.ts → twClasses.d.ts} +0 -0
@@ -1,103 +0,0 @@
1
- <script setup>
2
- import { useOgImageRuntimeConfig } from "#og-image/app/utils";
3
- import { useSiteConfig } from "#site-config/app/composables";
4
- import { computed, defineComponent, h, resolveComponent } from "vue";
5
- const props = defineProps({
6
- colorMode: { type: String, required: false },
7
- title: { type: String, required: false, default: "title" },
8
- description: { type: String, required: false },
9
- icon: { type: [String, Boolean], required: false },
10
- siteName: { type: String, required: false },
11
- siteLogo: { type: String, required: false },
12
- theme: { type: String, required: false, default: "#00dc82" }
13
- });
14
- const HexRegex = /^#(?:[0-9a-f]{3}){1,2}$/i;
15
- const runtimeConfig = useOgImageRuntimeConfig();
16
- const colorMode = computed(() => {
17
- return props.colorMode || runtimeConfig.colorPreference || "light";
18
- });
19
- const themeHex = computed(() => {
20
- if (HexRegex.test(props.theme))
21
- return props.theme;
22
- if (HexRegex.test(`#${props.theme}`))
23
- return `#${props.theme}`;
24
- if (props.theme.startsWith("rgb")) {
25
- const rgb = props.theme.replace("rgb(", "").replace("rgba(", "").replace(")", "").split(",").map((v) => Number.parseInt(v.trim(), 10));
26
- const hex = rgb.map((v) => {
27
- const hex2 = v.toString(16);
28
- return hex2.length === 1 ? `0${hex2}` : hex2;
29
- }).join("");
30
- return `#${hex}`;
31
- }
32
- return "#FFFFFF";
33
- });
34
- const themeRgb = computed(() => {
35
- return themeHex.value.replace("#", "").match(/.{1,2}/g)?.map((v) => Number.parseInt(v, 16)).join(", ");
36
- });
37
- const siteConfig = useSiteConfig();
38
- const siteName = computed(() => {
39
- return props.siteName || siteConfig.name;
40
- });
41
- const siteLogo = computed(() => {
42
- return props.siteLogo || siteConfig.logo;
43
- });
44
- const IconComponent = runtimeConfig.hasNuxtIcon ? resolveComponent("Icon") : defineComponent({
45
- render() {
46
- return h("div", "missing @nuxt/icon");
47
- }
48
- });
49
- if (typeof props.icon === "string" && !runtimeConfig.hasNuxtIcon && process.dev) {
50
- console.warn("Please install `@nuxt/icon` to use icons with the fallback OG Image component.");
51
- console.log("\nnpx nuxi module add icon\n");
52
- }
53
- </script>
54
-
55
- <template>
56
- <div
57
- class="w-full h-full flex justify-between relative p-[60px]"
58
- :class="[
59
- colorMode === 'light' ? ['bg-white', 'text-gray-900'] : ['bg-gray-900', 'text-white']
60
- ]"
61
- >
62
- <div
63
- class="flex absolute top-0 right-[-100%]" :style="{
64
- width: '200%',
65
- height: '200%',
66
- backgroundImage: `radial-gradient(circle, rgba(${themeRgb}, 0.5) 0%, ${colorMode === 'dark' ? 'rgba(5, 5, 5,0.3)' : 'rgba(255, 255, 255, 0.7)'} 50%, ${props.colorMode === 'dark' ? 'rgba(5, 5, 5,0)' : 'rgba(255, 255, 255, 0)'} 70%)`
67
- }"
68
- />
69
- <div class="h-full w-full justify-between relative">
70
- <div class="flex flex-row justify-between items-start">
71
- <div class="flex flex-col w-full max-w-[65%]">
72
- <h1 class="m-0 font-bold mb-[30px] text-[75px]" style="display: block; text-overflow: ellipsis;" :style="{ lineClamp: description ? 2 : 3 }">
73
- {{ title }}
74
- </h1>
75
- <p
76
- v-if="description"
77
- class="text-[35px] leading-12"
78
- :class="[
79
- colorMode === 'light' ? ['text-gray-700'] : ['text-gray-300']
80
- ]"
81
- style="display: block; line-clamp: 3; text-overflow: ellipsis;"
82
- >
83
- {{ description }}
84
- </p>
85
- </div>
86
- <div v-if="Boolean(icon)" style="width: 30%;" class="flex justify-end">
87
- <IconComponent :name="icon" size="250px" style="margin: 0 auto; opacity: 0.7;" />
88
- </div>
89
- </div>
90
- <div class="flex flex-row justify-center items-center text-left w-full">
91
- <img v-if="siteLogo" :src="siteLogo" height="30">
92
- <template v-else>
93
- <svg height="50" width="50" class="mr-3" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
94
- <path :fill="theme.includes('#') ? theme : `#${theme}`" d="M62.3,-53.9C74.4,-34.5,73.5,-9,67.1,13.8C60.6,36.5,48.7,56.5,30.7,66.1C12.7,75.7,-11.4,74.8,-31.6,65.2C-51.8,55.7,-67.9,37.4,-73.8,15.7C-79.6,-6,-75.1,-31.2,-61.1,-51C-47.1,-70.9,-23.6,-85.4,0.8,-86C25.1,-86.7,50.2,-73.4,62.3,-53.9Z" transform="translate(100 100)" />
95
- </svg>
96
- <p v-if="siteName" style="font-size: 25px;" class="font-bold">
97
- {{ siteName }}
98
- </p>
99
- </template>
100
- </div>
101
- </div>
102
- </div>
103
- </template>
@@ -1,15 +0,0 @@
1
- type __VLS_Props = {
2
- colorMode?: 'dark' | 'light';
3
- title?: string;
4
- description?: string;
5
- icon?: string | boolean;
6
- siteName?: string;
7
- siteLogo?: string;
8
- theme?: string;
9
- };
10
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
- title: string;
12
- theme: string;
13
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
- declare const _default: typeof __VLS_export;
15
- export default _default;
@@ -1,12 +0,0 @@
1
- type __VLS_Props = {
2
- title?: string;
3
- description?: string;
4
- headline?: string;
5
- };
6
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
- title: string;
8
- description: string;
9
- headline: string;
10
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
@@ -1,12 +0,0 @@
1
- type __VLS_Props = {
2
- title?: string;
3
- description?: string;
4
- headline?: string;
5
- };
6
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
- title: string;
8
- description: string;
9
- headline: string;
10
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
@@ -1,9 +0,0 @@
1
- type __VLS_Props = {
2
- title?: string;
3
- website?: string;
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
- title: string;
7
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
@@ -1,27 +0,0 @@
1
- <script setup>
2
- import { useSiteConfig } from "#site-config/app/composables";
3
- import { parseURL } from "ufo";
4
- import { computed } from "vue";
5
- const props = defineProps({
6
- title: { type: String, required: false, default: "title" },
7
- website: { type: String, required: false }
8
- });
9
- const website = computed(() => {
10
- return props.website || parseURL(useSiteConfig().url).host;
11
- });
12
- </script>
13
-
14
- <template>
15
- <div class="h-full w-full flex items-start justify-start border-solid border-blue-500 border-[12px] bg-gray-50">
16
- <div class="flex items-start justify-start h-full">
17
- <div class="flex flex-col justify-between w-full h-full">
18
- <h1 class="text-[80px] p-20 font-black text-left" style="display: block; line-clamp: 2; text-overflow: ellipsis;">
19
- {{ title }}
20
- </h1>
21
- <p class="text-2xl pb-10 px-20 font-bold mb-0" style="display: block; line-clamp: 3; text-overflow: ellipsis;">
22
- {{ website }}
23
- </p>
24
- </div>
25
- </div>
26
- </div>
27
- </template>
@@ -1,9 +0,0 @@
1
- type __VLS_Props = {
2
- title?: string;
3
- website?: string;
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
- title: string;
7
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
@@ -1,11 +0,0 @@
1
- /**
2
- * @credits Full Stack Heroes <https://fullstackheroes.com/>
3
- */
4
- type __VLS_Props = {
5
- title?: string;
6
- };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
- title: string;
9
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
- declare const _default: typeof __VLS_export;
11
- export default _default;
@@ -1,28 +0,0 @@
1
- <script setup>
2
- defineProps({
3
- title: { type: String, required: false, default: "title" }
4
- });
5
- </script>
6
-
7
- <template>
8
- <div class="h-full w-full flex items-start justify-start bg-yellow-50 relative">
9
- <h1 class="text-7xl p-20 font-bold text-left text-gray-900" style="display: block; line-clamp: 2; text-overflow: ellipsis;">
10
- {{ title }}
11
- </h1>
12
-
13
- <svg
14
- class="absolute bottom-0 left-0 right-0"
15
- viewBox="0 0 1200 627"
16
- width="1200"
17
- height="627"
18
- xmlns="http://www.w3.org/2000/svg"
19
- >
20
- <path
21
- d="M0 513L28.5 509.8C57 506.7 114 500.3 171.2 484.5C228.3 468.7 285.7 443.3 342.8 435C400 426.7 457 435.3 514.2 447.3C571.3 459.3 628.7 474.7 685.8 490.7C743 506.7 800 523.3 857.2 522.5C914.3 521.7 971.7 503.3 1028.8 491.8C1086 480.3 1143 475.7 1171.5 473.3L1200 471L1200 628L1171.5 628C1143 628 1086 628 1028.8 628C971.7 628 914.3 628 857.2 628C800 628 743 628 685.8 628C628.7 628 571.3 628 514.2 628C457 628 400 628 342.8 628C285.7 628 228.3 628 171.2 628C114 628 57 628 28.5 628L0 628Z"
22
- fill="#fbbf24"
23
- strokeLinecap="round"
24
- strokeLinejoin="miter"
25
- />
26
- </svg>
27
- </div>
28
- </template>
@@ -1,11 +0,0 @@
1
- /**
2
- * @credits Full Stack Heroes <https://fullstackheroes.com/>
3
- */
4
- type __VLS_Props = {
5
- title?: string;
6
- };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
- title: string;
9
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
- declare const _default: typeof __VLS_export;
11
- export default _default;
@@ -1,13 +0,0 @@
1
- /**
2
- * @credits Full Stack Heroes <https://fullstackheroes.com/>
3
- */
4
- type __VLS_Props = {
5
- emoji?: string;
6
- title?: string;
7
- };
8
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
- title: string;
10
- emoji: string;
11
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- declare const _default: typeof __VLS_export;
13
- export default _default;
@@ -1,21 +0,0 @@
1
- <script setup>
2
- defineProps({
3
- emoji: { type: String, required: false, default: "\u{1F44B}" },
4
- title: { type: String, required: false, default: "title" }
5
- });
6
- </script>
7
-
8
- <template>
9
- <div class="h-full w-full flex items-start justify-start bg-sky-50">
10
- <div class="flex items-start justify-start h-full">
11
- <div class="flex flex-col justify-center items-center px-20 w-full h-full text-center">
12
- <p class="text-[120px] mx-auto text-center font-bold mb-0">
13
- {{ emoji }}
14
- </p>
15
- <h1 class="text-[60px] font-bold" style="display: block; line-clamp: 2; text-overflow: ellipsis;">
16
- {{ title }}
17
- </h1>
18
- </div>
19
- </div>
20
- </div>
21
- </template>
@@ -1,13 +0,0 @@
1
- /**
2
- * @credits Full Stack Heroes <https://fullstackheroes.com/>
3
- */
4
- type __VLS_Props = {
5
- emoji?: string;
6
- title?: string;
7
- };
8
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
- title: string;
10
- emoji: string;
11
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- declare const _default: typeof __VLS_export;
13
- export default _default;