Skip to content

Commit

Permalink
Merge branch 'main' into alt-texts-in-markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
satnaing committed Nov 1, 2022
2 parents 63f2ea1 + 4fc82d3 commit 1cf1a66
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 45 deletions.
6 changes: 3 additions & 3 deletions components/BlogImageCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const BlogImageCard: React.FC<Props> = ({
<div
ref={sectionRef}
title={title}
className={`sm:min-w-[17rem] transition hover:-translate-y-2 max-w-md bg-gray-100 dark:bg-carddark p-4 rounded shadow-md hover:shadow-xl ${
className={`sm:min-w-[17rem] transition translate-y-2 hover:-translate-y-0 max-w-md bg-gray-100 dark:bg-carddark p-4 rounded shadow-md hover:shadow-xl ${
fullWH ? "w-full" : "w-72 my-2"
} ${className}`}
>
Expand All @@ -76,15 +76,15 @@ const BlogImageCard: React.FC<Props> = ({
alt={title}
/>
</div>
<div className="mb-2 overflow-hidden">
<div className="mb-2 overflow-hidden h-14">
<Link
href={`/blog/posts/${slug}`}
className="blog-title link inline-block outline-none dark:outline-none focus-within:underline"
>
<h3
className={`${
fullWH ? "text-lg sm:text-md" : "text-md"
} font-medium`}
} font-medium line-clamp-2`}
>
{title}
</h3>
Expand Down
100 changes: 64 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"swiper": "^8.4.4"
},
"devDependencies": {
"@netlify/plugin-nextjs": "^4.28.1",
"@netlify/plugin-nextjs": "^4.28.3",
"@tailwindcss/line-clamp": "^0.4.2",
"@tailwindcss/typography": "^0.5.7",
"@types/node": "18.11.6",
"@types/react": "18.0.23",
"autoprefixer": "^10.4.12",
"@types/node": "18.11.8",
"@types/react": "18.0.24",
"autoprefixer": "^10.4.13",
"eslint": "8.26.0",
"eslint-config-next": "13.0.0",
"postcss": "^8.4.18",
Expand Down
4 changes: 2 additions & 2 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
@layer utilities {
.swiper-padding {
padding: 0 3rem !important;
padding-bottom: 2rem !important;
padding-bottom: 3rem !important;
}
.swiper-padding-mobile {
padding: 0 !important;
padding-bottom: 2rem !important;
padding-bottom: 3rem !important;
}
}

Expand Down

0 comments on commit 1cf1a66

Please sign in to comment.