Skip to content

Commit

Permalink
Update home page (#51)
Browse files Browse the repository at this point in the history
* Config packageManager

* Remove zh-cn from i18n configuration

* Remove home nav

* Remove language nav

* Update job nav

* Update content

* Update notify slack channel

* Update hero title content case

* Remove the period

* Update slack channel to notify deploy
  • Loading branch information
JayJay1024 authored Sep 13, 2024
1 parent f1a8265 commit 3d00291
Show file tree
Hide file tree
Showing 13 changed files with 107 additions and 111 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:
enable_cache: true
enable_notify_comment: true
enable_notify_slack: true
slack_channel: public-darwinia-websites-apps
slack_channel: public-darwinia-devs
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
prod_mode: true
enable_cache: true
enable_notify_slack: true
slack_channel: public-darwinia-websites-apps
slack_channel: public-darwinia-devs
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}

2 changes: 1 addition & 1 deletion .github/workflows/deploy-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
project_name: home-io
enable_cache: true
enable_notify_slack: true
slack_channel: public-darwinia-websites-apps
slack_channel: public-darwinia-devs
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@
"not dead",
"not ie <= 11",
"not op_mini all"
]
],
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
25 changes: 6 additions & 19 deletions src/components/PageHeader/PageHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,9 @@ class PageHeader extends Component {
<img alt="logo" src={theme === 'dark' ? logo_light : logo}/>
</Navbar.Brand>
<Nav className={styles.navLinks}>
<Nav.Link href="/" onClick={this.onClickAnchor}><span
className={styles.NavLink}>{t('header:home')}</span></Nav.Link>
<Nav.Link href="/#product" onClick={this.onClickAnchor}><span
className={styles.NavLink}>{t('header:product')}</span></Nav.Link>
<Nav.Link href="/jobs"><span className={styles.NavLink}>{t('header:jobs')}</span></Nav.Link>
{curLang.toLowerCase() === 'zh-cn' ? <div className={styles.Language}
onClick={() => this.changeLng('en-us')}>English</div> :
<div className={styles.Language}
onClick={() => this.changeLng('zh-cn')}>中文</div>}
<Nav.Link href="/#our_portfolio" onClick={this.onClickAnchor}><span
className={styles.NavLink}>Work</span></Nav.Link>
<a rel="noopener noreferrer" target="_blank" href="https://apply.workable.com/itering" className={styles.NavLink} style={{ marginLeft: 12 }}>Careers</a>
</Nav>
<div className={styles.mobileMenu} onClick={this.showDrawer}>
<img alt="menu" className={styles.menuIcon} src={menu_icon}/>
Expand All @@ -127,16 +121,9 @@ class PageHeader extends Component {
<img alt="close" onClick={this.onClose} src={close_icon}/>
</div>
<Nav className={styles.linkContent}>
<Nav.Link href="/" onClick={this.onClose}><span
className={styles.NavLink}>{t('header:home')}</span></Nav.Link>
<Nav.Link href="/#product" onClick={this.onClose}><span
className={styles.NavLink}>{t('header:product')}</span></Nav.Link>
<Nav.Link href="/jobs" onClick={this.onClose}><span
className={styles.NavLink}>{t('header:jobs')}</span></Nav.Link>
{curLang.toLowerCase() === 'zh-cn' ? <div className={styles.Language}
onClick={() => this.changeLng('en-us')}>English</div> :
<div className={styles.Language}
onClick={() => this.changeLng('zh-cn')}>中文</div>}
<Nav.Link href="/#our_portfolio" onClick={this.onClose}><span
className={styles.NavLink}>Work</span></Nav.Link>
<a rel="noopener noreferrer" target="_blank" href="https://apply.workable.com/itering" className={styles.NavLink}>Careers</a>
</Nav>
<PageFooter/>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/locales/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import LanguageDetector from 'i18next-browser-languagedetector';
import browserDetector from './browserDetector'

import en_us from './en-us'
import zh_cn from './zh-cn'
// import zh_cn from './zh-cn'

const languageDetector = new LanguageDetector();
languageDetector.addDetector(browserDetector);
Expand All @@ -17,9 +17,9 @@ const resources = {
en: {
...en_us
},
zh: {
...zh_cn
}
// zh: {
// ...zh_cn
// }
};

i18n
Expand Down
10 changes: 10 additions & 0 deletions src/page/Home/img2/eco-partners-degate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/page/Home/img2/eco-partners-ringdao.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/page/Home/img2/portfolio-helix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/page/Home/img2/portfolio-ringdao.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/page/Home/img2/portfolio-subscan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3d00291

Please sign in to comment.