-
+
{categoryData.category}
diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx
index 99522117..9a94cc9f 100644
--- a/src/app/blog/page.tsx
+++ b/src/app/blog/page.tsx
@@ -34,7 +34,7 @@ const TopLink = ({ Icon, title, ...rest }: TopLinkProps) => (
{...rest}
className="inline-flex items-center gap-1 rounded-lg p-2 leading-none text-neutral-700 transition-colors hover:bg-neutral-200/50 hover:text-neutral-900 dark:text-neutral-300 hover:dark:bg-neutral-900 dark:hover:text-neutral-100"
>
-
+
{title}
)
diff --git a/src/app/blog/post/[slug]/page.tsx b/src/app/blog/post/[slug]/page.tsx
index 30e5c120..5fdbb19d 100644
--- a/src/app/blog/post/[slug]/page.tsx
+++ b/src/app/blog/post/[slug]/page.tsx
@@ -103,7 +103,7 @@ export default function Page({ params }: Props) {
{getNormalTagString(tag)}
-
diff --git a/src/app/components/footer.tsx b/src/app/components/footer.tsx
index 264c6b04..3cd78f61 100644
--- a/src/app/components/footer.tsx
+++ b/src/app/components/footer.tsx
@@ -11,7 +11,7 @@ const Link = ({ children, ...props }: ComponentProps<'a'>) => (
)
-const ArrowIcon = () =>
+const ArrowIcon = () =>
export function Footer() {
return (
diff --git a/src/app/components/header/mobile-menu/index.tsx b/src/app/components/header/mobile-menu/index.tsx
index ca38a5ba..4ed38214 100644
--- a/src/app/components/header/mobile-menu/index.tsx
+++ b/src/app/components/header/mobile-menu/index.tsx
@@ -44,7 +44,7 @@ export function MobileMenu() {
onClick={() => setIsDialogOpen(false)}
className="menu-item"
>
-
+
{title}
)
@@ -55,10 +55,10 @@ export function MobileMenu() {
return (
-
+
{title}
-
+
)
@@ -77,7 +77,7 @@ export function MobileMenu() {
}}
className="menu-item"
>
-
+
Search
@@ -89,7 +89,7 @@ export function MobileMenu() {
@@ -101,7 +101,7 @@ export function MobileMenu() {
className="absolute left-2 top-2 rounded-full p-2 backdrop-blur-lg active:bg-red-300/20 active:text-red-500 active:dark:bg-red-300/10 active:dark:text-red-400"
>
diff --git a/src/app/components/header/search.tsx b/src/app/components/header/search.tsx
index 1cf2ee5a..466655c6 100644
--- a/src/app/components/header/search.tsx
+++ b/src/app/components/header/search.tsx
@@ -12,7 +12,7 @@ export function Search() {
className="flex flex-1 cursor-text items-center gap-5 rounded-xl bg-neutral-200/20 p-2 text-sm leading-none backdrop-blur-3xl dark:bg-neutral-800/20"
>
-
+
Search...
diff --git a/src/app/components/header/toggle-theme.tsx b/src/app/components/header/toggle-theme.tsx
index 698e1f7a..3618128f 100644
--- a/src/app/components/header/toggle-theme.tsx
+++ b/src/app/components/header/toggle-theme.tsx
@@ -26,19 +26,28 @@ export function ToggleTheme() {
>
{theme === 'light' && (
<>
-
+
Light
>
)}
{theme === 'dark' && (
<>
-
+
Dark
>
)}
{theme === 'system' && (
<>
-
+
System
>
)}
@@ -48,7 +57,7 @@ export function ToggleTheme() {
return (
to start
-
+
)
}
diff --git a/src/app/sitemap/page.tsx b/src/app/sitemap/page.tsx
index a753315d..c7f860d7 100644
--- a/src/app/sitemap/page.tsx
+++ b/src/app/sitemap/page.tsx
@@ -13,7 +13,7 @@ export default function Page() {
className="inline-flex items-end text-xl leading-none text-blue-500 hover:text-blue-900"
>
Sitemap XML
-
+
{allRoutes.map(url => (
(
-
+
API Error
)
diff --git a/src/shared/components/kbar/index.tsx b/src/shared/components/kbar/index.tsx
index dec86381..8e493d7a 100644
--- a/src/shared/components/kbar/index.tsx
+++ b/src/shared/components/kbar/index.tsx
@@ -51,7 +51,7 @@ const ResultItem = forwardRef<
,
+ icon: ,
perform: () => push('/')
},
{
@@ -55,7 +55,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
name: 'About',
shortcut: ['n', 'a'],
keywords: 'about me user information info',
- icon: ,
+ icon: ,
perform: () => push('/about')
},
{
@@ -63,7 +63,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
name: 'Statistics',
shortcut: ['n', 's'],
keywords: 'statistics github spotify data',
- icon: ,
+ icon: ,
perform: () => push('/about/statistics')
}
]
@@ -74,7 +74,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
subtitle: project.description,
keywords: [...project.tags, project.core_techs].toString(),
section: 'Projects',
- icon: ,
+ icon: ,
parent: 'search-projects',
get perform() {
if (project.website) return () => window.open(project.website, '_blank')
@@ -91,7 +91,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
shortcut: ['p'],
section: 'Projects',
keywords: 'works projects tools apps',
- icon: ,
+ icon: ,
perform: () => push('/projects')
},
{
@@ -100,7 +100,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
shortcut: ['p', 's'],
section: 'Projects',
keywords: 'works projects tools apps',
- icon:
+ icon:
},
...projectsAsActions
]
@@ -110,7 +110,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
.map(category => ({
id: slug(category),
name: category,
- icon: ,
+ icon: ,
parent: 'categories',
section: 'Blog',
perform: () => push(`/blog/categories/${slug(category)}`)
@@ -120,23 +120,24 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
.map(tag => ({
id: slug(tag),
name: tag,
- icon: ,
+ icon: ,
parent: 'tags',
section: 'Blog',
perform: () => push(`/blog/tag/${slug(tag)}`)
}))
const getIconByStatus = (status: 'published' | 'draft' | 'planned') => {
- if (status === 'published') return
- if (status === 'draft') return
- if (status === 'planned') return
+ if (status === 'published') return
+ if (status === 'draft') return
+ if (status === 'planned')
+ return
}
const postsAsAction: Action[] = getSortedPosts(
allPosts.filter(post => post.status !== 'planned')
).map(({ id, title, status, test, tags, description }) => ({
id,
name: title,
- icon: test ? ,
+ icon: ,
keywords: til.tags
.map(tag => tag.trim())
.toString()
@@ -168,7 +169,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
shortcut: ['b'],
section: 'Blog',
keywords: 'posts writing',
- icon: ,
+ icon: ,
perform: () => push('/blog')
},
{
@@ -177,7 +178,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
shortcut: ['b', 'i'],
section: 'Blog',
keywords: 'writing learning progress skills',
- icon: ,
+ icon: ,
perform: () => push('/blog/til')
},
{
@@ -186,7 +187,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
shortcut: ['b', 'c'],
section: 'Blog',
keywords: 'posts writing',
- icon:
+ icon:
},
...categoriesAsAction,
{
@@ -195,7 +196,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
shortcut: ['b', 't'],
section: 'Blog',
keywords: 'posts writing',
- icon:
+ icon:
},
...tagsAsAction,
{
@@ -203,7 +204,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
name: 'Rss',
section: 'Blog',
keywords: 'feed rss atom',
- icon: ,
+ icon: ,
perform: () => push('/blog/feed')
},
{
@@ -212,7 +213,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
section: 'Blog',
keywords: 'search posts write writing blog',
shortcut: ['b', 's'],
- icon:
+ icon:
},
...postsAsAction,
...tilsAsAction
@@ -224,7 +225,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
name: 'My Manjaro Dotfiles',
section: 'Personal Links',
keywords: 'linux config setup',
- icon: ,
+ icon: ,
perform: () =>
window.open('https://github.com/mateusfg7/dotfiles', '_blank')
},
@@ -233,7 +234,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
name: 'My Bookshelf',
section: 'Personal Links',
keywords: 'books library',
- icon: ,
+ icon: ,
perform: () =>
window.open(
'https://www.skoob.com.br/estante/livros/todos/8289961',
@@ -247,7 +248,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
name: 'Source code',
section: 'Website',
keywords: 'repo source github código fonte',
- icon: ,
+ icon: ,
perform: () =>
window.open('https://github.com/mateusfg7/mateusf.com', '_blank')
},
@@ -256,7 +257,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
name: 'License',
section: 'Website',
keywords: 'mit gpl',
- icon: ,
+ icon: ,
perform: () =>
window.open(
'https://github.com/mateusfg7/mateusf.com/blob/main/LICENSE',
@@ -268,7 +269,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
name: 'Analytics',
section: 'Website',
keywords: 'stats graph traffic',
- icon: ,
+ icon: ,
perform: () =>
window.open(
'https://analytics.umami.is/share/IV950FFonuZg4Rbn/mateusf.com',
@@ -280,7 +281,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
name: 'Sitemap',
section: 'Website',
keywords: 'map links crawler',
- icon: ,
+ icon: ,
perform: () => push('/sitemap')
}
]
@@ -289,7 +290,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
{
id: 'set-theme',
name: 'Change theme',
- icon: ,
+ icon: ,
keywords: 'theme dark light',
shortcut: ['c', 't'],
section: 'Configurations'
@@ -297,7 +298,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
{
id: 'system-theme',
name: 'System colors',
- icon: ,
+ icon: ,
parent: 'set-theme',
keywords: 'theme dark light',
perform: () => setTheme('system')
@@ -305,7 +306,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
{
id: 'dark-theme',
name: 'Dark mode',
- icon: ,
+ icon: ,
parent: 'set-theme',
keywords: 'theme dark light',
perform: () => setTheme('dark')
@@ -313,7 +314,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
{
id: 'light-theme',
name: 'Light mode',
- icon: ,
+ icon: ,
parent: 'set-theme',
keywords: 'theme dark light',
perform: () => setTheme('light')
diff --git a/src/shared/components/post-list/post-badges.tsx b/src/shared/components/post-list/post-badges.tsx
index b8865a6b..05019a01 100644
--- a/src/shared/components/post-list/post-badges.tsx
+++ b/src/shared/components/post-list/post-badges.tsx
@@ -8,18 +8,18 @@ import {
export const DraftBadge = () => (
- if (category === 'Article') return
- if (category === 'Notes') return
- if (category === 'List') return
+ if (category === 'How To') return
+ if (category === 'Article')
+ return
+ if (category === 'Notes') return
+ if (category === 'List') return
return <>>
}
@@ -53,7 +54,7 @@ export function PostLink({ post, hideYear = false }: Props) {
{showDate && (
-
+
-
+
{Math.ceil(post.reading_time.minutes)} min read
)}
-
+
{post.lastUpdate && (
@@ -117,7 +117,7 @@ export default function Page({ params }: Props) {
-
+
-
+
{Math.ceil(post.reading_time.minutes)} min read
diff --git a/src/app/blog/tag/[tag]/page.tsx b/src/app/blog/tag/[tag]/page.tsx
index b8a971a3..2bca2cfe 100644
--- a/src/app/blog/tag/[tag]/page.tsx
+++ b/src/app/blog/tag/[tag]/page.tsx
@@ -31,7 +31,7 @@ export default function Page({ params }: Props) {
{getNormalTagString(tag)}
-
+
diff --git a/src/app/components/header/mobile-menu/toggle-theme.tsx b/src/app/components/header/mobile-menu/toggle-theme.tsx
index 0201524c..66c02f85 100644
--- a/src/app/components/header/mobile-menu/toggle-theme.tsx
+++ b/src/app/components/header/mobile-menu/toggle-theme.tsx
@@ -12,21 +12,30 @@ export function ToggleTheme() {
data-theme-light={currTheme === 'light'}
className="p-4 data-[theme-light='true']:bg-neutral-300"
>
-
+
{action.name}
{action.id.startsWith('out') && (
-
+
)}
{action.subtitle && (
diff --git a/src/shared/components/kbar/provider.tsx b/src/shared/components/kbar/provider.tsx
index d284a69a..d269d237 100644
--- a/src/shared/components/kbar/provider.tsx
+++ b/src/shared/components/kbar/provider.tsx
@@ -47,7 +47,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
name: 'Home',
shortcut: ['n', 'h'],
keywords: 'homepage main',
- icon:
: getIconByStatus(status),
+ icon: test ?
: getIconByStatus(status),
keywords: tags
.split(',')
.map(tag => tag.trim())
@@ -150,7 +151,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
const tilsAsAction: Action[] = allTILs.map(til => ({
id: slug(til.title),
name: til.title,
- icon:
- Draft
+ Draft
)
export const PlannedBadge = () => (
- Planned
+ Planned
)
export const TestBadge = () => (
-
)
diff --git a/src/shared/components/post-list/post-link.tsx b/src/shared/components/post-list/post-link.tsx
index 60648e76..0838f767 100644
--- a/src/shared/components/post-list/post-link.tsx
+++ b/src/shared/components/post-list/post-link.tsx
@@ -19,10 +19,11 @@ interface Props {
}
const TitleIcon = ({ category }: { category: string }) => {
- if (category === 'How To') return
Test
+
Test