From 7f9d0d951426cc5cf0c034509b292053ed4417de Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Mon, 25 Jul 2022 21:41:02 +0600 Subject: [PATCH] Better dark mode support --- src/components/avatar-card/index.jsx | 4 +++- src/components/blog/index.jsx | 12 ++++++++---- src/components/education/index.jsx | 4 +++- src/components/experience/index.jsx | 4 +++- src/components/project/index.jsx | 12 ++++++++---- src/components/skill/index.jsx | 4 +++- src/components/theme-changer/index.jsx | 4 ++-- 7 files changed, 30 insertions(+), 14 deletions(-) diff --git a/src/components/avatar-card/index.jsx b/src/components/avatar-card/index.jsx index 8e8350b..5b201b9 100644 --- a/src/components/avatar-card/index.jsx +++ b/src/components/avatar-card/index.jsx @@ -38,7 +38,9 @@ const AvatarCard = ({ profile, loading }) => { {loading || !profile ? ( skeleton({ width: 'w-48', height: 'h-8' }) ) : ( - {profile.name} + + {profile.name} + )}
diff --git a/src/components/blog/index.jsx b/src/components/blog/index.jsx index 3763729..d0ba04a 100644 --- a/src/components/blog/index.jsx +++ b/src/components/blog/index.jsx @@ -139,7 +139,7 @@ const Blog = ({ loading, blog, googleAnalytics }) => {

{article.title}

-

+

{formatDistance(article.publishedAt, new Date(), { addSuffix: true, })} @@ -150,7 +150,7 @@ const Blog = ({ loading, blog, googleAnalytics }) => {

{article.categories.map((category, index2) => (
#{category} @@ -167,7 +167,9 @@ const Blog = ({ loading, blog, googleAnalytics }) => { ) : (
-

No recent post

+

+ No recent post +

); }; @@ -191,7 +193,9 @@ const Blog = ({ loading, blog, googleAnalytics }) => { {loading ? ( skeleton({ width: 'w-28', height: 'h-8' }) ) : ( - Recent Posts + + Recent Posts + )}
diff --git a/src/components/education/index.jsx b/src/components/education/index.jsx index a9cd0e8..c2e96bd 100644 --- a/src/components/education/index.jsx +++ b/src/components/education/index.jsx @@ -48,7 +48,9 @@ const Education = ({ loading, education }) => { {loading ? ( skeleton({ width: 'w-32', height: 'h-8' }) ) : ( - Education + + Education + )}
diff --git a/src/components/experience/index.jsx b/src/components/experience/index.jsx index 8fafefd..395e60e 100644 --- a/src/components/experience/index.jsx +++ b/src/components/experience/index.jsx @@ -48,7 +48,9 @@ const Experience = ({ experiences, loading }) => { {loading ? ( skeleton({ width: 'w-32', height: 'h-8' }) ) : ( - Experience + + Experience + )}
diff --git a/src/components/project/index.jsx b/src/components/project/index.jsx index 44e23f1..d79e23a 100644 --- a/src/components/project/index.jsx +++ b/src/components/project/index.jsx @@ -82,7 +82,7 @@ const Project = ({ repo, loading, github, googleAnalytics }) => { xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" - className="inline-block w-5 h-5 mr-2 stroke-current" + className="text-base-content inline-block w-5 h-5 mr-2 stroke-current" > { > -
{item.name}
+
+ {item.name} +

@@ -137,7 +139,9 @@ const Project = ({ repo, loading, github, googleAnalytics }) => { {loading ? ( skeleton({ width: 'w-28', height: 'h-8' }) ) : ( - My Projects + + My Projects + )} {loading ? ( @@ -147,7 +151,7 @@ const Project = ({ repo, loading, github, googleAnalytics }) => { href={`https://github.com/${github.username}?tab=repositories`} target="_blank" rel="noreferrer" - className="opacity-50" + className="text-base-content opacity-50" > See All diff --git a/src/components/skill/index.jsx b/src/components/skill/index.jsx index 7a85a4f..14dcc1e 100644 --- a/src/components/skill/index.jsx +++ b/src/components/skill/index.jsx @@ -25,7 +25,9 @@ const Skill = ({ loading, skills }) => { {loading ? ( skeleton({ width: 'w-32', height: 'h-8' }) ) : ( - Tech Stack + + Tech Stack + )} diff --git a/src/components/theme-changer/index.jsx b/src/components/theme-changer/index.jsx index af92dcd..d4fb7f5 100644 --- a/src/components/theme-changer/index.jsx +++ b/src/components/theme-changer/index.jsx @@ -21,7 +21,7 @@ const ThemeChanger = ({ theme, setTheme, loading, themeConfig }) => { {loading ? ( skeleton({ width: 'w-20', height: 'h-8', className: 'mb-1' }) ) : ( - Theme + Theme )} @@ -43,7 +43,7 @@ const ThemeChanger = ({ theme, setTheme, loading, themeConfig }) => {

Change Theme