index.jsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // styling
  2. import styles from './styles.module.scss';
  3. // components
  4. import Spring from '@components/Spring';
  5. // hooks
  6. import {useThemeProvider} from '@contexts/themeContext';
  7. // assets
  8. import support_light from '@assets/support_light.webp';
  9. import support_dark from '@assets/support_dark.webp';
  10. // utils
  11. import classNames from 'classnames';
  12. const GeneralSupport = () => {
  13. const {theme, direction} = useThemeProvider();
  14. return (
  15. <Spring className="card d-flex flex-column h-1 card-padded p-relative">
  16. <div className={classNames(`cover ${styles[direction]}`, { [styles.cover_dark]: theme === 'dark' })}>
  17. <img src={theme === 'light' ? support_light : support_dark } alt="media" height="100%"/>
  18. </div>
  19. <div className="d-flex flex-column justify-content-between align-items-start flex-1 p-relative z-2">
  20. <div>
  21. <h3>Get support</h3>
  22. <p className="text-12">We will call you back</p>
  23. </div>
  24. <a className="d-inline-flex align-items-center g-10 h3" href="tel:+1234567890">
  25. <i className="icon-phone-solid" />
  26. 8 800 325 44 86
  27. </a>
  28. <button className="btn btn--sm">Start chat</button>
  29. </div>
  30. </Spring>
  31. )
  32. }
  33. export default GeneralSupport