Advertisement
janusivan

Homebot - custom element

Jun 21st, 2023
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.33 KB | None | 0 0
  1. /* html */
  2.  
  3. <div class="container">
  4.   <div class="redesign image-opening-section first_section">
  5.     <div class="heading">
  6.       <h1 class="h3">HOME VALUATION</h1>
  7.     </div>
  8.     <div id="homebot_homeowner"></div>
  9.   </div>
  10. </div>
  11.  
  12. <script>
  13. (function (h,b) {
  14. var w = window, d = document, s = 'script', x, y; w['__hb_namespace'] = h;
  15. w[h] = w[h] || function ()
  16. { (w[h].q=w[h].q||[]).push(arguments) };
  17. y = d.createElement(s);
  18. x = d.getElementsByTagName(s)[0];
  19. y.async = 1; y.src = b;
  20. x.parentNode.insertBefore(y,x) })
  21. ('Homebot','https://embed.homebotapp.com/lgw/v1/widget.js');
  22. Homebot('#homebot_homeowner', '4e57bc303479c31f0eaebb4a21967e008bad1566c15e94df',  {
  23.     'theme': 'dark-mode-theme'})
  24. </script>
  25.  
  26.  
  27. /* css */
  28.  
  29. .container {
  30.   min-height:100vh;
  31.   display: flex;
  32.   justify-content: center;
  33.   align-items: center;
  34.   text-align:center;
  35.   margin-right: auto;
  36.   margin-left: auto;
  37.   padding-left: 10px;
  38.   padding-right: 10px;
  39.   margin-top: 3em;
  40.   margin-bottom: 3em;
  41.  
  42.   .image-opening-section {
  43.     width:100%
  44.   }
  45. }
  46.  
  47. @media (max-width: 768px) {
  48.   .container {
  49.     padding-left: 15px;
  50.     padding-right: 15px;
  51.   }
  52. }
  53.  
  54.  
  55. @media (min-width: 992px) {
  56.   .container {
  57.     width: 100%;
  58.   }
  59. }
  60.  
  61. @media (min-width: 1200px) {
  62.   .container {
  63.     padding-left: 0;
  64.     padding-right: 0;
  65.     width: 1150px;
  66.   }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement