Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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