ALIEZ 1 hónapja
szülő
commit
cc898ce5bd

+ 3 - 0
messages/en.json

@@ -44,6 +44,9 @@
     "terms": "Terms of service",
     "privacy": "Privacy policy",
     "copyright": "Copyright",
+    "termsPdfHref": "/pdf/tk.pdf",
+    "privacyPdfHref": "/pdf/tk.pdf",
+    "copyrightPdfHref": "/pdf/tk.pdf",
     "phone": "Phone",
     "email": "Email",
     "phoneValue": "400-000-0000",

+ 4 - 1
messages/zh.json

@@ -44,9 +44,12 @@
     "terms": "服务条款",
     "privacy": "隐私政策",
     "copyright": "版权声明",
+    "termsPdfHref": "/pdf/tk.pdf",
+    "privacyPdfHref": "/pdf/tk.pdf",
+    "copyrightPdfHref": "/pdf/tk.pdf",
     "phone": "客服电话",
     "email": "邮箱",
-    "phoneValue": "400-000-0000",
+    "phoneValue": "18802235027",
     "emailValue": "hello@jchl.example.com",
     "rights": "© {year} 金策弘论社 · 保留所有权利",
     "tagline": "系统化交易课程与会员服务,助力理性投资与持续精进。"

+ 0 - 0
public/pdf/.gitkeep


BIN
public/pdf/tk.pdf


+ 23 - 8
src/components/site-footer.tsx

@@ -75,19 +75,34 @@ export async function SiteFooter() {
               </p>
               <ul className="space-y-3.5 text-sm font-medium">
                 <li>
-                  <Link href="/legal/terms" className="text-slate-400 transition-colors hover:text-[#f3deae]">
+                  <a
+                    href={t("termsPdfHref")}
+                    target="_blank"
+                    rel="noopener noreferrer"
+                    className="text-slate-400 transition-colors hover:text-[#f3deae]"
+                  >
                     {t("terms")}
-                  </Link>
+                  </a>
                 </li>
                 <li>
-                  <Link href="/legal/privacy" className="text-slate-400 transition-colors hover:text-[#f3deae]">
+                  <a
+                    href={t("privacyPdfHref")}
+                    target="_blank"
+                    rel="noopener noreferrer"
+                    className="text-slate-400 transition-colors hover:text-[#f3deae]"
+                  >
                     {t("privacy")}
-                  </Link>
+                  </a>
                 </li>
                 <li>
-                  <Link href="/legal/copyright" className="text-slate-400 transition-colors hover:text-[#f3deae]">
+                  <a
+                    href={t("copyrightPdfHref")}
+                    target="_blank"
+                    rel="noopener noreferrer"
+                    className="text-slate-400 transition-colors hover:text-[#f3deae]"
+                  >
                     {t("copyright")}
-                  </Link>
+                  </a>
                 </li>
               </ul>
             </div>
@@ -106,7 +121,7 @@ export async function SiteFooter() {
                   </p>
                 </div>
                 
-                <div>
+                {/* <div>
                   <p className="text-xs text-slate-500 mb-1.5">{t("email")}</p>
                   <a
                     href={`mailto:${t("emailValue")}`}
@@ -114,7 +129,7 @@ export async function SiteFooter() {
                   >
                     {t("emailValue")}
                   </a>
-                </div>
+                </div> */}
               </div>
             </div>
 

+ 2 - 2
src/components/site-header.tsx

@@ -189,9 +189,9 @@ export function SiteHeader() {
             <span>
               {tf("phone")}:{tf("phoneValue")}
             </span>
-            <span>
+            {/* <span>
               {tf("email")}:{tf("emailValue")}
-            </span>
+            </span> */}
           </div>
           <Link
             href="/courses"