Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const Card = ({ title, description, imgSrc, href }) => (
<div
className={`${
imgSrc && 'h-full'
} overflow-hidden rounded-md border-2 border-gray-200/60 dark:border-gray-700/60`}
} group overflow-hidden rounded-md border-2 border-gray-200/60 transition-all duration-150 hover:border-gray-300/60 dark:border-gray-700/60 dark:hover:border-gray-600/60`}
>
{imgSrc &&
(href ? (
<Link href={href} aria-label={`Link to ${title}`}>
<Image
alt={title}
src={imgSrc}
className="object-cover object-center md:h-36 lg:h-48"
className="object-cover object-center transition-all duration-150 group-hover:scale-110 group-hover:grayscale md:h-36 lg:h-48"
width={544}
height={306}
/>
Expand Down
6 changes: 2 additions & 4 deletions components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ const Header = () => {
return (
<header className={headerClass}>
<Link href="/" aria-label={siteMetadata.headerTitle}>
<div className="flex items-center justify-between">
<div className="mr-3">
<Logo />
</div>
<div className="flex items-center justify-between gap-3">
<Logo />
{typeof siteMetadata.headerTitle === 'string' ? (
<div className="hidden h-6 text-2xl font-semibold sm:block">
{siteMetadata.headerTitle}
Expand Down
4 changes: 4 additions & 0 deletions css/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,7 @@ input:-webkit-autofill:focus {
display: inline-block;
vertical-align: middle;
}

button {
cursor: pointer;
}
7 changes: 6 additions & 1 deletion layouts/ListLayoutWithTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function Pagination({ totalPages, currentPage }: PaginationProps) {
<Link
href={currentPage - 1 === 1 ? `/${basePath}/` : `/${basePath}/page/${currentPage - 1}`}
rel="prev"
className="hover:text-primary-500 dark:hover:text-primary-400 text-gray-900 dark:text-gray-100"
>
Previous
</Link>
Expand All @@ -57,7 +58,11 @@ function Pagination({ totalPages, currentPage }: PaginationProps) {
</button>
)}
{nextPage && (
<Link href={`/${basePath}/page/${currentPage + 1}`} rel="next">
<Link
href={`/${basePath}/page/${currentPage + 1}`}
rel="next"
className="hover:text-primary-500 dark:hover:text-primary-400 text-gray-900 dark:text-gray-100"
>
Next
</Link>
)}
Expand Down