Skip to content

Commit

Permalink
debug and images disallowed and formatted the code
Browse files Browse the repository at this point in the history
  • Loading branch information
alpozkanm committed Nov 7, 2023
1 parent d2bd6a4 commit 747d509
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 8 additions & 2 deletions components/posts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,14 @@ export default function Posts({ posts }: { posts: Content[] }) {
<p className="mt-3 hidden sm:block">{post.description}</p>
</div>
{post.image && (
<div className="relative order-1 h-[112px] w-[112px] md:order-2 overflow-hidden">
<Image src={post.image} alt={post.title} sizes="112px" fill style={{ objectFit: 'contain', objectPosition: 'top',}} />
<div className="relative order-1 h-[112px] w-[112px] overflow-hidden md:order-2">
<Image
src={post.image}
alt={post.title}
sizes="112px"
fill
style={{ objectFit: "contain", objectPosition: "top" }}
/>
</div>
)}
</div>
Expand Down
8 changes: 7 additions & 1 deletion components/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ export default function Projects({ projects }: { projects: Content[] }) {
</div>
{project.image && (
<div className="relative order-1 h-[112px] w-[112px] md:order-2">
<Image src={project.image} alt={project.title} sizes="112px" fill style={{ objectFit: 'contain', objectPosition: 'top',}}/>
<Image
src={project.image}
alt={project.title}
sizes="112px"
fill
style={{ objectFit: "contain", objectPosition: "top" }}
/>
</div>
)}
</div>
Expand Down

0 comments on commit 747d509

Please sign in to comment.