-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mike/post #10
Mike/post #10
Conversation
… the page as the length of the blog post increases is a bug that needs to be fixed. Included a button to toggle the visibility of the post
Removed unused useState. |
…was not dynamically rendered.
src/components/Post.tsx
Outdated
@@ -47,8 +47,7 @@ export function Post({ post }: PostProps) { | |||
/> | |||
|
|||
<div className="mx-4"> | |||
<h1 className="text-sm text-gray-700 dark:text-gray-200">{post.author}</h1> | |||
<p className="text-sm text-gray-500 dark:text-gray-400">Lead Developer</p> | |||
<h1 className="text-sm text-gray-700 dark:text-gray-200">{post.author}</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now your getting the hang of it👍🏼
{/* Image of the blog post */} | ||
<img | ||
className="object-cover w-full lg:mx-6 lg:w-1/2 rounded-xl h-72 lg:h-96" | ||
src={post.postImage} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could not get this to render in my code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shake and Bake👍🏼
Individual post. Post.tsx is populated using the imported props from PostData in content.ts