Components
53
Accordion Items Animated Gallery Basic Hero Basic Map Case Studies Feed Case Studies Hero Case Study Hero Case Study Slider Column Content Content Grid Content Image Content Slider Cta Cta Blocks Embed Block Enriched Accordion Error Event Feed Example Features Slider Full Width Image Hero Full Width Media Image And Form Image Content Image Split Content Image Stats Logo Slider Map Post Feed Pricing Publications Feed Simple Accordion Simple Header Simple Hero Solutions Animated Block Split Content Split Content Carousel Split Content Content Split Content Post Split Content Pricing Split Content Video Split Image Hero Stats Slider Team Carousel Team Hero Team Listing Testimonial Case Study Timeline Trivia Bar Two Column Rich Text Vacancies Table Video Video Expand

Image Stats

View example

Our team has delivered positive sustainability outcomes for more than 25 years with a wealth of experience that adds value to our clients’ businesses.

We combine deep technical knowledge with a passion for sustainability, bringing fresh perspectives and solutions to the challenges we face. We pride ourselves on delivering measurable results that drive real change.

 

30,000+ companies worldwide trust us
There are no ACF fields assigned to this component.

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

.block-image-stats {
	padding: 4rem 0;
	min-height: unset;
	height: auto;

	@include bp($lg){
		min-height: 76vh;
		height: auto;
	}

	@media only screen and (min-height: 1250px){
		min-height: 900px;
	}

	&[data-image-pos="right"]{
		.block-image-stats__container{
			justify-content: flex-start;
		}

		.block-image-stats__image-container{
			left: unset;
			right: unset;

			@include bp($lg){
				right: 32px;
			}
		}

		.block-image-stats__image-card{
			left: unset;
			right: 24px;
		}
	}

	&[data-border-bottom="true"]{
		border-bottom: solid 1px rgba(56,53,81,0.2);
	}

	&__image-container{
		position: absolute;
		left: 32px;
		top: 50%;
		transform: translateY(-50%);
		width: 50%;
		border-radius: 50px;
		overflow: hidden;
		height: 100%;

		@include bp($md, true) {
            border-radius: 30px;
        }

		@include bp($lg, 'true'){
			position: relative;
			width: 100%;
			left: unset;
			top: unset;
			transform: unset;
			border-radius: 0;
			height: 90vh;
		}

		img, picture{
			width: 100%;
			height: 100%;
			object-fit: cover;
			object-position: center;
		}
	}

	&__content-container{
		h1, h2, h3, h4, h5, h6{
			color: var(--text-color);
		}

		p{
			@include fluid-type(18, 22);
		}
	}

	&__image-card{
		position: absolute;
		background: var(--tertiary);
		position: absolute;
		bottom: 24px;
		left: 24px;
		width: calc(100% - 48px);
		border-radius: 32px;
		padding: 24px;
		color: var(--white);
		display: block;
		text-decoration: none;

		@include bp($lg){
			width: 20vw;
		}

		&:hover{
			.block-image-stats__image-card-link{
				transition: .3s ease-out;
				background-color: var(--white);
				background-image: url("data:image/svg+xml,%3Csvg width='28' height='18' viewBox='0 0 28 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.3682 16.7598L26.7682 8.75977L20.3682 0.759765' stroke='%23383551'/%3E%3Cpath d='M26.7686 8.75977L0.768555 8.75977' stroke='%23383551'/%3E%3C/svg%3E%0A");
			}
		}

		&-date{
			background: var(--white);
			padding: 2px 6px;
			border-radius: 4px;
			font-size: 14px;
			width: fit-content;
			display: inline-block;
			color: var(--primary);
		}

		&-description{
			color: var(--white);
		}

		h3{
			margin-top: 4px;
			@include fluid-type(18, 24);
			font-weight: 600;
			margin-bottom: 4px;
		}

		&-author-container{
			display: flex;
			flex-direction: row;
			align-items: center;
			gap: 8px;
		}

		&-author-avatar{
			min-width: 52px;
			min-height: 52px;
			width: 52px;
			height: 52px;
			border-radius: 100px;
			display: flex;
			overflow: hidden;

			img{
				width: 100%;
				height: 100%;
				object-fit: cover;
			}
		}

		&-link {
			width: 40px;
			height: 40px;
			border: solid 1px var(--white);
			border-radius: 100px;
			display: flex;
			align-items: center;
			justify-content: center;
			float: right;
			margin-top: 2rem;
			background-color: transparent;
			background-position: center;
			background-size: 20px;
			background-repeat: no-repeat;
			transition: .3s ease-out;
			background-image: url("data:image/svg+xml,%3Csvg width='28' height='18' viewBox='0 0 28 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.3682 16.7598L26.7682 8.75977L20.3682 0.759765' stroke='%23fff'/%3E%3Cpath d='M26.7686 8.75977L0.768555 8.75977' stroke='%23fff'/%3E%3C/svg%3E%0A") ;

			&:hover{
				transition: .3s ease-out;
				background-color: var(--white);
				background-image: url("data:image/svg+xml,%3Csvg width='28' height='18' viewBox='0 0 28 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.3682 16.7598L26.7682 8.75977L20.3682 0.759765' stroke='%23383551'/%3E%3Cpath d='M26.7686 8.75977L0.768555 8.75977' stroke='%23383551'/%3E%3C/svg%3E%0A");
			}
		}
	}

	&__container{
		display: flex;
		justify-content: flex-end;
		height: 100%;
		padding-top: 2rem;

		@include bp($lg){
			padding-top: 0;
		}
	}

	&__content{
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	&__stats-container{
		display: flex;
		flex-direction: column;
		padding-left: 20px;
		gap: 16px;
		border-left: solid 6px var(--secondary);
		color: var(--text-color);

		.value{
			@include fluid-type(32, 74);
			font-weight: 600;
			line-height: 1;
		}
	}


}
There are is no JavaScript file with this component.
{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "apiVersion": 2,
    "name": "strategiq/image-stats",
    "title": "Image & Stats",
    "description": "Example block to be used as a template",
    "category": "strategiq",
    "icon": "strategiq",
    "acf": {
        "mode": "preview",
        "renderTemplate": "block-image-stats.php"
    },
    "supports": {
        "anchor": true,
        "align": false,
        "color": {
            "background": true,
            "text": false,
            "gradients": true
        },
        "spacing": {
            "padding": [
                "top",
                "bottom"
            ],
            "margin": [
                "top",
                "bottom"
            ]
        }
    },
    "example": {
        "attributes": {
            "mode": "preview",
            "data": {
                "heading_type": "h2",
                "heading_text": "Example - Example",
                "content": "This is some example content to represent what the content will look like"
            }
        }
    },
    "style": "file:../../assets/css/image-stats/block-image-stats.css"
}
Page Title
Page Type
Page URL
There are is no readme file with this component.