Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

PortfolioSection.jsx 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import React from 'react';
  2. import { useNavigate } from 'react-router-dom';
  3. import Wrapper from '../layout/Wrapper';
  4. import PageTitle from './shared/PageTitle';
  5. import ProcessCard from './shared/ProcessCard';
  6. import ProcessCardsWrapper from './shared/ProcessCardWrapper';
  7. const _data = {
  8. cards: [
  9. {
  10. id: 0,
  11. title: 'BI Healthcare Solution System',
  12. imgUrl:
  13. 'https://lh6.googleusercontent.com/D7N87i3udAln4YBp5SbaSI-9r2pVnnT5K2VT6p0G3dQanVgTMC2tdgz71PWOYco-7yQ=w2400',
  14. alt: 'BI Healthcare Solution System',
  15. link: '/casestudybi',
  16. },
  17. {
  18. id: 1,
  19. title: 'Resource Planning System',
  20. imgUrl:
  21. 'https://lh5.googleusercontent.com/HLOh5coHfcEgDuftj1pOA9f1865xiIom5vyxTWNMKqMiivxL8Lg4c9ACzbfYYUdeuqQ=w2400',
  22. alt: 'Resource Planning System',
  23. link: '/casestudyresource',
  24. },
  25. {
  26. id: 2,
  27. title: 'Ticketing System for Passengers',
  28. imgUrl:
  29. 'https://lh5.googleusercontent.com/f_G0H0C_qLHhsU8PBj6uTkNigzKiXzd24B_pgJ6UqVmBKlU2Lyxv2r5lf6uvY9d_0PY=w2400',
  30. alt: 'Ticketing System for Passengers',
  31. link: '/casestudyticketing',
  32. },
  33. ],
  34. };
  35. function PortfolioSection({heading,cta}) {
  36. const linkTo = useNavigate();
  37. return (
  38. <Wrapper padding={' py-90p'} bg>
  39. <div className="py-32p">
  40. <PageTitle left heading={heading.title} subheading={heading.subtitle} />
  41. </div>
  42. <div className="flex flex-col lg:flex-row justify-center items-center lg:justify-between gap-8">
  43. {_data.cards.map((item, index) => (
  44. <a
  45. className={'card max-w-780p box my-2 flex flex-col items-center'}
  46. href={item.link}
  47. key={index}
  48. >
  49. <img src={item.imgUrl} alt={item.alt} className={'mb-12'}></img>
  50. <h3 className="h3-heading">{item.title}</h3>
  51. <button className="btn text-dg-secondary mt-4">{cta}</button>
  52. </a>
  53. ))}
  54. </div>
  55. <div className="flex justify-center text-center">
  56. <button
  57. className="btn text-dg-secondary mt-4"
  58. onClick={() => linkTo('/portfolio')}
  59. >
  60. See More...
  61. </button>
  62. </div>
  63. </Wrapper>
  64. );
  65. }
  66. export default PortfolioSection;