Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Konstantinos / remove belarus (#5473)
Browse files Browse the repository at this point in the history
* feat: remove belarus

* fix: remove images

---------

Co-authored-by: Konstantinos-Gk <[email protected]>
  • Loading branch information
konstantinosG-deriv and Konstantinos-Gk authored Sep 1, 2023
1 parent a4d2f2f commit 3747689
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 199 deletions.
5 changes: 0 additions & 5 deletions crowdin/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
"93147818": "<0>Hits & Impression</0> report: Displays your hit and click-through rates",
"94340092": "Asian options are available on the SmartTrader and Deriv Bot trading platforms. You can trade Asian options on synthetics.",
"94412618": "Yes, you can customise the trade duration of your Only Ups/Only Downs contracts. The available time periods range from 2 ticks to 5 ticks.",
"94912230": "Belarus",
"95016326": "Kindly follow the steps:",
"96820070": "<0>50 lots</0> with 100 leverage:",
"97278922": "Max effective leverage",
Expand Down Expand Up @@ -588,7 +587,6 @@
"606371596": "How to trade the forex market",
"607535944": "5 - 30 minutes",
"607853927": "The price barrier in Touch/No Touch contracts refers to the specified price level that the underlying instrument's price needs to touch or not touch during the contract duration.",
"609069249": "Minsk, Belarus",
"612131072": "Clients in the rest of the world (except for restricted countries such as the USA, Canada, and Hong Kong) can have accounts under Deriv (SVG) LLC.",
"613877038": "Chart",
"613971219": "Email image",
Expand Down Expand Up @@ -1013,7 +1011,6 @@
"1050003244": "USD/ZAR",
"1051666965": "Volatility 300 Index",
"1051732300": "Secure and responsible online trading guidelines | Deriv",
"1052239082": "Minsk | Our office – Belarus | Deriv",
"1053153674": "Jump 50 Index",
"1053405337": "Min deposit",
"1053562787": "easy signup",
Expand Down Expand Up @@ -1096,7 +1093,6 @@
"1126492980": "The <0>Buy/Sell</0> tab shows you ads by other advertisers. You can see your ads in the <0>My ads</0> tab.",
"1126725671": "A notice to help you understand the risks that might arise when you trade on Deriv",
"1126917116": "Micro pairs",
"1127858885": "Find your role with us by browsing Deriv job opportunities in Minsk, Belarus.",
"1128046384": "No. You can withdraw your commission whenever you want.",
"1129126362": "<0> -0.83</0>",
"1130568086": "To withdraw funds from your Deriv X account, you’ll first need to transfer the funds to your Deriv account. Go to Cashier, click \"Transfer\", and follow the instructions on the screen.",
Expand Down Expand Up @@ -3075,7 +3071,6 @@
"-1625504236": "Guernsey",
"-623790227": "Asia",
"-283810073": "Malaysia",
"-950943028": "Eastern Europe",
"-1847522411": "Africa",
"-1552543730": "Caribbean",
"-1077630901": "Oceania",
Expand Down
4 changes: 4 additions & 0 deletions deriv.com.conf
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ server {
return 301 https://$http_host/human-resources/;
}

location /careers/locations/minsk {
return 301 https://$http_host/careers/;
}

rewrite ^/en/(.*)$ https://$http_host/$1 permanent;

location ~* \.(html)$ {
Expand Down
1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ module.exports = {
'/bug-bounty',
'/**/bug-bounty',
'/**/bug-bounty/**/',
'/careers/locations/minsk/',
'/check-email',
'/**/check-email',
'/reset-password',
Expand Down
12 changes: 12 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ exports.onCreatePage = ({ page, actions }) => {
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `/careers/locations/minsk`,
toPath: `/careers/`,
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `/careers/locations/minsk/`,
toPath: `/careers/`,
redirectInBrowser: true,
isPermanent: true,
})
}

if (is_responsible_trading) {
Expand Down
Binary file removed src/images/common/careers/minsk_grid_1.png
Binary file not shown.
Binary file removed src/images/common/careers/minsk_grid_2.png
Binary file not shown.
Binary file removed src/images/common/careers/minsk_grid_3.png
Binary file not shown.
Binary file removed src/images/common/careers/minsk_grid_4.png
Binary file not shown.
3 changes: 0 additions & 3 deletions src/pages/careers/_model/_locations/_contact-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ const address_asuncion = [
'Doctor Morra, Asunción 1849',
]

const address_belarus = ['Level 2, 25/1-3 Vera Khoruzhey Street,', 'Minsk 220123']

const address_ciudad = ['World Trade Center Ciudad del Este, Andrés Rojas, Cd. del Este, Paraguay']

const address_cyberjaya = ['Deriv HQ, 3500, Jalan Teknokrat 3, 63000 Cyberjaya, Selangor']
Expand Down Expand Up @@ -54,7 +52,6 @@ const address_rwanda = ['Level 2 East Wing, Kigali Heights, KG7', 'Avenue, Kigal

export {
address_asuncion,
address_belarus,
address_cyberjaya,
address_cyprus,
address_dubai,
Expand Down
41 changes: 0 additions & 41 deletions src/pages/careers/_model/_locations/_locations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
address_melaka,
address_cyprus,
address_rwanda,
address_belarus,
address_france,
address_guernsey,
address_jordan,
Expand All @@ -26,7 +25,6 @@ import MaltaFlagIcon from 'images/svg/careers/flag_malta.svg'
import CyprusFlagIcon from 'images/svg/careers/flag_cyprus.svg'
import CaymanFlagIcon from 'images/svg/careers/flag_cayman.svg'
import RwandaFlagIcon from 'images/svg/careers/flag_rwanda.svg'
import BelarusFlagIcon from 'images/svg/careers/flag_belarus.svg'
import BVIFlagIcon from 'images/svg/careers/flag_bvi.svg'
import UKFlagIcon from 'images/svg/careers/flag_uk.svg'
import FranceFlagIcon from 'images/svg/careers/flag_france.svg'
Expand Down Expand Up @@ -348,42 +346,6 @@ export const rwanda: LocationsType = {
has_iframe: true,
}

export const minsk: LocationsType = {
name: 'minsk',
job_location: 'Minsk',
continent: 'eastern_europe',
display_continent: 'Eastern Europe',
link: '/careers/locations/minsk/',
display_name: 'Minsk',
display_thumbnail_name: 'Minsk',
display_title_name: 'Minsk',
img_alt: 'Diamond shape building in Minsk',
map_office_name: '(BY) LLC',
country: 'Belarus',
flagIcon: BelarusFlagIcon,
thumbnail: 'thumbnail_minsk',
first_p:
'Deriv (BY) LLC started its operations in the year 2021 to tap into the regional talent pool. The Customer Support and Front-end teams work towards attaining customer satisfaction and building digital products to give them the best trading experience possible.',
first_img: 'living_in_minsk',
first_img_alt: 'Houses nearby lake',
grid_images: ['minsk_grid_1', 'minsk_grid_2', 'minsk_grid_3', 'minsk_grid_4'],
grid_img_alt: [
'Girls smiling while seeing their laptop screens',
'Group of people smiling while seeing on the laptop screen',
'Team meetings',
'Girl having a chat ',
],
map: 'ChIJF9lVNV_P20YRukiwrfpLP4E',
badge: 'minsk_great_place_to_work_badge',
badge_alt: 'Minsk Great Place to Work 2022 Certification Badge',
map_text:
'The work culture at Deriv (BY) LLC is lively and energetic. You will get exposure to global projects and work with highly skilled professionals from across the world. If working for a diverse and thriving team excites you, join our team in Minsk.',
address: address_belarus,
map_img: 'minsk_map',
google_map_link: 'https://goo.gl/maps/7wUCJ6zy7P8CsmkD7',
has_iframe: true,
}

export const paris: LocationsType = {
name: 'paris',
job_location: 'Paris',
Expand Down Expand Up @@ -690,7 +652,6 @@ export const all_offices: LocationsType[] = [
vanuatu,
dubai,
jordan,
minsk,
rwanda,
asuncion,
ciudad,
Expand All @@ -710,7 +671,6 @@ export const locations = {
ipoh: `${ipoh.display_name}, ${ipoh.country}`,
cyprus: `${cyprus.display_name}, ${cyprus.country}`,
rwanda: `${rwanda.display_name}, ${rwanda.country}`,
belarus: `${minsk.display_name}, ${minsk.country}`,
france: `${paris.display_name}, ${paris.country}`,
guernsey: `${guernsey.display_name}, ${guernsey.country}`,
vanuatu: `${vanuatu.display_name}, ${vanuatu.country}`,
Expand All @@ -726,7 +686,6 @@ export const allContinents = {
asia: [],
oceania: [],
middle_east: [],
eastern_europe: [],
africa: [],
latam: [],
caribbean: [],
Expand Down
1 change: 0 additions & 1 deletion src/pages/careers/locations/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ const Locations = () => {
'asia',
'oceania',
'middle_east',
'eastern_europe',
'africa',
'latam',
'caribbean',
Expand Down
84 changes: 0 additions & 84 deletions src/pages/careers/locations/minsk/index.tsx

This file was deleted.

53 changes: 0 additions & 53 deletions src/pages/contact_us/_offices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import Malaysia from 'images/svg/contact/malaysia.svg'
import Cayman from 'images/svg/contact/cayman.svg'
import Cyprus from 'images/svg/contact/cyprus.svg'
import Rwanda from 'images/svg/contact/rwanda.svg'
import Belarus from 'images/svg/contact/belarus.svg'
import Singapore from 'images/svg/contact/singapore.svg'
import Jordan from 'images/svg/contact/jordan.svg'
import Vanuatu from 'images/svg/contact/vanuatu.svg'
Expand Down Expand Up @@ -76,9 +75,6 @@ const query = graphql`
map_rwanda: file(relativePath: { eq: "maps/map-rwanda.png" }) {
...fadeIn
}
map_belarus_contact: file(relativePath: { eq: "maps/map-belarus-contact.png" }) {
...fadeIn
}
map_uk: file(relativePath: { eq: "maps/map-uk.png" }) {
...fadeIn
}
Expand Down Expand Up @@ -792,55 +788,6 @@ export const Offices = () => {
</BorderBox>
</Flex>
</GridLayout>
<Flex mt="30px" fd="column" id="belarus">
<ContinentHeader>
<Localize translate_text="_t_Eastern Europe_t_" />
</ContinentHeader>
<OfficeHeader>
<div>
<img src={Belarus} alt="Belarus - National Library" />
</div>
<Header as="h4" type="sub-section-title" mt="0.8rem" mb="1.6rem">
<Localize translate_text="_t_Belarus_t_" />
</Header>
</OfficeHeader>
</Flex>
<Flex mt="30px" fd="column" max_width="48.6rem">
<BorderBox>
<MapContainer>
<LocalizedLink
to="https://goo.gl/maps/7wUCJ6zy7P8CsmkD7"
external
target="_blank"
rel="noopener noreferrer"
>
<QueryImage
alt="Deriv's office location map in Belarus"
data={data['map_belarus_contact']}
height="100%"
/>
</LocalizedLink>
</MapContainer>
<LocalizedLinkText
to="https://goo.gl/maps/7wUCJ6zy7P8CsmkD7"
external
target="_blank"
rel="noopener noreferrer"
mt="0.8rem"
ml="1.6rem"
>
<Desktop>
<p>Level 2, 25/1-3 Vera Khoruzhey</p>
<p>Street, Minsk 220123</p>
</Desktop>
<Mobile>
<StyledMobileAddress>
Level 2, 25/1-3 Vera Khoruzhey Street, Minsk 220123
</StyledMobileAddress>
</Mobile>
</LocalizedLinkText>
</BorderBox>
</Flex>
<Flex mt="30px" fd="column" id="rwanda">
<ContinentHeader>
<Localize translate_text="_t_Africa_t_" />
Expand Down
12 changes: 0 additions & 12 deletions src/pages/who-we-are/_data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,6 @@ export const desktop_pins: MapPinType[] = [
title: '_t_Kigali, Rwanda_t_',
link: '/careers/locations/rwanda',
},
{
left: '54%',
top: '27.5%',
title: '_t_Minsk, Belarus_t_',
link: '/careers/locations/minsk',
},
{
left: '61.5%',
top: '45.9%',
Expand Down Expand Up @@ -262,12 +256,6 @@ export const mobile_pins: MapPinType[] = [
title: '_t_Kigali, Rwanda_t_',
link: '/careers/locations/rwanda',
},
{
left: '52.5%',
top: '23.5%',
title: '_t_Minsk, Belarus_t_',
link: '/careers/locations/minsk',
},
{
left: '60%',
top: '41.9%',
Expand Down

0 comments on commit 3747689

Please sign in to comment.