您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

98 行
5.8 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. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
  15. <div className="jumbotron" style={{ backgroundColor: "#000" }}>
  16. <div className="single-team" style={{ backgroundColor: "#000" }}>
  17. <img src="/images/Sales/Logo Star.png" width="180px" alt="image" style={{ marginTop: "-50px" }} />
  18. <div className="team-content">
  19. <h1 style={{ color: "#fff" }}>{data.Name}</h1>
  20. <p style={{ color: "#fff" }}><strong>Sales Consultant</strong></p>
  21. </div>
  22. </div>
  23. <div align="center" style={{ marginTop: "-30px" }}>
  24. <Link href={`tel:${data.Telp}`}>
  25. <button style={{ marginRight: "10px", borderRadius: "50px", backgroundColor: "#212121", color: "#fff", padding: "15px 20px", border: "none", fontSize: "15px" }}><i className="fa fa-phone"></i> <b>CALL US</b></button>
  26. </Link>
  27. <Link href={`mailto:${data.Email}`}>
  28. <button style={{ borderRadius: "50px", backgroundColor: "#212121", color: "#fff", padding: "15px 20px", border: "none", fontSize: "15px" }}><i className="fa fa-envelope"></i> <b>EMAIL US</b></button>
  29. </Link>
  30. <Link href={`https://wa.me/62${data.WA}`}>
  31. <button style={{ marginLeft: "10px", borderRadius: "50px", backgroundColor: "#212121", color: "#fff", padding: "15px 20px", border: "none", fontSize: "15px" }}><i className="fa fa-whatsapp"></i> <b>WA US</b></button>
  32. </Link>
  33. </div>
  34. </div>
  35. <div style={{ marginTop: "-30px" }}>
  36. <table className="table">
  37. <thead>
  38. <tr>
  39. <th style={{ textAlign: "right" }} width="50%">
  40. <Link href={`tel:${data.Telp}`}>
  41. <button style={{ width: "90px", marginRight: "10px", borderRadius: "50px", backgroundColor: "#000", color: "#fff", padding: "12px 16px", border: "none", fontSize: "15px" }}><i className="fa fa-phone"></i></button>
  42. </Link>
  43. </th>
  44. <th align="right" width="50%">{data.Telp} <br /> Mobile </th>
  45. <th></th>
  46. <th /><th />
  47. </tr>
  48. <tr >
  49. <th style={{ textAlign: "right" }}>
  50. <Link href={`mailto:${data.Email}`}>
  51. <button style={{ width: "90px", marginRight: "10px", borderRadius: "50px", backgroundColor: "#000", color: "#fff", padding: "12px 16px", border: "none", fontSize: "15px" }}><i className="fa fa-envelope"></i></button>
  52. </Link>
  53. </th>
  54. <th>{data.Email} <br /> Email </th>
  55. <th></th>
  56. <th /><th />
  57. </tr>
  58. <tr>
  59. <th style={{ textAlign: "right" }}>
  60. <Link href="https://www.google.co.id/maps/place/Mercedes-Benz+-+PT.+THAMRIN+CITRA+ABADI/@-2.946646,104.7294956,17z/data=!3m1!4b1!4m5!3m4!1s0x2e3b7439cb4d6c0b:0xf12bc3dc2ab868f4!8m2!3d-2.9466514!4d104.7316843?hl=id">
  61. <button style={{ width: "90px", marginRight: "10px", borderRadius: "50px", backgroundColor: "#000", color: "#fff", padding: "12px 16px", border: "none", fontSize: "15px" }}><i className="fa fa-map-marker"></i></button>
  62. </Link>
  63. </th>
  64. <th>{data.company||''} <br /> Sales Consultant </th>
  65. <th></th>
  66. <th /><th />
  67. </tr>
  68. <tr>
  69. <th style={{ textAlign: "right" }}>
  70. <Link href="https://www.thamrin.mercedes-benz.co.id/en/desktop/passenger-cars.html">
  71. <button style={{ width: "90px", marginRight: "10px", borderRadius: "50px", backgroundColor: "#000", color: "#fff", padding: "12px 16px", border: "none", fontSize: "15px" }}><i className="fa fa-globe"></i></button>
  72. </Link>
  73. </th>
  74. <th>thamrin.mercedes-benz.co.id<br /> Website </th>
  75. <th></th>
  76. <th /><th />
  77. </tr>
  78. </thead>
  79. </table>
  80. </div>
  81. </div>
  82. )
  83. })
  84. return (
  85. <div>
  86. {DataSales}
  87. </div>
  88. )
  89. }
  90. export default Sales;