调整默认参数

This commit is contained in:
ymk
2025-08-19 19:22:48 +08:00
parent 04901b7244
commit c7de49e575
5 changed files with 3 additions and 80 deletions

View File

@@ -1,66 +0,0 @@
import Footer from "@/components/Footer";
import Header from "@/components/Header";
import { Box, Flex } from "@radix-ui/themes";
import { Metadata } from "next";
export default function Page() {
return (
<Flex direction={"column"} gap={"4"}>
<Header />
<Box p="4" className="text-center">
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSeFbI-Bu-RsuYg1SP3_-L7wo5OOIfp5XR7H4E7jYgullaCm7g/viewform?embedded=true" className="w-full h-full" >Loading</iframe>
</Box>
<Footer />
</Flex>
)
}
const host = process.env.NEXT_PUBLIC_HOST;
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}): Promise<Metadata> {
const { locale } = await params;
const name = "features-form";
const title = "new features wanted";
const description = title;
return {
title,
description,
openGraph: {
title,
description,
url: `${host}/${locale}/${name}`,
images: [
{
url: `${process.env.NEXT_PUBLIC_HOST}/og-image.png`,
width: 1200,
height: 630,
alt: title,
},
],
locale: locale,
type: "website",
},
twitter: {
card: "summary_large_image",
title,
description,
images: [`${process.env.NEXT_PUBLIC_HOST}/og-image.png`],
},
alternates: {
canonical: `${host}/${name}`,
languages: {
en: `${host}/en/${name}`,
zh: `${host}/zh/${name}`,
},
},
};
}

View File

@@ -32,14 +32,6 @@ export default function Footer() {
>
{t("blogName")}
</Link>
<Link
href="/features-form"
className="text-sm text-muted-foreground hover:text-primary"
>
Features Wanted
</Link>
</Flex>
<Flex gap={"2"} direction={"column"} >

View File

@@ -18,7 +18,7 @@ export default function Page({ textProp, backgroundProp, effectProp }: { textPro
const t = useTranslations("TextEditor");
backgroundProp = backgroundProp || {
color: "#c4b1b1",
color: "#a49494",
image: null,
} satisfies BackgroundProp;

View File

@@ -43,7 +43,7 @@ export class TextProp {
}
return {
text,
color: "#8e86fe",
color: ["#ce6464", "#63635a"],
colorGradientDir: "l2r",
font,
fontUrl: getOnlineFontPath(font, FontWeight.Regular),
@@ -79,9 +79,6 @@ export default function TextSetting({
setText: (text: TextProp) => void;
}) {
const locale = useLocale();
const t = useTranslations("TextEditor");
const [uploadFonts, setUploadFonts] = useState<UploadFont[]>([]);
const isPureColor = !Array.isArray(text.color);

View File

@@ -52,7 +52,7 @@ export function init(
// controls
controls = new OrbitControls(camera, renderer.domElement);
controls.screenSpacePanning = true;
// controls.screenSpacePanning = false;
controls.enabled = true;
// controls.enablePan = false;