insightdes

index.js

Aug 18th, 2020 (edited)
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 7.94 KB | None | 0 0
  1. const { __ } = wp.i18n;
  2. const { registerBlockType } = wp.blocks;
  3.  
  4. // Import SVG as React component using @svgr/webpack.
  5. // https://www.npmjs.com/package/@svgr/webpack
  6. import { ReactComponent as Logo } from "../bv-logo.svg";
  7.  
  8. // Import file as base64 encoded URI using url-loader.
  9. // https://www.npmjs.com/package/url-loader
  10. import logoWhiteURL from "../purity-logo.svg";
  11.  
  12. // https://wordpress.org/gutenberg/handbook/designers-developers/developers/block-api/block-registration/
  13. registerBlockType("podkit/home-slider", {
  14.   title: __("Home Slider", "podkit"),
  15.   icon: { src: Logo },
  16.   category: "podkit",
  17.  
  18.   // https://wordpress.org/gutenberg/handbook/designers-developers/developers/block-api/block-edit-save/
  19.   edit() {
  20.     return (
  21.       <section className={'ad-waypoint'} data-animate-down={'site-primary-menu-lrg'} data-animate-up={'site-primary-menu-lrg'}>
  22.         <div className={'sec-zero-wrapper'}>
  23.           <div className={'item'}>
  24.               <div className={'lSSlideOuter'}>
  25.                 <div className={'lSSlideWrapper'}>
  26.                   <ul className={'home-slider content-slider lightSlider lSFade'} style={'height: 0px, paddingBottom: 71.9931%'}>        
  27.                   <li className={'lslide'} style={'display: none'}><div className={'sec-zero-bg'} style={'backgroundImage: url("http://purity.insightcomdes.local/wp-content/uploads/2016/03/bag-packer_250767238-opt2.jpg") center center no-repeat, backgroundSize:cover, backgroundAttachment: fixed'}></div></li>
  28.                   <li className={'lslide active'} style={'display: list-item'}><div className={'sec-zero-bg'} style={'backgroundImage: url("http://purity.insightcomdes.local/wp-content/uploads/2016/03/shutterstock_43604071-opt.jpg") center center no-repeat, backgroundSize: cover, backgroundAttachment: fixed'}></div></li>
  29.                   <li className={'lslide'} style={'display: none'}><div className={'sec-zero-bg'} style={'backgroundImage: url("http://purity.insightcomdes.local/wp-content/uploads/2016/03/shutterstock_123343987-opt.jpg") center center no-repeat, backgroundSize: cover, backgroundAttachment: fixed'}></div></li>
  30.                   <li className={'lslide'} style={'display: none'}><div className={'sec-zero-bg'} style={'backgroundImage: url("http://purity.insightcomdes.local/wp-content/uploads/2016/03/wind-turbines_13504843-opt.jpg") center center no-repeat, backgroundSize: cover, backgroundAttachment: fixed'}></div></li>
  31.                 </ul>
  32.               </div>
  33.               <ul className={'lSPager lSpg'} style={'margin-top: 5px'}>
  34.                 <li><a href="#">1</a></li>
  35.                 <li className={'active'}><a href="#">2</a></li>
  36.                 <li><a href="#">3</a></li>
  37.                 <li><a href="#">4</a></li>
  38.               </ul>
  39.             </div>
  40.           </div>
  41.           <div className={'sec-zero-thematic'}>
  42.             <img src={logoWhiteURL} alt="main-brand-logo"/>
  43.             <h3>imagination is only the begining</h3>
  44.           </div>
  45.           <div className={'secondary-menu'}>
  46.             <div className={'center'}>
  47.               <div className={'content-container'}>
  48.                 <div style={'margin-top:148px, position:absolute, width: calc(100% - 40px)'} className={'nav-rule'}></div>
  49.                 <div className={'site-navigation-head-btm'}>
  50.                   <div className={'site-navigation-head-btm-25'}>
  51.                     <div className={'menu-primary-bottom-menu-container'}>
  52.                       <ul id={'menu-primary-bottom-menu'} className={'menu'}>
  53.                         <li id={'menu-item-1124'} className={'menu-item menu-item-type-custom menu-item-object-custom menu-item-1124'}><a>Our clients</a></li>
  54.                         <li id={'menu-item-1125'} className={'menu-item menu-item-type-custom menu-item-object-custom menu-item-1125'}><a>Relationships</a></li>
  55.                         <li id={'menu-item-1132'} className={'menu-item menu-item-type-custom menu-item-object-custom menu-item-1132'}><a>Products</a></li>
  56.                         <li id={'menu-item-1133'} className={'menu-item menu-item-type-custom menu-item-object-custom menu-item-1133'}><a>Latest News</a></li>
  57.                       </ul>
  58.                     </div>
  59.                   </div>
  60.               </div>
  61.             </div>
  62.           </div>
  63.         </div>
  64.       </div>
  65.     </section>
  66.     );
  67.   },
  68.   save() {
  69.     return (
  70.       <section className={'ad-waypoint'} data-animate-down={'site-primary-menu-lrg'} data-animate-up={'site-primary-menu-lrg'}>
  71.         <div className={'sec-zero-wrapper'}>      
  72.           <div className={'item'}>
  73.               <div className={'lSSlideOuter'}>
  74.                 <div className={'lSSlideWrapper'}>
  75.                   <ul className={'home-slider content-slider lightSlider lSFade'} style={'height: 0px, padding-bottom: 71.9931%'}>        
  76.                   <li className={'lslide'} style={'display: none'}><div className={'sec-zero-bg'} style={'backgroundImage: url("http://purity.insightcomdes.local/wp-content/uploads/2016/03/bag-packer_250767238-opt2.jpg") center center no-repeat, backgroundSize:cover, backgroundAttachment: fixed'}></div></li>
  77.                   <li className={'lslide active'} style={'display: list-item'}><div className={'sec-zero-bg'} style={'backgroundImage: url("http://purity.insightcomdes.local/wp-content/uploads/2016/03/shutterstock_43604071-opt.jpg") center center no-repeat, backgroundSize:cover, backgroundAttachment: fixed'}></div></li>
  78.                   <li className={'lslide'} style={'display: none'}><div className={'sec-zero-bg'} style={'backgroundImage: url("http://purity.insightcomdes.local/wp-content/uploads/2016/03/shutterstock_123343987-opt.jpg") center center no-repeat, backgroundSize:cover, backgroundAttachment: fixed'}></div></li>
  79.                   <li className={'lslide'} style={'display: none'}><div className={'sec-zero-bg'} style={'backgroundImage: url("http://purity.insightcomdes.local/wp-content/uploads/2016/03/wind-turbines_13504843-opt.jpg") center center no-repeat, background-size:cover,  background-attachment: fixed'}></div></li>
  80.                 </ul>
  81.               </div>
  82.               <ul className={'lSPager lSpg'} style={'margin-top: 5px'}>
  83.                 <li><a href="#">1</a></li>
  84.                 <li className={'active'}><a href="#">2</a></li>
  85.                 <li><a href="#">3</a></li>
  86.                 <li><a href="#">4</a></li>
  87.               </ul>
  88.             </div>
  89.           </div>
  90.           <div className={'sec-zero-thematic'}>
  91.             <img src={logoWhiteURL} alt="main-brand-logo" />
  92.             <h3>imagination is only the begining</h3>
  93.           </div>      
  94.           <div className={'secondary-menu'}>
  95.             <div className={'center'}>
  96.               <div className={'content-container'}>
  97.                 <div style={'margin-top:148px, position:absolute, width: calc(100% - 40px)'} className={'nav-rule'}></div>
  98.                 <div className={'site-navigation-head-btm'}>
  99.                   <div className={'site-navigation-head-btm-25'}>
  100.                     <div className={'menu-primary-bottom-menu-container'}>
  101.                       <ul id={'menu-primary-bottom-menu'} className={'menu'}>
  102.                         <li id={'menu-item-1124'} className={'menu-item menu-item-type-custom menu-item-object-custom menu-item-1124'}><a>Our clients</a></li>
  103.                         <li id={'menu-item-1125'} className={'menu-item menu-item-type-custom menu-item-object-custom menu-item-1125'}><a>Relationships</a></li>
  104.                         <li id={'menu-item-1132'} className={'menu-item menu-item-type-custom menu-item-object-custom menu-item-1132'}><a>Products</a></li>
  105.                         <li id={'menu-item-1133'} className={'menu-item menu-item-type-custom menu-item-object-custom menu-item-1133'}><a>Latest News</a></li>
  106.                       </ul>
  107.                     </div>    
  108.                   </div>
  109.                 </div>
  110.               </div>
  111.             </div>
  112.           </div>
  113.         </div>
  114.       </section>
  115.     )
  116.   }
  117. });
  118.  
Add Comment
Please, Sign In to add comment