Преглед изворни кода

chore: add dsm store button in landing

DaiQiangReal пре 3 година
родитељ
комит
007fd661d4
3 измењених фајлова са 16 додато и 4 уклоњено
  1. 3 1
      src/locale/en-US.js
  2. 3 1
      src/locale/zh-CN.js
  3. 10 2
      src/sitePages/newHome/components/dsm/dsm.jsx

+ 3 - 1
src/locale/en-US.js

@@ -145,7 +145,9 @@ const appLocale = {
         "uniform_style_and_high_fidelity_prototype_facilitate_communication_with_front_en_95d0c0ccece05c104b98ac0dae9fb53b": "It’s fluent to communicate with front-end devs because of the uniform style.",
         "user": "User",
         "video_compression_algorithm": "Video compression algorithm",
-        "volcano_little_helper": "Volcano Little"
+        "volcano_little_helper": "Volcano Little",
+        "theme_store":'Theme Store',
+        'semi_dsm':'Semi DSM'
     },
 };
 

+ 3 - 1
src/locale/zh-CN.js

@@ -140,7 +140,9 @@ const appLocale = {
         "send": "发送",
         "sender": "发信人",
         "private_message_content": "私信内容",
-        "time_of_dispatch": "发信时间"
+        "time_of_dispatch": "发信时间",
+        "theme_store":'主题商店',
+        'semi_dsm':'Semi 设计系统管理'
     },
 };
 

+ 10 - 2
src/sitePages/newHome/components/dsm/dsm.jsx

@@ -7,16 +7,24 @@ function Dsm(props) {
     const goDsm = () => {
         location.href = DSM_URL?DSM_URL:"https://semi.design/dsm/landing";
     };
+    const goThemeStore = ()=>{
+        location.href = '/dsm_store';
+    };
     return (
         <div {...props} className={styles.frame14293}>
             <div className={styles.frame14291}>
                 <div className={styles.autoWrapper}>
 
-                    <p className={styles.semiDSM}>Semi DSM</p>
+                    <p className={styles.semiDSM}>{_t('semi_dsm',{},'Semi 设计系统管理')}</p>
                 </div>
                 <p className={styles.text_86d8f999}>{_t("powerful_theme_editor__real_time_effect__one_click_synchronization_of_design_too_d77f5776bf126331e801d6d6aa0146f2", { }, "强大的主题编辑器,实时生效,设计工具一键同步")}</p>
-                <div onClick={goDsm} className={styles.buttonSecondarySolid}>
+                <div style={{display:'flex'}}>
+                <a onClick={goDsm} className={styles.buttonSecondarySolid} style={{marginRight:'20px'}} href='/dsm'>
                     <p className={styles.text_8f6c2dc2}>{_t("learn_more", { }, "了解更多")}</p>
+                </a>
+                <a onClick={goThemeStore} className={styles.buttonSecondarySolid} href="/theme_store">
+                    <p className={styles.text_8f6c2dc2} style={{color:'var(--semi-color-primary)'}}>{_t("theme_store", { }, "主题商店")}</p>
+                </a>
                 </div>
             </div>
             <video autoPlay loop muted src="https://lf9-static.semi.design/obj/semi-tos/images/homepage-dsm.mp4" type="video/mp4" className={styles.frame4160}></video>