mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-21 21:04:42 +01:00
fix: seo
This commit is contained in:
1 parent
6e0429332d
commit
50c77e0ae1
2 files changed
+20
-17
No files matched your search
@@ -1,11 +1,11 @@
|
|||||||
import { Flex, type FlexProps, Theme } from '@radix-ui/themes';
|
import { Flex, type FlexProps, Theme } from "@radix-ui/themes";
|
||||||
import type { ComponentProps } from 'react';
|
import type { ComponentProps } from "react";
|
||||||
import { NAVBAR_HEIGHT } from '../constants/navbar';
|
import { NAVBAR_HEIGHT } from "../constants/navbar";
|
||||||
import type { RadixSize } from '../stores/embedState';
|
import type { RadixSize } from "../stores/embedState";
|
||||||
import { BlitzKitTheme } from './BlitzKitTheme';
|
import { BlitzKitTheme } from "./BlitzKitTheme";
|
||||||
|
|
||||||
type PageWrapperProps = FlexProps & {
|
type PageWrapperProps = FlexProps & {
|
||||||
color?: ComponentProps<typeof Theme>['accentColor'];
|
color?: ComponentProps<typeof Theme>["accentColor"];
|
||||||
containerProps?: ComponentProps<typeof Theme>;
|
containerProps?: ComponentProps<typeof Theme>;
|
||||||
noFlex1?: boolean;
|
noFlex1?: boolean;
|
||||||
padding?: RadixSize;
|
padding?: RadixSize;
|
||||||
@@ -19,7 +19,7 @@ export function PageWrapper({
|
|||||||
noFlex1 = false,
|
noFlex1 = false,
|
||||||
containerProps,
|
containerProps,
|
||||||
noMinHeight = false,
|
noMinHeight = false,
|
||||||
padding = '4',
|
padding = "4",
|
||||||
...props
|
...props
|
||||||
}: PageWrapperProps) {
|
}: PageWrapperProps) {
|
||||||
return (
|
return (
|
||||||
@@ -27,9 +27,9 @@ export function PageWrapper({
|
|||||||
accentColor={color}
|
accentColor={color}
|
||||||
style={{
|
style={{
|
||||||
flex: noFlex1 ? undefined : 1,
|
flex: noFlex1 ? undefined : 1,
|
||||||
display: 'flex',
|
display: "flex",
|
||||||
minHeight: noMinHeight ? 'unset' : `calc(100svh - ${NAVBAR_HEIGHT}px)`,
|
minHeight: noMinHeight ? "unset" : `calc(100svh - ${NAVBAR_HEIGHT}px)`,
|
||||||
flexDirection: 'column',
|
flexDirection: "column",
|
||||||
...containerProps?.style,
|
...containerProps?.style,
|
||||||
}}
|
}}
|
||||||
{...containerProps}
|
{...containerProps}
|
||||||
@@ -41,8 +41,8 @@ export function PageWrapper({
|
|||||||
width="100%"
|
width="100%"
|
||||||
maxWidth="80rem"
|
maxWidth="80rem"
|
||||||
style={{
|
style={{
|
||||||
margin: 'auto',
|
margin: "auto",
|
||||||
boxSizing: 'border-box',
|
boxSizing: "border-box",
|
||||||
flex: 1,
|
flex: 1,
|
||||||
...style,
|
...style,
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
import { PageWrapper } from "../../../components/PageWrapper";
|
import ToolOpenGraph from "../../../components/ToolOpenGraph.astro";
|
||||||
|
import { tools } from "../../../constants/tools";
|
||||||
import BaseLayout from "../../../layouts/BaseLayout.astro";
|
import BaseLayout from "../../../layouts/BaseLayout.astro";
|
||||||
import { Page } from "./_index";
|
import { Page } from "./_index";
|
||||||
|
|
||||||
@@ -8,8 +9,10 @@ export { getStaticPaths } from "../index.astro";
|
|||||||
const { locale } = Astro.params;
|
const { locale } = Astro.params;
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<ToolOpenGraph tool={tools.mixer} />
|
||||||
|
|
||||||
<BaseLayout integrated>
|
<BaseLayout integrated>
|
||||||
<Page {locale} client:only="react">
|
<Page {locale} client:only="react">
|
||||||
<Page {locale} skeleton slot="fallback" />
|
<Page {locale} skeleton slot="fallback" />
|
||||||
</Page>
|
</Page>
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
Reference in new issue
Block a user