HubSpot CMS

Content 5

Content Module Code This Content module show a header text with images and background. The module allows you to customize the colors of text and add images for background and logo/header.

Unverified
?

After receiving a minimum of 25 recommendations, an entry earns the "Community Approved" badge.

Please keep in mind, all entries are community created and may not be fully supported by HubSpot.

0 Recommendations

View on:

GitHub

HTML + HUBL


{{ require_css("//cdn2.hubspot.net/hubfs/346178/designmodo/ui-kit/ui-kit-content/css/ui-kit-styles.css") }}      
<!-- content-16 -->
<section class="content-16 content-16-v2 v-center" style="background-color: {{ module.background_color.color }};">
  	<div class="background" style="background-image: url({{ module.background_image.src }}); opacity: {{ module.background_opacity }};"></div>
    <div>
        <div class="container">
            <h3 style="color: {{ module.header_color.color }};">
                {% if module.header_image.src %}
                  <img src="{{ module.header_image.src }}" alt="{{ module.header_image.alt }}" width="{{ module.header_image.width }}" height="{{ module.header_image.height }}">
                {% endif %}
                {{ module.header }}
            </h3>
            <p class="lead" style="color: {{ module.subheader_color.color }};">{{ module.subheader }}</p>
        </div>
    </div><a class="control-btn fui-arrow-down" href="#" style="background-color: {{ module.arrow_down_background_color.color }}; color: {{ module.arrow_down_color.color }}
;"></a>
</section>

          
        
CSS
          
            
          
        
JS
          
            jQuery(document).ready(function($) {
    $(".content-16-v2").each(function() {
        var o = $(this);
        
        if (o.hasClass("init")) {
            return;
        }

        o.addClass("init");

        var id = "id-" + Math.random().toString().slice(2);
        o.attr("id", id);
      
      	o.find('.control-btn.fui-arrow-down').click(function(e) {
        	e.preventDefault();

        	$("html, body").animate({scrollTop: $(this).closest(".hs_cos_wrapper").next().offset().top});
      	});
    });
});

          
        
Have Questions?

Ask technical questions in Slack.

HubSpot Developer Slack

Not a member yet? - join here
READ ME (VIEW IN GITHUB)

HubSpot

Content 5

This Content module show a header text with images and background. The module allows you to customize the colors of text and add images for background and logo/header.

Content 5 module demo can be visited here:

w.inboundlabs.co/action6-content5-demo

Content 5 module is FREE and is part of the Startup Framework FREE and PAID packages:

https://marketplace.hubspot.com/products/inboundlabs/startup-framework-marketplace

Have Questions?

If you have questions, please email me at github (at) inboundlabs.co


HubSpot

Not developing on HubSpot CMS yet?

We'd love to have you a part of our developer community!

 
0 Recommendations

Other Open Source Projects

Browse all other open source projects

CrankShaft Framework

A modern framework for accelerating build times on the HubSpot CMS. Based on a modified Bootstrap 4 framework.

Lead developers: Jon McLaren

Developer Chrome Extension

Chrome/Chromium extension for HubSpot CMS Developers that adds a developer menu, dark theme and useful shortcuts to commonly used HubSpot query parameters, resources, and tools for making HubSpot Development easier and more enjoyable.

Lead developers: Jon McLaren , William Spiro , Gonzalo Torreras

VS Code HubL Language Extension

This extension enables super fast local development of CMS pages, and is a great compliment to using the new local HubL server. It contains comprehensive HubL tag, function, filter and expression test auto-complete snippets, as well as their documentation.

Lead developers: William Spiro

Not coding on HubSpot CMS yet?

We invite you to explore why thousands of developers LOVE coding with HubSpot!

Contribute
Made with  by community members: InboundLabs.co