You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

90 regels
5.5 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 ({ sales, ...props }) {
  8. return (
  9. <div>
  10. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" />
  11. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  12. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
  13. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
  14. <div className="jumbotron" style={{ backgroundColor: "#000" }}>
  15. <div className="single-team" style={{ backgroundColor: "#000" }}>
  16. <img src={(sales.DP.data)?`/api/util?img=${encodeURIComponent(sales.DP.sales.attributes.url)}`:`/images/default_sales_DP/${sales.Company.data?sales.Company.data.attributes.Name.toLowerCase():"/images/Sales/Logo Star.png"}.png`} width="180px" alt="image" style={{ marginTop: "-50px" }} />
  17. <div className="team-content">
  18. <h1 style={{ color: "#fff" }}>{sales.Name}</h1>
  19. <p style={{ color: "#fff" }}><strong>Sales Consultant</strong></p>
  20. </div>
  21. </div>
  22. <div align="center" style={{ marginTop: "-30px" }}>
  23. <Link href={`tel:${sales.Telp}`}>
  24. <a 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></a>
  25. </Link>
  26. <Link href={`mailto:${sales.Email}`}>
  27. <a style={{ borderRadius: "50px", backgroundColor: "#212121", color: "#fff", padding: "15px 20px", border: "none", fontSize: "15px" }}><i className="fa fa-envelope"></i> <b>EMAIL US</b></a>
  28. </Link>
  29. <Link href={`https://wa.me/62${sales.WA}`}>
  30. <a 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></a>
  31. </Link>
  32. </div>
  33. </div>
  34. <div style={{ marginTop: "-30px" }}>
  35. <table className="table">
  36. <thead>
  37. <tr>
  38. <th style={{ textAlign: "right" }} width="50%">
  39. <Link href={`tel:${sales.Telp}`}>
  40. <a style={{ textAlign:'center',width: "90px", marginRight: "10px", borderRadius: "50px", backgroundColor: "#000", color: "#fff", padding: "12px 16px", border: "none", fontSize: "15px" }}><i className="fa fa-phone"></i></a>
  41. </Link>
  42. </th>
  43. <th align="right" width="50%">{sales.Telp} <br /> Mobile </th>
  44. <th></th>
  45. <th /><th />
  46. </tr>
  47. <tr >
  48. <th style={{ textAlign: "right" }}>
  49. <Link href={`mailto:${sales.Email}`}>
  50. <a style={{ textAlign:'center',width: "90px", marginRight: "10px", borderRadius: "50px", backgroundColor: "#000", color: "#fff", padding: "12px 16px", border: "none", fontSize: "15px" }}><i className="fa fa-envelope"></i></a>
  51. </Link>
  52. </th>
  53. <th>{sales.Email} <br /> Email </th>
  54. <th></th>
  55. <th /><th />
  56. </tr>
  57. <tr>
  58. <th style={{ textAlign: "right" }}>
  59. <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">
  60. <a style={{ textAlign:'center',width: "90px", marginRight: "10px", borderRadius: "50px", backgroundColor: "#000", color: "#fff", padding: "12px 16px", border: "none", fontSize: "15px" }}><i className="fa fa-map-marker"></i></a>
  61. </Link>
  62. </th>
  63. <th>{sales.Company.data?sales.Company.data.attributes.Name:''} <br /> Sales Consultant </th>
  64. <th></th>
  65. <th /><th />
  66. </tr>
  67. <tr>
  68. <th style={{ textAlign: "right" }}>
  69. <Link href={(sales.Company.data?sales.Company.data.attributes.Website:"https://www.thamrin.mercedes-benz.co.id/en/desktop/passenger-cars.html")}>
  70. <a style={{ textAlign:'center',width: "90px", marginRight: "10px", borderRadius: "50px", backgroundColor: "#000", color: "#fff", padding: "12px 16px", border: "none", fontSize: "15px" }}><i className="fa fa-globe"></i></a>
  71. </Link>
  72. </th>
  73. <th>{(sales.Company.data?sales.Company.data.attributes.Website:'thamrin.mercedes-benz.co.id')}<br /> Website </th>
  74. <th></th>
  75. <th /><th />
  76. </tr>
  77. </thead>
  78. </table>
  79. </div>
  80. </div>
  81. )
  82. }
  83. export default Sales;