mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: removed banner
This commit is contained in:
1 parent
34ba3ffdde
commit
1b611fa7c4
2 files changed
+49
-47
No files matched your search
+49
-46
@@ -13,62 +13,65 @@ interface ToolsLayoutProps {
|
|||||||
|
|
||||||
export default function ToolsLayout({ children }: ToolsLayoutProps) {
|
export default function ToolsLayout({ children }: ToolsLayoutProps) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
const toolId = pathname.split('/').at(2);
|
const pathSplit = pathname.split('/');
|
||||||
|
const toolId = pathSplit.at(2);
|
||||||
const tool = TOOLS.find((tool) => tool.id === toolId);
|
const tool = TOOLS.find((tool) => tool.id === toolId);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{tool && <title>{tool.title}</title>}
|
{tool && <title>{tool.title}</title>}
|
||||||
|
|
||||||
<div
|
{pathSplit.length === 3 && (
|
||||||
style={{
|
|
||||||
height: 128,
|
|
||||||
boxShadow: `inset 0 -192px 128px -128px ${theme.colors.appBackground1}`,
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
justifyContent: 'center',
|
|
||||||
flexDirection: 'column',
|
|
||||||
position: 'relative',
|
|
||||||
overflow: 'hidden',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
position: 'absolute',
|
height: 128,
|
||||||
backgroundImage: `url(/assets/banners/${toolId}.webp)`,
|
boxShadow: `inset 0 -192px 128px -128px ${theme.colors.appBackground1}`,
|
||||||
backgroundSize: 'cover',
|
display: 'flex',
|
||||||
backgroundPosition: 'center',
|
alignItems: 'center',
|
||||||
width: '100%',
|
justifyContent: 'center',
|
||||||
height: '100%',
|
flexDirection: 'column',
|
||||||
top: 0,
|
position: 'relative',
|
||||||
left: 0,
|
overflow: 'hidden',
|
||||||
zIndex: -1,
|
|
||||||
filter: 'blur(4px)',
|
|
||||||
transform: 'scale(calc((128 + 8) / 128))',
|
|
||||||
}}
|
}}
|
||||||
/>
|
>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
position: 'absolute',
|
||||||
|
backgroundImage: `url(/assets/banners/${toolId}.webp)`,
|
||||||
|
backgroundSize: 'cover',
|
||||||
|
backgroundPosition: 'center',
|
||||||
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
zIndex: -1,
|
||||||
|
filter: 'blur(4px)',
|
||||||
|
transform: 'scale(calc((128 + 8) / 128))',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
<Link
|
<Link
|
||||||
href={`/tools/${toolId}`}
|
href={`/tools/${toolId}`}
|
||||||
style={{
|
style={{
|
||||||
textDecoration: 'none',
|
textDecoration: 'none',
|
||||||
fontWeight: 900,
|
fontWeight: 900,
|
||||||
color: theme.colors.textHighContrast,
|
color: theme.colors.textHighContrast,
|
||||||
fontSize: 32,
|
fontSize: 32,
|
||||||
letterSpacing: -1,
|
letterSpacing: -1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{tool?.title}
|
{tool?.title}
|
||||||
</Link>
|
</Link>
|
||||||
<span
|
<span
|
||||||
style={{
|
style={{
|
||||||
color: theme.colors.textLowContrast,
|
color: theme.colors.textLowContrast,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{tool?.description}
|
{tool?.description}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
<Suspense fallback={<Loader />}>{children}</Suspense>
|
<Suspense fallback={<Loader />}>{children}</Suspense>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ export function TankComponentButton({
|
|||||||
<Text
|
<Text
|
||||||
size="1"
|
size="1"
|
||||||
style={{
|
style={{
|
||||||
color: 'white',
|
|
||||||
textShadow: '0 0 4px black',
|
textShadow: '0 0 4px black',
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
|
|||||||
Reference in new issue
Block a user