Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Landing.jsx 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. import React, { useEffect } from 'react';
  2. import { motion } from 'framer-motion';
  3. import LandingSVGv2 from './shared/graphics/LandingSVG-v2';
  4. import HiringWidget from './HiringWidget';
  5. import Wrapper from '../layout/Wrapper';
  6. import OpenDayBanner from './OpenDayBanner';
  7. // const _data = {
  8. // cto: 'contact us',
  9. // };
  10. // const number = [
  11. // {
  12. // value: 90,
  13. // static: '+',
  14. // title: 'Employees',
  15. // },
  16. // {
  17. // value: '20',
  18. // static: '+',
  19. // title: 'Projects',
  20. // },
  21. // {
  22. // value: '100',
  23. // static: '%',
  24. // title: 'Client-Retention',
  25. // },
  26. // ];
  27. const Landing = ({ heading,numbers,button,paragraph }) => {
  28. useEffect(() => {
  29. //console.log(data);
  30. }, [])
  31. return (
  32. <Wrapper>
  33. <div className="flex flex-col gap-90p pb-164p">
  34. <motion.section
  35. id="landing"
  36. className="flex flex-col items-center justify-center"
  37. initial={{ y: 60, opacity: 0 }}
  38. whileInView={{ y: 0, opacity: 1 }}
  39. transition={{ duration: 0.5, ease: 'easeOut' }}
  40. >
  41. {/* <img src={bg_home} alt="Diligent Software's Animation" width="700" /> */}
  42. {/* <LandingSVG /> */}
  43. <LandingSVGv2 />
  44. <HiringWidget />
  45. <div className="mb-16 -mt-12 md:mt-5 flex flex-col lg:flex-row justify-between items-center gap-90p">
  46. <div className="flex flex-col gap-8p">
  47. <h6 className="subheading">
  48. {heading.subtitle}
  49. </h6>
  50. <h1 className="heading">
  51. {heading.title}
  52. </h1>
  53. <p className="paragraph">
  54. {paragraph}
  55. </p>
  56. </div>
  57. <a
  58. href="#contact"
  59. className="btn-primary px-64p py-20p w-full lg:w-max whitespace-nowrap"
  60. >
  61. {button}
  62. </a>
  63. </div>
  64. </motion.section>
  65. <motion.section
  66. id="status-numbers"
  67. className="flex flex-col md:flex-row items-center justify-between w-full gap-90p px-90p"
  68. initial={{ y: 60, opacity: 0 }}
  69. whileInView={{ y: 0, opacity: 1 }}
  70. transition={{ duration: 0.5, ease: 'easeOut' }}
  71. >
  72. {numbers.map((item, i) => (
  73. <div key={i} className="flex flex-col">
  74. <p className="display-number text-center">
  75. {item.value}
  76. </p>
  77. <h3 className="number-title text-center">{item.title}</h3>
  78. </div>
  79. ))}
  80. </motion.section>
  81. </div>
  82. </Wrapper>
  83. );
  84. };
  85. export default Landing;