Skip to content

Commit

Permalink
Fix My Posts links to images; update styling
Browse files Browse the repository at this point in the history
  • Loading branch information
markohanesian committed Jul 11, 2024
1 parent 2b3fe15 commit 1b0e5d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PostPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ export default function PostsPage() {

return (
<div style={{ padding: "2rem", backgroundColor: "#101010", color: "white" }}>
<h1>Posts</h1>
<h1 style={{marginBottom: "2rem", fontSize: "2.5rem"}}>My Posts</h1>
{posts.length > 0 ? (
posts.map((post) => (
<div key={post.id} style={{ marginBottom: "1rem" }}>
<h2>{post.caption}</h2>
<p>{new Date(post.timestamp.toDate()).toLocaleString()}</p>
<a href={`/posts/${post.id}`} style={{ color: "rgb(139, 195, 74)" }}>
<a href={post.uploadURL} style={{ color: "rgb(139, 195, 74)" }}>
View Post
</a>
</div>
Expand Down

0 comments on commit 1b0e5d8

Please sign in to comment.