Skip to content

Commit 5117f88

Browse files
committed
chore: updated og images
1 parent 0f5f037 commit 5117f88

File tree

6 files changed

+70
-12
lines changed

6 files changed

+70
-12
lines changed

app/app.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ useHead({
2424
useSeoMeta({
2525
titleTemplate: `%s - ${seo?.siteName}`,
2626
ogSiteName: seo?.siteName,
27-
ogImage: 'https://docs-template.nuxt.dev/social-card.png',
28-
twitterImage: 'https://docs-template.nuxt.dev/social-card.png',
27+
ogImage: 'https://vuemail.net/social-preview.jpg',
28+
twitterImage: 'https://vuemail.net/social-preview.jpg',
2929
twitterCard: 'summary_large_image'
3030
})
3131

app/components/OgImage/OgImageDocs.vue

Lines changed: 64 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,77 @@ defineProps({
1111
description: {
1212
type: String,
1313
required: true
14+
},
15+
headline: {
16+
type: String,
17+
default: ''
1418
}
1519
})
1620
</script>
1721

1822
<template>
19-
<div class="w-full h-full flex flex-col justify-center text-center bg-slate-900 p-8">
20-
<div class="relative">
21-
<h1 class="text-8xl mb-4 text-white">
22-
{{ title }}
23+
<div class="w-full h-full flex flex-col justify-center bg-[#020420]">
24+
<svg
25+
class="absolute right-0 top-0"
26+
width="629"
27+
height="593"
28+
viewBox="0 0 629 593"
29+
fill="none"
30+
xmlns="http://www.w3.org/2000/svg"
31+
>
32+
<g filter="url(#filter0_f_199_94966)">
33+
<path
34+
d="M628.5 -578L639.334 -94.4223L806.598 -548.281L659.827 -87.387L965.396 -462.344L676.925 -74.0787L1087.69 -329.501L688.776 -55.9396L1160.22 -164.149L694.095 -34.9354L1175.13 15.7948L692.306 -13.3422L1130.8 190.83L683.602 6.50012L1032.04 341.989L668.927 22.4412L889.557 452.891L649.872 32.7537L718.78 511.519L628.5 36.32L538.22 511.519L607.128 32.7537L367.443 452.891L588.073 22.4412L224.955 341.989L573.398 6.50012L126.198 190.83L564.694 -13.3422L81.8734 15.7948L562.905 -34.9354L96.7839 -164.149L568.224 -55.9396L169.314 -329.501L580.075 -74.0787L291.604 -462.344L597.173 -87.387L450.402 -548.281L617.666 -94.4223L628.5 -578Z"
35+
fill="#5FDEFF"
36+
/>
37+
</g>
38+
<defs>
39+
<filter
40+
id="filter0_f_199_94966"
41+
x="0.873535"
42+
y="-659"
43+
width="1255.25"
44+
height="1251.52"
45+
filterUnits="userSpaceOnUse"
46+
color-interpolation-filters="sRGB"
47+
>
48+
<feFlood
49+
flood-opacity="0"
50+
result="BackgroundImageFix"
51+
/>
52+
<feBlend
53+
mode="normal"
54+
in="SourceGraphic"
55+
in2="BackgroundImageFix"
56+
result="shape"
57+
/>
58+
<feGaussianBlur
59+
stdDeviation="40.5"
60+
result="effect1_foregroundBlur_199_94966"
61+
/>
62+
</filter>
63+
</defs>
64+
</svg>
65+
66+
<div class="w-[700px] pl-[100px]">
67+
<p
68+
v-if="headline"
69+
class="uppercase text-[24px] text-[#00DC82] mb-4 font-semibold"
70+
>
71+
{{ headline }}
72+
</p>
73+
<h1 class="m-0 text-[75px] font-semibold mb-4 text-white flex items-center">
74+
<span>{{ title }}</span>
2375
</h1>
24-
<p class="text-5xl text-gray-200 leading-tight">
25-
{{ description }}
76+
<p class="text-[32px] text-[#E4E4E7] leading-tight">
77+
{{ description.slice(0, 200) }}
2678
</p>
2779
</div>
80+
<img
81+
src="/og-icon-vue-email.png"
82+
class="absolute top-[160px] right-[90px]"
83+
width="340"
84+
height="340"
85+
>
2886
</div>
2987
</template>

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
"typecheck": "nuxt typecheck"
1313
},
1414
"dependencies": {
15-
"@iconify-json/ph": "^1.1.13",
16-
"@iconify-json/solar": "^1.1.9",
1715
"@iconify-json/heroicons": "^1.1.21",
16+
"@iconify-json/ph": "^1.1.13",
1817
"@iconify-json/simple-icons": "^1.1.106",
18+
"@iconify-json/solar": "^1.1.9",
1919
"@nuxt/content": "^2.13.0",
2020
"@nuxt/fonts": "^0.7.0",
2121
"@nuxt/image": "^1.7.0",
2222
"@nuxt/ui-pro": "^1.3.0",
2323
"nuxt": "^3.12.2",
24-
"nuxt-og-image": "^3.0.0-rc.54"
24+
"nuxt-og-image": "3.0.0-rc.54"
2525
},
2626
"devDependencies": {
2727
"@nuxt/eslint": "^0.3.13",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/og-icon-vue-email.png

46.9 KB
Loading

public/social-preview.jpg

1.95 MB
Loading

0 commit comments

Comments
 (0)