diff --git a/public/home/img_header.png b/public/home/img_header.png index ad94a88..aa2279c 100644 Binary files a/public/home/img_header.png and b/public/home/img_header.png differ diff --git a/src/app/[[...lang]]/components/more.tsx b/src/app/[[...lang]]/components/more.tsx new file mode 100644 index 0000000..c38d935 --- /dev/null +++ b/src/app/[[...lang]]/components/more.tsx @@ -0,0 +1,17 @@ +import Link from "next/link" + +export default function More(props: {dict: Record, lang: string[]}) { + const { dict, lang } = props + return <> + + +
+
{ dict.seeMore }
+
{ dict.contactUs1 }
+
+ + + +} \ No newline at end of file diff --git a/src/app/[[...lang]]/page.tsx b/src/app/[[...lang]]/page.tsx index 5083d89..ef13efa 100644 --- a/src/app/[[...lang]]/page.tsx +++ b/src/app/[[...lang]]/page.tsx @@ -7,6 +7,7 @@ import { getDictionary } from '@/dictionaries'; import Form from "./components/form"; import Header from "@/app/components/header"; import Footer from "@/app/components/footer"; +import More from './components/more'; type CaseType = { img: string @@ -40,10 +41,10 @@ export default async function Home (props: PropsType) { { img: '/home/case_3.png' }, ] return <> -
+
+
-
@@ -161,7 +162,7 @@ export default async function Home (props: PropsType) { WebkitTextFillColor: 'transparent' }} >{ dict.caseGallery }
-
{ dict.clickNow }
+ {/*
{ dict.clickNow }
*/}
@@ -191,8 +192,7 @@ export default async function Home (props: PropsType) {
-
{ dict.seeMore }
-
{ dict.contactUs1 }
+
diff --git a/src/app/components/footer.tsx b/src/app/components/footer.tsx index 062e5ca..b15d7b9 100644 --- a/src/app/components/footer.tsx +++ b/src/app/components/footer.tsx @@ -12,7 +12,7 @@ export default function Footer(props: {dict: Record}) { height={151} alt="" /> -
{ dict.addWeChat }
+
{ dict.addWeChat }
{ dict.emailContact }
diff --git a/src/app/components/header.tsx b/src/app/components/header.tsx index f1128af..683be65 100644 --- a/src/app/components/header.tsx +++ b/src/app/components/header.tsx @@ -6,104 +6,99 @@ import { useState } from "react"; type NavType = { - name: string; - href: string; + name: string; + href: string; } -function SplitButton(props: {dict: Record, lang: string[]}) { - const { dict, lang } = props - const [show, setShow] = useState(false) - - return <> -
-
setShow(!show)}> - logo -
{ dict?.lang }
- logo -
- { - -
setShow(false)}> - -
-
{dict?.lang1}
-
- -
- - } -
- -} -export default function Header(props: {dict: Record, lang: string[]}) { + +export default function Header(props: { dict: Record, lang: string[] }) { const { dict, lang } = props const [activeTab, setActiveTab] = useState(dict.home) - const navList: NavType[] = [ + const [show, setShow] = useState(false) + + const navList: NavType[] = [ + { + name: dict.home, + href: "#home" + }, + { + name: dict.services, + href: "#service" + }, + { + name: dict.caseGallery, + href: "#case" + }, + { + name: dict.contactUs, + href: "#contact" + }, + ] + return (<> +
+ + logo + +
{ - name: dict.home, - href: "#home" - }, - { - name: dict.services, - href: "#service" - }, - { - name: dict.caseGallery, - href: "#case" - }, - { - name: dict.contactUs, - href: "#contact " - }, - ] - return (<> -
- + navList.map((item: NavType) => ( + +
setActiveTab(item.name)}> +
{item.name}
+ { + activeTab === item.name ? + : +
+ } +
+ + )) + } +
+
+
setShow(!show)}> logo +
{dict?.lang}
+ logo - -
- { - navList.map((item: NavType) => ( - -
setActiveTab(item.name)}> -
{ item.name }
- { - activeTab === item.name ? - : -
- } -
- - )) - }
-
- -
-
-
- - ) + { + +
setShow(false)}> + +
+
{dict?.lang1}
+
+ +
+ + } +
+
+
setShow(false)}>
+
+ + ) } \ No newline at end of file diff --git a/src/app/globals.css b/src/app/globals.css index dc07fc4..9a1114c 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -21,6 +21,9 @@ transform: scale(1.333); /* 1440px宽度的1.333倍是1920px */ left: calc(50% - 960px); } + .mn { + transform: scaleY(1 /1.333) + } } /* 当屏幕宽度大于或等于1920px时 */ @@ -29,4 +32,7 @@ transform: scale(1.333); /* 保持与1920px宽度的屏幕相同的缩放比例 */ left: calc(50% - 960px); } + .mn { + transform: scaleY(1 /1.333) + } } \ No newline at end of file