Skip to content

Commit 29da1a1

Browse files
committed
fix: polish og layout
1 parent f27b653 commit 29da1a1

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

app/components/OgImage/Default.vue

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ const props = withDefaults(defineProps<Props>(), {
1515
<template>
1616
<div
1717
class="h-full w-full flex flex-col justify-center px-20 bg-[#050505] text-[#fafafa] relative overflow-hidden"
18+
style="font-family: 'Geist Mono', sans-serif"
1819
>
1920
<div class="relative z-10 flex flex-col gap-6">
2021
<div class="flex items-start gap-4">
2122
<div
22-
class="flex items-start justify-center w-16 h-16 rounded-xl bg-gradient-to-tr from-[#3b82f6] shadow-lg"
23+
class="flex items-start justify-center w-16 h-16 p-3.5 rounded-xl bg-gradient-to-tr from-[#3b82f6] shadow-lg"
2324
:style="{ backgroundColor: props.primaryColor }"
2425
>
2526
<svg
@@ -41,17 +42,19 @@ const props = withDefaults(defineProps<Props>(), {
4142
</svg>
4243
</div>
4344

44-
<h1
45-
class="text-8xl font-bold tracking-tighter"
46-
style="font-family: 'Geist Sans', sans-serif"
47-
>
48-
<span class="opacity-80" :style="{ color: props.primaryColor }">./</span>{{ props.title }}
45+
<h1 class="text-8xl font-bold">
46+
<span
47+
class="opacity-80 tracking-[-0.1em]"
48+
:style="{ color: props.primaryColor }"
49+
style="margin-left: -1rem; margin-right: 0.5rem"
50+
>./</span
51+
>{{ props.title }}
4952
</h1>
5053
</div>
5154

5255
<div
53-
class="flex flex-wrap items-center gap-x-3 text-4xl font-light text-[#a3a3a3]"
54-
style="font-family: 'Geist Sans', sans-serif"
56+
class="flex flex-wrap items-center gap-x-3 text-4xl text-[#a3a3a3]"
57+
style="font-family: 'Geist', sans-serif"
5558
>
5659
<template v-for="(part, index) in props.description.split(/(\*\*.*?\*\*)/)" :key="index">
5760
<span

app/components/OgImage/Package.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ try {
100100
<!-- Package name -->
101101
<div class="flex items-start gap-4">
102102
<div
103-
class="flex items-center justify-center w-16 h-16 p-4 rounded-xl shadow-lg bg-gradient-to-tr from-[#3b82f6]"
103+
class="flex items-center justify-center w-16 h-16 p-3.5 rounded-xl shadow-lg bg-gradient-to-tr from-[#3b82f6]"
104104
:style="{ backgroundColor: primaryColor }"
105105
>
106106
<svg
@@ -128,8 +128,8 @@ try {
128128
>
129129
<span
130130
:style="{ color: primaryColor }"
131-
class="opacity-80"
132-
style="margin-left: -0.5rem; margin-right: 0.5rem"
131+
class="opacity-80 tracking-[-0.1em]"
132+
style="margin-left: -0.5rem; margin-right: 1rem"
133133
>./</span
134134
>{{ titleTruncated }}
135135
</h1>

0 commit comments

Comments
 (0)