Skip to content

Commit

Permalink
fix: home og container fixed size
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed May 29, 2024
1 parent 9314ff8 commit 13468e0
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions src/app/(app)/og/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,30 +83,38 @@ const HomeOGImage: FC<AggregateRoot> = ({ seo, user: { avatar } }) => {
width={256}
/>

<p
<div
style={{
display: 'flex',
flexDirection: 'column',
marginLeft: '3rem',
width: '500px',
overflow: 'hidden',
alignItems: 'center',
justifyContent: 'center',
}}
>
<h3
style={{
color: '#ffffff99',
fontSize: '3.5rem',
whiteSpace: 'nowrap',
}}
>
{seo.title}
</h3>
<p
style={{
fontSize: '1.8rem',

height: '5.2rem',
overflow: 'hidden',
lineClamp: 2,
color: '#ffffff89',
}}
>
{seo.description}
</p>
</p>
</div>
</div>
)
}
Expand Down Expand Up @@ -279,10 +287,9 @@ export const GET = async (req: NextRequest) => {
style={{
color: 'rgba(255, 255, 255, 0.92)',
fontSize: '50px',
WebkitLineClamp: 2,
lineClamp: 2,
fontWeight: 800,
display: '-webkit-box',
overflow: 'hidden',
maxHeight: '150px',
fontWeight: 'bold',
}}
>
{title}
Expand All @@ -291,7 +298,7 @@ export const GET = async (req: NextRequest) => {
style={{
color: 'rgba(255, 255, 255, 0.85)',
fontSize: '38px',
fontWeight: 300,
fontWeight: 'lighter',
}}
>
{subtitle}
Expand Down

0 comments on commit 13468e0

Please sign in to comment.