调整默认参数
This commit is contained in:
@@ -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}`,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -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"} >
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user