فهرست منبع

feat: 隐私协议和服务条款页面

BaiLuoYan 1 ماه پیش
والد
کامیت
45bc8ccad3
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      src/pages/privacyPolicy/index.tsx
  2. 2 2
      src/pages/termsOfService/index.tsx

+ 2 - 2
src/pages/privacyPolicy/index.tsx

@@ -17,7 +17,7 @@ const PrivacyPolicy: React.FC = () => {
 
     useEffect(() => {
         loadMdByLang('privacyPolicy', i18n.language, {
-            replacements: { '[Insert Date]': DOC_LAST_UPDATED }, // 替换 MD 中的 [Insert Date]
+            replacements: { '[Insert Date]': `${DOC_LAST_UPDATED}\n` },
         }).then(({ content, usedLang }) => {
             setMdLang(usedLang);
             setMdContent(content);
@@ -40,7 +40,7 @@ const PrivacyPolicy: React.FC = () => {
                         {t('pages.privacyPolicy.title')}
                     </span>
                     <div
-                        className={`flex flex-col bg-[#1B1D22] text-white rounded-xl shadow-[0px_4px_10px_0px_rgba(0,0,0,0.05)] ${isMobile ? 'p-[14px] gap-2' : 'p-[25px_30px_25px_25px] gap-5'}`}
+                        className={`flex flex-col bg-[#1B1D22] text-white/80 rounded-xl shadow-[0px_4px_10px_0px_rgba(0,0,0,0.05)] ${isMobile ? 'p-[14px] gap-2 text-sm' : 'p-[25px_30px_25px_25px] gap-5 text-base'}`}
                         dir={dir}
                         style={{
                             direction: dir,

+ 2 - 2
src/pages/termsOfService/index.tsx

@@ -17,7 +17,7 @@ const TermsOfService: React.FC = () => {
 
     useEffect(() => {
         loadMdByLang('termsOfService', i18n.language, {
-            replacements: { '[Insert Date]': DOC_LAST_UPDATED }, // 替换 MD 中的 [Insert Date]
+            replacements: { '[Insert Date]': `${DOC_LAST_UPDATED}\n` },
         }).then(({ content, usedLang }) => {
             setMdLang(usedLang);
             setMdContent(content);
@@ -40,7 +40,7 @@ const TermsOfService: React.FC = () => {
                         {t('pages.termsOfService.title')}
                     </span>
                     <div
-                        className={`flex flex-col bg-[#1B1D22] text-white/80 rounded-xl shadow-[0px_4px_10px_0px_rgba(0,0,0,0.05)] ${isMobile ? 'p-[14px] gap-2' : 'p-[25px_30px_25px_25px] gap-5'}`}
+                        className={`flex flex-col bg-[#1B1D22] text-white/80 rounded-xl shadow-[0px_4px_10px_0px_rgba(0,0,0,0.05)] ${isMobile ? 'p-[14px] gap-2 text-sm' : 'p-[25px_30px_25px_25px] gap-5 text-base'}`}
                         dir={dir}
                         style={{
                             direction: dir,