diff --git a/src/app/[[...lang]]/page.tsx b/src/app/[[...lang]]/page.tsx index b2371b9..5083d89 100644 --- a/src/app/[[...lang]]/page.tsx +++ b/src/app/[[...lang]]/page.tsx @@ -41,8 +41,11 @@ export default async function Home (props: PropsType) { ] return <>
-
+
+
+
-
+
{ caseList.map((item: CaseType, index: number) => { - return
-
+ return
+
}) } -
+
{ dict.seeMore }
{ dict.contactUs1 }
@@ -216,6 +219,7 @@ export default async function Home (props: PropsType) {
+
diff --git a/src/app/components/header.tsx b/src/app/components/header.tsx index 560444a..f1128af 100644 --- a/src/app/components/header.tsx +++ b/src/app/components/header.tsx @@ -4,6 +4,7 @@ import { useState } from "react"; + type NavType = { name: string; href: string; @@ -12,6 +13,7 @@ type NavType = { function SplitButton(props: {dict: Record, lang: string[]}) { const { dict, lang } = props const [show, setShow] = useState(false) + return <>
{dict?.lang1}
@@ -69,16 +71,19 @@ export default function Header(props: {dict: Record, lang: strin }, ] return (<> -
- logo -
+ + logo + +
{ navList.map((item: NavType) => ( @@ -94,8 +99,7 @@ export default function Header(props: {dict: Record, lang: strin )) }
-
- +
diff --git a/src/app/globals.css b/src/app/globals.css index bcf21eb..dc07fc4 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -2,4 +2,31 @@ @tailwind components; @tailwind utilities; + .main::-webkit-scrollbar { + display: none; + } + + .main { + -ms-overflow-style: none; + scrollbar-width: none; + } + .container { + transform-origin: top left; /* 设置变换原点为左上角 */ + } + + /* 当屏幕宽度在1440px到1920px之间时 */ + @media screen and (min-width: 1440px) and (max-width: 1920px) { + .container { + transform: scale(1.333); /* 1440px宽度的1.333倍是1920px */ + left: calc(50% - 960px); + } + } + + /* 当屏幕宽度大于或等于1920px时 */ + @media screen and (min-width: 1920px) { + .container { + transform: scale(1.333); /* 保持与1920px宽度的屏幕相同的缩放比例 */ + left: calc(50% - 960px); + } + } \ No newline at end of file diff --git a/src/dictionaries/zh.json b/src/dictionaries/zh.json index c9309cd..43351ed 100644 --- a/src/dictionaries/zh.json +++ b/src/dictionaries/zh.json @@ -28,5 +28,5 @@ "privacyPolicy": "隐私条款", "userAgreement": "用户协议", "productPricing": "产品定价", - "clickToPlay": "点击游玩" + "clickToPlay": "点击试玩" } \ No newline at end of file