Não pode escolher mais do que 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.
 
 

188 linhas
8.7 KiB

  1. import React from 'react';
  2. import Link from 'next/link';
  3. import { Link as LinkScroll} from 'react-scroll';
  4. import * as Icon from 'react-feather';
  5. const Footer = ({info,social,desc,isHome}) => {
  6. info = (info == null)?{
  7. Email : "",
  8. Telp :"",
  9. Address : "",
  10. }:info;
  11. isHome = (isHome == null)?true:isHome;
  12. const currentYear = new Date().getFullYear();
  13. const Socials = (social)?social.map((data,idx)=>{
  14. return(
  15. <li key={idx}>
  16. <Link href={data.attributes.Link}>
  17. {
  18. (data.attributes.Type =='Facebook')
  19. ?(<a className="facebook" target="_blank"><Icon.Facebook /></a>)
  20. :(data.attributes.Type =='Instagram')
  21. ?(<a className="instagram" target="_blank"><Icon.Instagram /></a>)
  22. :(data.attributes.Type =='Twitter')
  23. ?(<a className="twitter" target="_blank"><Icon.Twitter /></a>)
  24. :(data.attributes.Type =='Youtube')
  25. ?(<a className="youtube" target="_blank"><Icon.Youtube /></a>):""
  26. }
  27. </Link>
  28. </li>
  29. );
  30. }):"";
  31. return (
  32. <footer className="footer-area bg-f7fafd">
  33. <div className="container">
  34. <div className="row">
  35. <div className="col-lg-3 col-md-6">
  36. <div className="single-footer-widget">
  37. <div className="logo">
  38. <Link offset={100} href="/it-startup">
  39. <a>
  40. <img src="/images/TBG-Home/White.png" width="250px" alt="logo" />
  41. </a>
  42. </Link>
  43. </div>
  44. <p>{desc}</p>
  45. </div>
  46. </div>
  47. <div className="col-lg-3 col-md-6">
  48. <div className="single-footer-widget pl-5">
  49. <h3>Menu</h3>
  50. <ul className="list">
  51. {(isHome)
  52. ?(
  53. <>
  54. <li>
  55. <LinkScroll href="/#" to="home" spy={true} smooth={true}>
  56. <a>Home</a>
  57. </LinkScroll>
  58. </li>
  59. <li>
  60. <LinkScroll offset={-100} href="/#" to="business_partner" spy={true} smooth={true}>
  61. <a>Businees Partner</a>
  62. </LinkScroll>
  63. </li>
  64. <li>
  65. <LinkScroll offset={-100} href="/#" to="industri" spy={true} smooth={true}>
  66. <a>Industri</a>
  67. </LinkScroll>
  68. </li>
  69. <li>
  70. <LinkScroll offset={-100} href="/#" to="gallery" spy={true} smooth={true}>
  71. <a>Gallery</a>
  72. </LinkScroll>
  73. </li>
  74. <li>
  75. <LinkScroll offset={-100} href="/#" to="subscribe" spy={true} smooth={true}>
  76. <a>Subscribe</a>
  77. </LinkScroll>
  78. </li>
  79. </>
  80. )
  81. :(
  82. <>
  83. <li>
  84. <Link href={{
  85. pathname:"/",
  86. query:{
  87. "s":"home"
  88. }
  89. }}>
  90. <a>Home</a>
  91. </Link>
  92. </li>
  93. <li>
  94. <Link href={{
  95. pathname:"/",
  96. query:{
  97. "s":"business_partner"
  98. }
  99. }}>
  100. <a>Businees Partner</a>
  101. </Link>
  102. </li>
  103. <li>
  104. <Link href={{
  105. pathname:"/",
  106. query:{
  107. "s":"industri"
  108. }
  109. }}>
  110. <a>Industri</a>
  111. </Link>
  112. </li>
  113. <li>
  114. <Link href={{
  115. pathname:"/",
  116. query:{
  117. "s":"gallery"
  118. }
  119. }}>
  120. <a>Gallery</a>
  121. </Link>
  122. </li>
  123. <li>
  124. <Link href={{
  125. pathname:"/",
  126. query:{
  127. "s":"subscribe"
  128. }
  129. }}>
  130. <a>Subscribe</a>
  131. </Link>
  132. </li>
  133. </>
  134. )}
  135. </ul>
  136. </div>
  137. </div>
  138. <div className="col-lg-6 col-md-6">
  139. {/* <div className="single-footer-widget">
  140. <h3>Address</h3>
  141. <ul className="footer-contact-info">
  142. <li>
  143. <Icon.MapPin />
  144. {info.Address}
  145. </li>
  146. <li>
  147. <Icon.Mail />
  148. Email: <a href={`mailto:${info.Email}`}>{info.Email}</a>
  149. </li>
  150. <li>
  151. <Icon.PhoneCall />
  152. Phone: <a href={`tel:${info.Telp}`}>{info.Telp}</a>
  153. </li>
  154. </ul>
  155. <ul className="social-links">
  156. {Socials}
  157. </ul>
  158. </div> */}
  159. </div>
  160. <div className="col-lg-12 col-md-12">
  161. <div className="copyright-area">
  162. <p>Copyright &copy; {currentYear} All Right Reserved by <a href="https://thamrin.co.id/" target="_blank">PT THAMRIN BROTHERS</a></p>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. <img src="/images/map.png" className="map" alt="map" />
  168. {/* Shape Images */}
  169. <div className="shape1">
  170. <img src="/images/shape1.png" alt="shape" />
  171. </div>
  172. <div className="shape8 rotateme">
  173. <img src="/images/shape2.svg" alt="shape" />
  174. </div>
  175. </footer>
  176. )
  177. }
  178. export default Footer;