Skip to content

Commit

Permalink
final touch ups?
Browse files Browse the repository at this point in the history
  • Loading branch information
DidierRLopes committed Jan 5, 2025
1 parent c17a58a commit ebbccc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/BlogHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default function BlogHistory({ posts = [], isDesktop }: BlogHistoryProps)
const maxPosts = Math.max(...monthlyData.map((data) => data.posts.length));

return (
<div style={{ width: "100%", height: 400 }}>
<div style={{ width: "100%", height: isDesktop ? 400 : 300 }}>
<ResponsiveContainer>
<BarChart
data={monthlyData}
Expand Down
12 changes: 6 additions & 6 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,18 +209,18 @@ export default function Home() {
<iframe
src="https://github-stats-alpha.vercel.app/api?username=DidierRLopes&cc=000&tc=fff&ic=fff&bc=fff"
width="100%"
height="200"
height={isDesktop ? "200" : "150"}
title="GitHub Stats"
className="border-0 my-auto pt-8"
className="border-0 my-auto pt-8 max-w-full"
/>
</div>
<div className="flex items-center justify-center">
<iframe
src="https://ssr-contributions-svg.vercel.app/_/DidierRLopes?chart=3dbar&format=svg&theme=blue"
width="100%"
height="200"
height={isDesktop ? "200" : "150"}
title="GitHub Contributions"
className="border-0 my-auto"
className="border-0 my-auto max-w-full"
/>
</div>
</Carousel>
Expand All @@ -239,7 +239,7 @@ export default function Home() {
)}
{isDesktop ? (
<>
<div className="relative mt-8 mb-4 overflow-hidden">
<div className="relative mb-4 overflow-hidden">
<div className="flex animate-scroll gap-8">
{postsHighlight.concat(postsHighlight).map((post, index) => (
<div
Expand Down Expand Up @@ -267,7 +267,7 @@ export default function Home() {
</div>
</>
) : isTablet ? (
<div className="flex justify-center gap-8 mt-8 mb-4">
<div className="flex justify-center gap-8 mb-4">
{postsHighlight.slice(0, 2).map((post) => (
<div
key={post.id}
Expand Down

0 comments on commit ebbccc8

Please sign in to comment.