Components
54
Accordion Items Basic Hero Basic Map Benefits Card Grid Career Testimonials Case Study Carousel Case Study Content Two Column Contact Form Content Centred Content Image Content Three Columns Content Two Column Content Video Cookie Table Cta Blocks Example Faqs Featured Card Featured Latest Cards Footer Banner Glossary Items Hero Insights Hero Rounded Hero With Featured Insight Home Hero Icon Carousel Image Link Carousel Image Link Carousel 2×2 Image Link Grid Insight Content Job Listing Large Image Large Testimonial Leadership Grid Link Grid Locations Locations Archive Logo Scroller Page Heading People Carousel Related Services Resources Carousel Section Anchors Separator Service Hero Services List Services Tabs Tech Partners Testimonial Carousel Testimonial Single Use Case Component Values Scroller Video

Content Video

What we do

Uncover your data and cloud opportunities

We are committed to uncovering valuable data insights, driving informed decision-making, and fueling innovation, through our dedication to unlocking the potential of data and embracing cloud opportunities.

Field
Field Type
Field Name
Instructions
Block Data
tab
Overline
text
overline
Heading Type
select
heading_type
Heading Text
textarea
heading_text
Content
wysiwyg
content
Video Placeholder Image
image
video_placeholder_image
If no image selected and video is YouTube or Vimeo, the thumbnail will be retrieved.
Video Source
select
video_source
Video File
file
video_file
Video URL
url
video_url
Must be a link to a YouTube or Vimeo video.
Block Meta
tab
ID
text
block_id
Block Classes
text
block_classes
Background Colors
select
background_colors
Padding Top
select
padding_top
Padding Bottom
select
padding_bottom
Margin Top
select
margin_top
Margin Bottom
select
margin_bottom

				
@import "../../resources/scss/util/variables";
@import "../../resources/scss/util/mixins";

.block-content-video{
    padding: 3em 0;
    
    @include bp($lg){
        padding: 6em 0;
    }
    .heading{
        @include fluid-type(20, 40, 375, $max-container-size);
        letter-spacing: 0.02em;
        font-weight: 300;            
        strong{
            font-weight: 600;
        }
    }
    .heading-col{
        @include bp($lg){
            padding-bottom: rem-calc(52);
        }
        > *{
            max-width: rem-calc(526);
        }
    }
    .content-col{
        color: $black2;
        
        @include bp($lg){
            display: flex;
            justify-content: flex-end;
            padding-bottom: rem-calc(52);
        }
        > *{
            max-width: rem-calc(526);
        }
        p{
            @include fluid-type(16, 20, 375, $max-container-size);
            line-height: rem-calc(28);
            letter-spacing: 0.05em;
        }
    }
    .video-item{
        overflow: hidden;
        border-radius: rem-calc(16);
        display: block;
        position: relative;
        @include bp($md){
            border-radius: rem-calc(40);
        }
        picture{
            line-height: 0;
        }
        video,
        iframe,
        img {
            display: block;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            transition: transform 0.3s ease-in-out;
            width: 100%;
        }
        .play-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 5;
            width: rem-calc(42);
            height: rem-calc(42);
            border-radius: 100%;
            background-color: $white;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.3s ease-in-out;
            
            svg {
                position: absolute;
                top: 50%;
                left: 55%;
                transform: translate(-55%, -50%);
                color: $primary;
                transition: color 0.3s ease-in-out;
                width: 17px;
            }

            @include bp($lg){
                width: rem-calc(92);
                height: rem-calc(92);
                
                svg {
                    width: 34px;
                }
            }
        }
        &:hover {
            .play-icon {
                background-color: $white;
    
                svg {
                    color: $secondary;
                }
            }
            img {
                transform: scale(1.02);
            }
        }
    }
    &.bg--primary{
        .overline,
        .heading,
        .content-col{
            color: $white;
        }
    }
    &.bg--secondary{
        .overline,
        .heading,
        .content-col{
            color: $white;
        }
    }
}
class ContentVideo {
	/**
	 * Create and initialise objects of this class
	 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/constructor
	 * @param {object} block
	 */
	constructor() {
		this.blocks = document.querySelectorAll('.block-content-video');
		this.init();
	}

	/**
	 * Example function to run class logic
	 * Can access `this.block`
	 */
	init() {
        let thisObj = this;
		this.blocks.forEach((block) => {
			let video = block.querySelector('video');            
		});
	}
}

new ContentVideo();
Page Title
Page Type
Page URL
There are is no readme file with this component.