From ad991e86d29d23741b5f3635f6003d353286b230 Mon Sep 17 00:00:00 2001
From: guofei <1633295391@qq.com>
Date: Mon, 10 Feb 2025 21:17:13 +0800
Subject: [PATCH] optimize
---
src/app/[[...lang]]/page.tsx | 220 +++++++++++++--------------
src/app/components/ChannelSwiper.tsx | 70 +++++----
start.sh | 2 +-
3 files changed, 146 insertions(+), 146 deletions(-)
diff --git a/src/app/[[...lang]]/page.tsx b/src/app/[[...lang]]/page.tsx
index 30fc0fe..22bb831 100644
--- a/src/app/[[...lang]]/page.tsx
+++ b/src/app/[[...lang]]/page.tsx
@@ -7,123 +7,119 @@ import Examples from "../components/Examples";
import ChannelSwiper from "../components/ChannelSwiper";
export default async function Home(props: { params: { lang: string[] } }) {
- const lang = props.params.lang || ["zh"];
+ const lang = props.params.lang || ["zh"];
- const dict = await getDictionary(lang[0]);
+ const dict = await getDictionary(lang[0]);
- return (
- <>
-
-
-
-
-
-

-
-
- {dict.FocusingOnPlayableAds}
-
-
- {dict.goOverseas}
-
-
-
-
-

-
{dict.customized}
-
+ return (
+ <>
+
+
+
+
+
+

+
+
+ {dict.FocusingOnPlayableAds}
+
+
+ {dict.goOverseas}
+
+
+
+
+

+
{dict.customized}
+
-
-

-
{dict.ABTesting}
-
{dict.iterateGameplay}
-
-
-

-
{dict.multiLanguage}
-
{dict.breakingGeographical}
-
-
-

-
{dict.allChannel}
-
{dict.expandInfluence}
-
+
+

+
{dict.ABTesting}
+
{dict.iterateGameplay}
+
+
+

+
{dict.multiLanguage}
+
{dict.breakingGeographical}
+
+
+

+
{dict.allChannel}
+
{dict.expandInfluence}
+
-
-

-
{dict.lightweightDeployment}
-
{dict.simplifyProcess}
-
+
+

+
{dict.lightweightDeployment}
+
{dict.simplifyProcess}
+
-
-
+
+
+
+
+ {dict.caseGallery}
+
+ {/*
{ dict.clickNow }
*/}
+
+
-
-
- {dict.caseGallery}
-
- {/*
{ dict.clickNow }
*/}
-
-
-
-
-
-
-
-
- {dict.businessCooperation}info@soyootech.com
-
-
-
-
-
-
-
- >
- );
+
+
+
+
+
+ {dict.businessCooperation}info@soyootech.com
+
+
+
+
+
+
+
+ >
+ );
}
diff --git a/src/app/components/ChannelSwiper.tsx b/src/app/components/ChannelSwiper.tsx
index d7b03e4..26be272 100644
--- a/src/app/components/ChannelSwiper.tsx
+++ b/src/app/components/ChannelSwiper.tsx
@@ -2,40 +2,44 @@
import Marquee from "react-fast-marquee";
const data = [
- { url: "logo-yandex.png" },
- { url: "logo-weixin.png" },
- { url: "logo-vungle.png" },
- { url: "logo-unity.png" },
- { url: "logo-tiktok.png" },
- { url: "logo-tapjoy.png" },
- { url: "logo-pangle.png" },
- { url: "logo-moloco.png" },
- { url: "logo-mintegral.png" },
- { url: "logo-liftoff.png" },
- { url: "logo-kwai.png" },
- { url: "logo-google.png" },
- { url: "logo-facebook.png" },
- { url: "logo-chartboost.png" },
- { url: "logo-bigoads.png" },
- { url: "logo-applovin.png" },
+ { url: "logo-yandex.png" },
+ { url: "logo-weixin.png" },
+ { url: "logo-vungle.png" },
+ { url: "logo-unity.png" },
+ { url: "logo-tiktok.png" },
+ { url: "logo-tapjoy.png" },
+ { url: "logo-pangle.png" },
+ { url: "logo-moloco.png" },
+ { url: "logo-mintegral.png" },
+ { url: "logo-liftoff.png" },
+ { url: "logo-kwai.png" },
+ { url: "logo-google.png" },
+ { url: "logo-facebook.png" },
+ { url: "logo-chartboost.png" },
+ { url: "logo-bigoads.png" },
+ { url: "logo-applovin.png" },
];
export default function ChannelSwiper() {
- // const isMobile = /Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent);
- // isMobile ? 15 :
- return (
- <>
-
-
-
- >
- );
+ // const isMobile = /Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent);
+ // isMobile ? 15 :
+ return (
+ <>
+
+
+
+ >
+ );
}
diff --git a/start.sh b/start.sh
index aa8a93f..3e60d43 100644
--- a/start.sh
+++ b/start.sh
@@ -9,7 +9,7 @@ fi
pm2 startup
pm2 save
pm2 start --name addseed-web npm -- run start
-pm2 set your-app-name autorestart true
+pm2 set addseed-web autorestart true
pm2 save
echo "PM2启动脚本执行完毕。"
\ No newline at end of file