Skip to content

Commit be6ca58

Browse files
committed
color fixes
1 parent 7522597 commit be6ca58

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/components/LinkTo/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const LinkTo = ({ href, passHref = true, newTab = false, external = false, child
1919
{children}
2020
</a> :
2121
<Link href={transformPath(href)} passHref={passHref}>
22-
<a className={combineClasses(className, 'cursor-pointer hover:text-blue-500')}>
22+
<a className={combineClasses('cursor-pointer hover:text-blue-500', className)}>
2323
{children}
2424
</a>
2525
</Link>

src/components/Misc/ArticleMoreFromAuthor.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ const ArticleMoreFromAuthor = ({ author, relatedArticles, articleGrid = false }:
6464
}
6565
{
6666
relatedArticles.length > 3 ? (
67-
<LinkTo href={"/blog?author=" + author.name } passHref className='block text-sm py-3 px-2 text-center dark:bg-slate-900 bg-blue-400 rounded text-black font-bold'>
67+
<LinkTo
68+
href={"/blog?author=" + author.name }
69+
passHref className='block text-sm py-3 px-2 text-center dark:bg-slate-900 bg-blue-500 rounded text-white font-bold hover:!text-blue-900 dark:hover:!text-slate-400 transition-all'>
6870
<p>All articles from {author.name}</p>
6971
</LinkTo>
7072
) : null

src/components/Misc/HomeNonFeatureAricles.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import LinkTo from "../LinkTo";
55

66
const HomeNonFeatureArticles = () => {
77
const restArticles = SORTED_ARTICLES_BY_DATE.filter((article: iArticle) => !article.featureArticle);
8-
const articlesToDisplay = 9;
8+
const articlesToDisplay = 5;
99
return (
1010
<>
1111
{
@@ -18,13 +18,17 @@ const HomeNonFeatureArticles = () => {
1818
{
1919
restArticles.length > articlesToDisplay ?
2020
(
21-
<>
21+
<div className="w-full flex items-center">
2222
<LinkTo
2323
href="/pages/blog"
24-
className="w-auto text-sm py-3 px-10 text-center dark:bg-slate-800 bg-blue-500 rounded-full mx-auto text-white font-bold">
24+
className="
25+
w-auto h-auto text-sm py-3 px-10
26+
text-center dark:bg-slate-800
27+
bg-blue-500 rounded-full mx-auto text-white font-bold
28+
hover:!text-blue-900 dark:hover:!text-slate-400 transition-all">
2529
View All Articles
2630
</LinkTo>
27-
</>
31+
</div>
2832
) : null
2933
}
3034

0 commit comments

Comments
 (0)