generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #868 from ita-social-projects/develop
Develop
- Loading branch information
Showing
18 changed files
with
238 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const EMAIL = '[email protected]'; | ||
|
||
export const EMAIL_INFO = { | ||
EMAIL, | ||
WRITE_EMAIL_TO_US: `https://mail.google.com/mail/?view=cm&fs=1&to=${EMAIL}`, | ||
}; |
3 changes: 3 additions & 0 deletions
3
src/features/AboutUsPage/TeamMembers/TeamPositionsSlider/TeamPositionSlider.styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.slider-arrow, .positionText{ | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 48 additions & 35 deletions
83
src/features/AboutUsPage/Vacancies/Vacancy/VacancyModal/VacancyModal.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,75 @@ | ||
import './VacancyModal.styles.scss'; | ||
import { Button, Modal } from "antd"; | ||
|
||
import CancelBtn from '@images/utils/Cancel_btn.svg'; | ||
|
||
import React from 'react'; | ||
import { SCREEN_SIZES } from '@/app/common/constants/screen-sizes.constants'; | ||
import { EMAIL_INFO } from '@constants/email.constants'; | ||
|
||
import { Button, Modal } from 'antd'; | ||
|
||
import { SCREEN_SIZES } from '@/app/common/constants/screen-sizes.constants'; | ||
|
||
interface Props { | ||
isOpen: boolean, | ||
setOpen: React.Dispatch<React.SetStateAction<boolean>>, | ||
job : Job | ||
} | ||
|
||
const VacancyModal = ({isOpen, setOpen, job}: Props) => { | ||
|
||
const VacancyModal = ({ isOpen, setOpen, job }: Props) => { | ||
const descriptionLines = job.description.split('\n').map((line, index) => ( | ||
<React.Fragment key={index}> | ||
{line} | ||
<> | ||
<div dangerouslySetInnerHTML={{ __html: line }} /> | ||
<br /> | ||
</React.Fragment> | ||
</> | ||
)); | ||
|
||
const getWidth = () => { | ||
if(window.innerWidth > SCREEN_SIZES.tablet) { | ||
return 830 | ||
if (window.innerWidth > SCREEN_SIZES.tablet) { | ||
return 830; | ||
} | ||
if(window.innerWidth > SCREEN_SIZES.smallTablet){ | ||
return 600 | ||
if (window.innerWidth > SCREEN_SIZES.smallTablet) { | ||
return 600; | ||
} | ||
if(window.innerWidth > SCREEN_SIZES.phone){ | ||
return 400 | ||
if (window.innerWidth > SCREEN_SIZES.phone) { | ||
return 400; | ||
} | ||
if(window.innerWidth > SCREEN_SIZES.smallPhone){ | ||
return 310 | ||
if (window.innerWidth > SCREEN_SIZES.smallPhone) { | ||
return 310; | ||
} | ||
return 270 | ||
} | ||
return 270; | ||
}; | ||
|
||
return( | ||
return ( | ||
<Modal | ||
open = {isOpen} | ||
onCancel={ ()=>{setOpen(false)}} | ||
open={isOpen} | ||
onCancel={() => { | ||
setOpen(false); | ||
}} | ||
closeIcon={<CancelBtn />} | ||
className="vacancyModal" | ||
footer = {null} | ||
footer={null} | ||
width={getWidth()} | ||
> | ||
|
||
<div className='vacancyModalContainer'> | ||
<div className='textContainer'> | ||
<h2>{job.title}</h2> | ||
<h3>{job.salary}</h3> | ||
<p>{descriptionLines}</p> | ||
</div> | ||
<div className='buttonContainer'> | ||
<Button className='vacancyModalButton streetcode-custom-button'>Відгукнутися</Button> | ||
</div> | ||
> | ||
|
||
<div className="vacancyModalContainer"> | ||
<div className="textContainer"> | ||
<h2>{job.title}</h2> | ||
<h3>{job.salary}</h3> | ||
<p>{descriptionLines}</p> | ||
</div> | ||
<div className="buttonContainer"> | ||
<Button | ||
className="vacancyModalButton streetcode-custom-button" | ||
onClick={(e) => { | ||
window.location.href = EMAIL_INFO.WRITE_EMAIL_TO_US; | ||
e.preventDefault(); | ||
}} | ||
> | ||
Відгукнутися | ||
</Button> | ||
</div> | ||
</div> | ||
</Modal> | ||
); | ||
} | ||
export default VacancyModal; | ||
); | ||
}; | ||
export default VacancyModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,18 +8,18 @@ import TikTok from '@images/contact-us/TikTok.webp'; | |
import Twitter from '@images/contact-us/Twitter.webp'; | ||
import YouTube from '@images/contact-us/Youtube.webp'; | ||
|
||
const EMAIL = '[email protected]'; | ||
import { EMAIL_INFO } from '@constants/email.constants'; | ||
|
||
const ContactBlock = () => ( | ||
<div className="contactBlock"> | ||
<img className="contactLogo" src={Logo} alt="" /> | ||
<div className="contactCover"> | ||
<div className="emailBlock"> | ||
<a href={`mailto:${EMAIL}`} className="emailLink"> | ||
<a href={EMAIL_INFO.WRITE_EMAIL_TO_US} className="emailLink"> | ||
<img className="icon" src={Email} alt="email-logo" /> | ||
</a> | ||
<span className="email"> | ||
{EMAIL} | ||
{EMAIL_INFO.EMAIL} | ||
</span> | ||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const EMAIL = '[email protected]'; | ||
import { EMAIL_INFO } from '@constants/email.constants'; | ||
|
||
const SectionFifth = () => ( | ||
<section id="fifth" data-block-id="fifth"> | ||
|
@@ -105,7 +105,7 @@ const SectionFifth = () => ( | |
</ul> | ||
Щоб звернутися до Організації з приводу використання файлів cookie, відправте повідомлення | ||
електронною поштою на адресу | ||
<a className="link" href={`mailto:${EMAIL}`}>{EMAIL}</a> | ||
<a className="link" href={EMAIL_INFO.WRITE_EMAIL_TO_US}>{EMAIL_INFO.EMAIL}</a> | ||
. | ||
<br /> | ||
Якщо користувач не включає використання файлів cookie або навмисно видаляє всі файли cookie | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const EMAIL = '[email protected]'; | ||
import { EMAIL_INFO } from '@constants/email.constants'; | ||
|
||
const SectionSeventh = () => ( | ||
<section> | ||
|
@@ -12,7 +12,7 @@ const SectionSeventh = () => ( | |
<br /> | ||
З питань щодо політики конфіденційності (в т.ч. видалення персональних даних), Користувач може | ||
зв'язатися з нами, використовуючи e—mail: | ||
<a className="link" href={`mailto:${EMAIL}`}> {EMAIL}</a> | ||
<a className="link" href={EMAIL_INFO.WRITE_EMAIL_TO_US}>{EMAIL_INFO.EMAIL}</a> | ||
. | ||
</div> | ||
</section> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.