Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vijayasree/refactor: all the magic numbers and string in the whole sinbad codeba… #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions src/common/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export const EMAIL = '[email protected]'
export const MOBILE = '971508611678'
export const HR_EMAIL = '[email protected]'
2 changes: 1 addition & 1 deletion src/components/layout/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const StyledBurger = styled.button<MenuProps>`
div {
width: 2.5rem;
height: 0.25rem;
background: ${({ open }) => (open ? '#0D0C1D' : 'var(--color-sand-4)')};
background: ${({ open }) => (open ? 'var(--color-black-4)' : 'var(--color-sand-4)')};
border-radius: 10px;
transition: all 0.3s linear;
position: relative;
Expand Down
3 changes: 2 additions & 1 deletion src/components/layout/join-us/job.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Button } from 'components/elements'
import { JoinUsImageContainer } from 'components/containers/main'
import Sinbad from 'images/common/openpositions/join-us-background.png'
import { Banner } from 'images/common/jd'
import { HR_EMAIL } from 'common/constants'

const Wrapper = styled.div`
background-color: var(--color-sand-transparent);
Expand All @@ -28,7 +29,7 @@ const JoinUsWrapper = styled(JoinUsContainer)`

const JoinUsJob = () => {
const sendMailToHR = () => {
const link = 'mailto:[email protected]'
const link = `mailto:${HR_EMAIL}`
window.open(link, '_blank')
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/careers/work-with-us.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const StyledHeader = styled.div<{ font_family?: string; color?: string; padding?
display: flex;
font-size: 4.8rem;
line-height: 57px;
color: ${(props) => props.color || '#2a2a2a'};
color: ${(props) => props.color || 'var(--color-black-1)'};
font-weight: 640;
font-family: ${(props) => props.font_family || 'Maven Pro Bold'};
text-align: center;
Expand Down
1 change: 1 addition & 0 deletions static/css/global-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
--color-black-1: #2a2a2a;
--color-black-2: #242424;
--color-black-3: #232323;
--color-black-4: #0D0C1D;
--color-blue-1: #0e2432;
--color-blue-2: #3bc8f7;
--color-blue-3: #ecf6f8;
Expand Down