Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

92 рядки
4.3 KiB

  1. import React from 'react';
  2. import Link from 'next/link';
  3. import * as Icon from 'react-feather';
  4. // import FaWhatsapp from "react-icons/fa";
  5. const Sales = function ({ backend, sales, ...props }) {
  6. const DataSales = sales.map((data) => {
  7. return (
  8. <div>
  9. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" />
  10. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  11. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
  12. <div class="jumbotron" style={{ backgroundColor: "#000", marginLeft: "-15px", marginRight: "-15px" }}>
  13. <div className="col-lg-3 col-md-6">
  14. <div className="single-team" style={{ backgroundColor: "#000" }}>
  15. <img src="/images/Sales/Logo Star.png" width="200px" alt="image" style={{ marginTop: "-30px" }} />
  16. <div className="team-content">
  17. <h1 style={{ color: "#fff" }}>{data.name}</h1>
  18. <p style={{ color: "#fff" }}><strong>{data.job_title}</strong></p>
  19. <br />
  20. </div>
  21. </div>
  22. </div>
  23. <div align="center" style={{ marginTop: "-30px" }}>
  24. <Link href={"/Sales/Sales?s=" + data.id}>
  25. <a style={{ padding: "20px" }} className="btn btn-primary"><i class="fas fa-camera"/> Call Us</a>
  26. </Link>
  27. <Link href={"/Sales/Sales?s=" + data.id}>
  28. <a style={{ padding: "20px" }} className="btn btn-primary"><Icon.Mail /> Email Us</a>
  29. </Link>
  30. <Link href={"/Sales/Sales?s=" + data.id}>
  31. <a style={{ padding: "20px" }} className="btn btn-primary"><Icon.Phone /> WA Us</a>
  32. </Link>
  33. </div><br />
  34. </div>
  35. <div class="table-responsive" align="left">
  36. <table class="table">
  37. <thead>
  38. <tr>
  39. <th>
  40. <Link href="#">
  41. <a target="_blank"><Icon.Phone style={{ marginTop: "-20px", marginLeft: "15px" }} /></a>
  42. </Link>
  43. </th>
  44. <th>{data.telp} <br /> Mobile </th>
  45. </tr>
  46. <tr>
  47. <th>
  48. <Link href="#">
  49. <a target="_blank"><Icon.Mail style={{ marginTop: "-20px", marginLeft: "15px" }} /></a>
  50. </Link>
  51. </th>
  52. <th>{data.email} <br /> Email </th>
  53. </tr>
  54. <tr>
  55. <th>
  56. <Link href="#">
  57. <a target="_blank"><Icon.ShoppingBag style={{ marginTop: "-20px", marginLeft: "15px" }} /></a>
  58. </Link>
  59. </th>
  60. <th>{data.company} <br /> {data.job_title} </th>
  61. </tr>
  62. <tr>
  63. <th>
  64. <Link href="#">
  65. <a target="_blank"><Icon.Globe style={{ marginTop: "-20px", marginLeft: "15px" }} /><br /></a>
  66. </Link>
  67. </th>
  68. <th>thamrin.mercedes-benz.co.id<br /> Website </th>
  69. </tr>
  70. </thead>
  71. </table>
  72. </div>
  73. </div>
  74. )
  75. })
  76. return (
  77. <div className="container">
  78. <div className="row justify-content-center">
  79. {DataSales}
  80. </div>
  81. </div>
  82. )
  83. }
  84. export default Sales;