mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: better tool titles
This commit is contained in:
1 parent
66cb197b53
commit
aa93ae6918
1 file changed
+7
-3
@@ -1,5 +1,6 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
|
import Link from 'next/link';
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from 'next/navigation';
|
||||||
import { ReactNode, Suspense } from 'react';
|
import { ReactNode, Suspense } from 'react';
|
||||||
import { TOOLS } from '../../constants/tools';
|
import { TOOLS } from '../../constants/tools';
|
||||||
@@ -24,7 +25,6 @@ export default function ToolsLayout({ children }: ToolsLayoutProps) {
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
gap: 4,
|
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
@@ -46,14 +46,18 @@ export default function ToolsLayout({ children }: ToolsLayoutProps) {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<span
|
<Link
|
||||||
|
href={`/tools/${toolId}`}
|
||||||
style={{
|
style={{
|
||||||
|
textDecoration: 'none',
|
||||||
|
fontWeight: 900,
|
||||||
color: theme.colors.textHighContrast,
|
color: theme.colors.textHighContrast,
|
||||||
fontSize: 32,
|
fontSize: 32,
|
||||||
|
letterSpacing: -1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{tool?.title}
|
{tool?.title}
|
||||||
</span>
|
</Link>
|
||||||
<span
|
<span
|
||||||
style={{
|
style={{
|
||||||
color: theme.colors.textLowContrast,
|
color: theme.colors.textLowContrast,
|
||||||
|
|||||||
Reference in new issue
Block a user