Skip to content

Commit

Permalink
feat: image added to post page
Browse files Browse the repository at this point in the history
  • Loading branch information
ammar-ahmed22 committed Dec 17, 2024
1 parent ad83098 commit a547cfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Ammar Ahmed's personal portfolio. Built with React, TypeScript, NextUI and Notion."
content="Ammar Ahmed's personal portfolio and blog. Built with React, TypeScript, NextUI and Notion."
/>
<link rel="apple-touch-icon" sizes="180x180" href="%PUBLIC_URL%/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="%PUBLIC_URL%/favicon/favicon-32x32.png">
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Post/PostMetadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import type { IPostMetadata } from '@ammarahmedca/types'
import { useTextGradient } from '../../hooks/styles'
import { formatDistance } from 'date-fns'
import { Chip, Skeleton } from '@nextui-org/react'
import { Chip, Skeleton, Image } from '@nextui-org/react'
import { useBreakpointValue } from '../../hooks/mediaQuery'
import { Helmet } from 'react-helmet'

Expand Down Expand Up @@ -48,6 +48,7 @@ const PostMetadata: React.FC<PostMetadataProps> = ({ metadata }) => {
>
{metadata.name}
</h1>
{metadata.image && <Image src={metadata.image} />}
<p className='text-default-500 text-base md:text-lg'>
{elapsed}
</p>
Expand Down

0 comments on commit a547cfe

Please sign in to comment.