Components
48
Background Gradients Breadcrumb Content Card Carousel Content Card Grid Content Cards Two Column Content Contact Form Content Contact Form Reveal Content Courses Map Content Courses Search Content Event Details Content Events Carousel Content Faqs Content Featured Cards Content Featured Products Content Featured Products Carousel Content Form Over Image Content Game Elements Content Hall Of Fame Carousel Content Horizontal Accordion Content Horizontal Scrolling Content How To Find Us Content Job Roles Grid Content Map Embed Content Marquee Text Content Media Carousel Content Players Content Quick Links Content Quote Over Image Content Simple Text And Image Variations Content Specification Content Stat Row Content Stat With Images And Content Content Text And Cards Grid Content Text And Image Variations Content Text Columns Content Text Image Carousel Content Text Over Image Content Title Content Useful Links Content Vacancies Grid Cookie Table Example Hero Basic Hero Featured Card Hero Game Hero Video And Carousel Hero Video Cards Playlist Hero Video Player

Hero Basic

Hero Basic

British Esports Digital Inclusion Programme

British Esports Digital Inclusion Programme
Field
Field Type
Field Name
Instructions
Block Data
tab
Heading Type
select
heading_type
Heading Text
text
heading_text
Add <span></span> around gradient text. E.g. "British <span>Esports</span>"
Content
wysiwyg
content
CTA Select
post_object
cta_select
Button Type
select
button_button_type
Button Color
select
button_button_color
Button Link
link
button_button_link
Background Image
image
background_image
Overwrite the featured card image if required
Block Meta
tab
Show heading arrow
true_false
show_heading_arrow
Show gradient overlay
true_false
show_overlay
Controls the gradient overlay over the main image and background.
Text overlay
text
text_overlay
Should be short, one word.
ID
text
block_id
Block Classes
text
block_classes
Block theme
button_group
block_theme

				
@import "../../resources/scss/util/variables";
@import "../../resources/scss/util/mixins";
@import "../../resources/scss/vendor/bootstrap/vendor/rfs";

body.error404 {
	.block-hero-basic {
		min-height: auto;
		@include padding-top( rem-calc(100) );
	}
}

.block-hero-basic {
	min-height: rem-calc(300);
	position: relative;
	z-index: 6;
	background-color: $primary;
	@include padding-bottom( rem-calc(100) );
	display: flex;
	flex-direction: column;

	@include bp($md) {
		min-height: rem-calc(600);
	}

	&.has-text-overlay {
		@include padding-bottom( rem-calc(50) );
	}

	&.single-post-hero {
		max-height: rem-calc(700);
	}

	&:before {
		width: 100%;
		height: 100%;
		content: '';
		background: linear-gradient(to top, rgba($primary, 0) 0%, $primary 100%);
		position: absolute;
		top: 0;
		left: 0;
		z-index: 2;
		pointer-events: none;

		@include bp($md) {
			height: 30%;
		}
	}

	&__inner-wrapper {
		position: relative;
		z-index: 5;
		flex-grow: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.block-breadcrumb {
		@include margin-bottom( rem-calc(82) );
		position: relative;
	}

	.container {
		//
	}

	.overlay {
		width: 100%;
		height: 100%;
		position: absolute;
		inset: 0;
		z-index: 2;
		pointer-events: none;
		background-image: url( '/wp-content/themes/british-esports/assets/images/gradients/gradient.svg' );
		background-position: center;
		background-size: cover;
		background-repeat: no-repeat;

		@-moz-document url-prefix() {
			opacity: 0.5;
		}
	}

	.heading,
	.content-container {
		color: var( --text-color );
	}

	&__content-col {
		position: relative;
		z-index: 6;
	}

	&__wrapper {
		position: relative;
		z-index: 5;

		.heading {
			&.has-arrow {
				position: relative;

				&:before {
					width: 12vw;
					max-width: 300px;
					height: 1ch;
					content: '';
					display: inline-block;
					margin-right: rem-calc(16);
					background-image: url('/wp-content/themes/british-esports/assets/icons/arrow-right--white.svg');
					background-repeat: no-repeat;
					background-position: calc(80%) center;

					@include bp($md) {
						width: 18vw;
						max-width: 160px;
						height: 1ch;
						margin-right: rem-calc(32);
					}
				}
			}
		}
		.content-container {
			max-width: rem-calc(590);

			&:last-child {
				margin-bottom: 0;
			}
		}
	}

	&__meta-container {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: rem-calc(16 30);
		@include margin-top( rem-calc(54) );
	}

	&__image {
		display: flex;
		flex-direction: column;

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

	.text-overlay {
		position: relative;
		z-index: 5;
		margin-top: rem-calc(32);
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-end;

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

		p {
			margin-bottom: 0;
		}
	}
}
There are is no JavaScript file with this component.
Page Title
Page Type
Page URL
British Esports Digital Inclusion Programme
page
  • Featured image is displayed, or an image can be uploaded
  • If none of the above found, fallback to global options
  • Options for which background effect to show and/or gradient overlay

Animation:

  • Gradient on text animates subtly