Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

About us v2 #2533

Merged
merged 38 commits into from
Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
d753721
Nikolai.berestevich/feat/add about us page (#2310)
nikolaiberestevich-deriv Dec 9, 2021
e75384d
nikolai.berestevich/feat: add 1st section about-us (#2314)
nikolaiberestevich-deriv Dec 13, 2021
9d7bce5
About us 2nd section (#2318)
nikolaiberestevich-deriv Dec 13, 2021
4f2b1bf
nikolai.berestevich/feat/ add our principles section (#2329)
nikolaiberestevich-deriv Dec 17, 2021
03fbf93
Pavel-Latyshou/Our principle page (#2358)
pavel-latyshou-deriv Dec 21, 2021
f39f622
Nikolai.berestevich/feat/add 4th section (#2355)
nikolaiberestevich-deriv Dec 21, 2021
b869ddc
Kevin/NJ - about us hero (#2320)
virtualpowwa Dec 22, 2021
c8d5d29
Deriv numbers block (#2364)
pavel-latyshou-deriv Dec 22, 2021
5362b98
fix about us hero (#2371)
suthesank Dec 26, 2021
9c4b56b
Nikolai.berestevich/feat/add banner (#2361)
nikolaiberestevich-deriv Dec 27, 2021
2cf8700
Pavel-Latyshou/Carousel (#2384)
pavel-latyshou-deriv Dec 27, 2021
cca020a
add tsconfig fix
ShuvoHabib Dec 27, 2021
2b8d31c
Kevin/about us office (#2387)
virtualpowwa Dec 28, 2021
e00777b
Nikolai.berestevich/feat/lead del (#2392)
nikolaiberestevich-deriv Dec 28, 2021
6c350ca
add fix scroll issue
ShuvoHabib Dec 28, 2021
f4680a9
fix safari - office numbers bug (#2396)
virtualpowwa Dec 29, 2021
c3352e4
update new content (#2397)
virtualpowwa Dec 29, 2021
eede0af
Merge branch 'master' into about-us
habib-deriv Dec 29, 2021
8cf70fb
Nikolai.berestevich/about us fix bugs (#2401)
nikolaiberestevich-deriv Dec 30, 2021
5b06a63
Pavel/text-fix our principles (#2400)
pavel-latyshou-deriv Dec 30, 2021
64782e7
nikolai.berestevich/fix: order and text (#2412)
nikolaiberestevich-deriv Dec 30, 2021
1d92a14
Kevin/fix: description, font styling on mobile (#2411)
virtualpowwa Dec 30, 2021
c4ae5ef
Nikolai.berestevich/fix/about us tom fix +refactoring (#2415)
nikolaiberestevich-deriv Dec 30, 2021
c0424f6
Kevin/fix about us lang (#2419)
virtualpowwa Dec 31, 2021
2f2d0ec
fix links on careers offices (#2422)
pavel-latyshou-deriv Dec 31, 2021
184777d
nikolai.berestevich/feat/addofficeG (#2421)
nikolaiberestevich-deriv Jan 3, 2022
2269ae9
update guernsey office info (#2429)
habib-deriv Jan 3, 2022
7f953f3
nikolai.berestevich/fix/tom2 (#2431)
nikolaiberestevich-deriv Jan 3, 2022
88c5daa
Nikolai.berestevich/fix/blue bg (#2442)
nikolaiberestevich-deriv Jan 6, 2022
5b91359
Kevin/refactor who we are nav (#2471)
virtualpowwa Jan 7, 2022
eaf5926
nikolai.berestevich/fix/whoweare (#2461)
nikolaiberestevich-deriv Jan 10, 2022
98d151c
Nikolai.berestevich/fix/whoweare bugs (#2492)
nikolaiberestevich-deriv Jan 11, 2022
0af1104
uncomment offices (#2474)
pavel-latyshou-deriv Jan 11, 2022
e597d86
Nikolai.berestvich/fix/who we are bugs 3 (#2501)
nikolaiberestevich-deriv Jan 12, 2022
6c2f14f
Pavel-Latyshov/fixes to locations (#2506)
pavel-latyshou-deriv Jan 14, 2022
d08a7f1
Nikolai.berestevich/refactor/use map (#2510)
nikolaiberestevich-deriv Jan 14, 2022
4abca7f
master merging
Jan 19, 2022
8a78e1c
master was merged
Jan 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 4 additions & 34 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,6 @@ exports.onCreatePage = ({ page, actions }) => {
const is_story = /story/g.test(page.path)
const is_market = /markets/g.test(page.path)
const is_cfds = /cfds/g.test(page.path)
const is_landing_ebooks =/landing\/ebooks/g.test(page.path)

if (is_landing_ebooks) {
createRedirect({
fromPath: `/landing/ebooks/`,
toPath: `/404/`,
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `/landing/ebooks`,
toPath: `/404`,
redirectInBrowser: true,
isPermanent: true,
})
}

if (is_responsible_trading) {
createRedirect({
Expand Down Expand Up @@ -87,13 +71,13 @@ exports.onCreatePage = ({ page, actions }) => {
if (is_story) {
createRedirect({
fromPath: `/about/`,
toPath: `/story/`,
toPath: `/who-we-are/`,
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `/about`,
toPath: `/story/`,
toPath: `/who-we-are/`,
redirectInBrowser: true,
isPermanent: true,
})
Expand Down Expand Up @@ -191,20 +175,6 @@ exports.onCreatePage = ({ page, actions }) => {
isPermanent: true,
})
}
if (is_landing_ebooks) {
createRedirect({
fromPath: `/${lang}/landing/ebooks/`,
toPath: `/${lang}/404/`,
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `/${lang}/landing/ebooks`,
toPath: `/${lang}/404`,
redirectInBrowser: true,
isPermanent: true,
})
}

if (is_contact_us) {
createRedirect({
Expand Down Expand Up @@ -245,13 +215,13 @@ exports.onCreatePage = ({ page, actions }) => {
if (is_story) {
createRedirect({
fromPath: `/${lang}/about/`,
toPath: `/${lang}/story/`,
toPath: `/${lang}/who-we-are/`,
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `/${lang}/about`,
toPath: `/${lang}/story/`,
toPath: `/${lang}/who-we-are/`,
redirectInBrowser: true,
isPermanent: true,
})
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/common/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export const addScript = (settings) => {
// Function to get the user selected language, can be used in the future once need to check other languages
export const isChoosenLanguage = () => ({ english: getLanguage() === 'en' })

// Function to manually replace server's locale ("zh_tw" or "zh_cn") to "zh-tw"/"zh-cn"
// Function to manually replace server's locale ("zh_tw" or "zh_cn") to "zh-tw"/"zh-cn"
export const replaceLocale = (locale) => {
let checked_locale = locale
if (locale === 'zh_tw') {
Expand Down
11 changes: 2 additions & 9 deletions src/components/custom/other-platforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import DTrader from 'images/svg/dtrader/dtrader-icon.svg'
import DerivGo from 'images/svg/deriv-go/deriv-go-icon.svg'
import Forex from 'images/svg/custom/forex-nav.svg'
import Help from 'images/svg/menu/help-center.svg'
import Leadership from 'images/svg/menu/leadership.svg'
import CFD from 'images/svg/custom/margin-trading-nav.svg'
import Multipliers from 'images/svg/custom/multipliers-nav.svg'
import Options from 'images/svg/custom/options-nav.svg'
Expand Down Expand Up @@ -470,15 +469,9 @@ export const NavCompany = ({ onClick }) => (
<Flex direction="column" wrap="wrap" jc="flex-start" max_width="42rem">
<CardLink
icon={() => <img src={Story} alt="" width="24" height="24" />}
title={localize('Our story')}
title={localize('Who we are')}
onClick={onClick}
to="/story/"
/>
<CardLink
icon={() => <img src={Leadership} alt="" width="24" height="24" />}
title={localize('Our leadership')}
onClick={onClick}
to="/leadership/"
to="/who-we-are/"
/>
<CardLink
icon={() => <img src={RegulatoryInfo} alt="" width="24" height="24" />}
Expand Down
11 changes: 2 additions & 9 deletions src/components/elements/off-canvas-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import DTrader from 'images/svg/dtrader/dtrader-icon.svg'
import DerivGo from 'images/svg/deriv-go/deriv-go-icon.svg'
import Forex from 'images/svg/custom/forex-nav.svg'
import Help from 'images/svg/menu/help-center.svg'
import Leadership from 'images/svg/menu/leadership.svg'
import CFD from 'images/svg/custom/margin-trading-nav.svg'
import Multipliers from 'images/svg/custom/multipliers-nav.svg'
import Options from 'images/svg/custom/options-nav.svg'
Expand Down Expand Up @@ -377,17 +376,11 @@ export const OffCanvasMenuWrapper = (props) => {
header_style={header_style}
style={content_style}
>
<StyledLink to="/story/" onClick={handleArrowClick}>
<StyledLink to="/who-we-are/" onClick={handleArrowClick}>
<div>
<img src={Story} alt="" width="24" height="24" />
</div>
<span>{localize('Our story')}</span>
</StyledLink>
<StyledLink to="/leadership/" onClick={handleArrowClick}>
<div>
<img src={Leadership} alt="" width="24" height="24" />
</div>
<span>{localize('Our leadership')}</span>
<span>{localize('Who we are')}</span>
</StyledLink>
<StyledLink to="/partners/" onClick={handleArrowClick}>
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/elements/query-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type QueryImageProps = {
loading?: 'eager' | 'lazy'
}

type ImageWrapperProps = {
export type ImageWrapperProps = {
width: string
height: string
className?: string
Expand Down
1 change: 1 addition & 0 deletions src/components/form/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const SharedButtonStyle = css`
padding: 17px 24px;
font-size: 20px;
line-height: 30px;
border-radius: 8px;

&:hover {
background-color: var(--color-red-3);
Expand Down
5 changes: 1 addition & 4 deletions src/components/layout/footer/main-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ const MainLinksSection = ({ is_ppc, is_ppc_redirect, is_eu_country }) => {
<Title>{localize('ABOUT')}</Title>
</LinkWrapper>
<LinkWrapper first_child="true">
<Link to="/story/">{localize('Our story')}</Link>
</LinkWrapper>
<LinkWrapper>
<Link to="/leadership/">{localize('Our leadership')}</Link>
<Link to="/who-we-are/">{localize('Who we are')}</Link>
</LinkWrapper>
<LinkWrapper>
<Link to="/why-choose-us/">{localize('Why choose us?')}</Link>
Expand Down
6 changes: 5 additions & 1 deletion src/components/layout/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types'
import styled from 'styled-components'
import useGTMData from '../hooks/use-gtm-data'
import Copyright from './copyright'
import { Nav, NavStatic, NavPartners, NavInterim } from './nav'
import { Nav, NavStatic, NavPartners, NavInterim, NavSticky } from './nav'
import JumpIndicesNav from './jump-indices/nav'
import { NavCareers } from './nav-careers'
import { LocationProvider } from './location-context'
Expand Down Expand Up @@ -209,6 +209,10 @@ const Layout = ({
Navigation = <NavCareers />
FooterNav = <Footer no_language={true} type={type} />
break
case 'about-us':
Navigation = <NavSticky is_ppc_redirect={is_ppc_redirect} is_ppc={is_ppc} />
FooterNav = <Footer is_ppc={is_ppc} is_ppc_redirect={is_ppc_redirect} />
break
default:
Navigation = <Nav is_ppc_redirect={is_ppc_redirect} is_ppc={is_ppc} />
FooterNav = <Footer is_ppc={is_ppc} is_ppc_redirect={is_ppc_redirect} />
Expand Down
Loading