Hidden Image

Page Modules and Custom Components

The purpose of this page is to demonstrate the options available for web content. The options may vary depending on the page template you are working with.

Jump to section:

 

Alerts

Alerts generally appear at the top of a page to draw attention to a temporary message.

Notes for Web Team

 

Button

Standard Button

External Link Button

Notes for Web Team

The class for primary button: class="btn btn-primary"

The external button link icon is added via CSS.

a.btn[target="_blank"]::after {
    font-family: "Font Awesome 6 Pro";
    font-size: 10px;
    padding-left: 5px;
    font-weight: 600;
    content: "\f35d";
}
 

Callouts

Callouts are stylized boxes that fall in-line with text to highlight features. The boxes can fall on the left or right side of text.

The callout has a standard width. The height will fit to the text inside it.

Callout Option 1

This callout is a white box with drop-shadow and blue border on the left.

Sed maximus tempor mauris, in tempus urna condimentum non. Donec elit nunc, dignissim at diam vel, dictum luctus neque. Donec a turpis quis velit pretium volutpat. Aenean quis ligula tempus, mattis quam ac, luctus lorem. Fusce commodo placerat risus quis condimentum. Aliquam luctus tortor neque, malesuada ullamcorper velit ultrices quis. 

Callout Option 2

This callout is a solid color box with drop-shadow and white text.

Sed maximus tempor mauris, in tempus urna condimentum non. Donec elit nunc, dignissim at diam vel, dictum luctus neque. Donec a turpis quis velit pretium volutpat. Aenean quis ligula tempus, mattis quam ac, luctus lorem. Fusce commodo placerat risus quis condimentum. Aliquam luctus tortor neque, malesuada ullamcorper velit ultrices quis.


div.callout {
     background-color: #457aa5;
     color: #ffffff;
     border: none;
     font-style: normal;
}

Callout Option 3

This callout has a background image. Be aware that the size of this box is dependent on the text content inside of it and some of the image may be cut off.

Sed maximus tempor mauris, in tempus urna condimentum non. Donec elit nunc, dignissim at diam vel, dictum luctus neque. Donec a turpis quis velit pretium volutpat. Aenean quis ligula tempus, mattis quam ac, luctus lorem. Fusce commodo placerat risus quis condimentum. Aliquam luctus tortor neque, malesuada ullamcorper velit ultrices quis.


div.callout {
     background: url(/-/media/Project/Nyserda/Images/#);
     background-size: cover;
     box-shadow: inset 0px 0px 0px 3000px rgb(255 255 255 / 85%);
}

Callout Option 4 - Embed Video

International Tailoring Co. Building

A case study for future-proofing a multifamily building with clean energy solutions.

Read the Case Study

Sed maximus tempor mauris, in tempus urna condimentum non. Donec elit nunc, dignissim at diam vel, dictum luctus neque. Donec a turpis quis velit pretium volutpat. Aenean quis ligula tempus, mattis quam ac, luctus lorem. Fusce commodo placerat risus quis condimentum. Aliquam luctus tortor neque, malesuada ullamcorper velit ultrices quis. Sed maximus tempor mauris, in tempus urna condimentum non. Donec elit nunc, dignissim at diam vel, dictum luctus neque. Donec a turpis quis velit pretium volutpat. Aenean quis ligula tempus, mattis quam ac, luctus lorem. Fusce commodo placerat risus quis condimentum. Aliquam luctus tortor neque, malesuada ullamcorper velit ultrices quis.

Fusce commodo placerat risus quis condimentum. Aliquam luctus tortor neque, malesuada ullamcorper velit ultrices quis. Sed maximus tempor mauris, in tempus urna condimentum non. Donec elit nunc, dignissim at diam vel, dictum luctus neque. Fusce commodo placerat risus quis condimentum. Aliquam luctus tortor neque, malesuada ullamcorper velit ultrices quis. Sed maximus tempor mauris, in tempus urna condimentum non. Donec elit nunc, dignissim at diam vel, dictum luctus neque.

Notes for Web Team

Callout div tag should be placed immediately before the text you want it next to.

<div class="callout callout-right shadow-lg"><p>Callout content. This can include other html tags.</p></div>

CSS Edits

The theme style sets a font size on .rich-text p. If you use the <p> tag in your callout, you can fix the font size with:

.callout p { font-size: 1.9rem; margin-bottom: 0px;}

 

.callout a.btn { margin-top: 1rem;}

 

Use the class .mb-0 on the last p tag in the callout as an alternative to setting the margin-bottom property.

 
 

Case Study Title

 

Study Headline: This may be longer than the title.

This is the case study description. Social media or email share links can be included below the title.

 

Sample Link To

 
 
 
 

Heroes

Heroes are like billboards - large banner images at the top of a page and often included a headline and sub-heading text. The background image should be selected with care to the text style you want to incorporate from the options below.

The subtitle and description fields are optional. 

Major Differences

There are a number of hero modules. The two shown here are the most commonly used.

Hero 2024 NYSERDA

Hero Sub Title

Hero Microsite Option 1

A hero description goes here. Uses faded image to view text.

Sample Link

Hero Microsite Option 2

This option uses a background color on the text to make it easier to read over an image.

Sample Link

 

Modal

A pop-up box with a dimmed the screen behind it.

Sample: Click this link to launch a modal.

Notes for Web Team

A modal consists of two parts:

  1. Modal module added to the page.
  2. A link or button used to launch the modal. The ID should match the ID of the modal you create for the page. Snippet below.

<a role="button" href="#ModalID" data-toggle="modal">Modal link text</a>

If the modal contains an image, use class="img-fluid" for responsive image.

 

Promo Box

This grid can be 2 or 3 columns.

The box can have a title as shown below but is not required. No other text can be placed between the title and the articles/tiles in this box. The 2-column layout below shows the promo box without a background color.

Thumbnail Image Size:

This size allows for responsive sizing and use with 2- or 3-column layout.

Notes for Web Team

Promo Box Grid - 3 Column

Promo Box Grid 2 Column

Videos

Embed YouTube Videos

Copy embed code from YouTube "Share" options. It will look something like this:

<iframe width="560" height="315" src="https://www.youtube.com/embed/54BoH1ZZmnA?si=1bFdxeKfziDaoIuG" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

Enable Tracking

When embedding a YouTube video, include the tracking script in one of two ways:

  1. Add ?enablejsapi=1 in the url
  2. OR add enablejsapi="true" as an attribute in the iframe

Allow Fullscreen

The embed code from YouTube includes the attribute allowfullscreen. This does not have a set value so it will be removed by Sitecore upon saving. You can add it one of two ways:

  1. Set allowfullscreen="true"
  2. OR add fullscreen to the allow attribute list, like allow="accelerometer; autoplay;....; fullscreen"

Responsive with Bootstrap

Avoid setting width and height manually for the iframe. Instead, put the iframe inside a <div> and apply Bootstrap classes for responsive sizing.

<div class="embed-responsive embed-responsive-16by9">

<iframe class="embed-responsive-item" src="#"></iframe>

</div>

End Result

<div class="embed-responsive embed-responsive-16by9">
     <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/54BoH1ZZmnA?si=1bFdxeKfziDaoIuG" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" enablejsapi="true"></iframe>
</div>
 

Call To Action (CTA)

The CTA can be used anywhere in a page but is typically at the bottom before the site footer. Depending on the page template this is used on, it may or may not have borders. Shown below with a white background and blue background.

The font sizes in the CTA cannot be adjusted.

Notes for Web Team

Blue background color option is RetrofitNY-LightBlue

The CTA will have borders on microsite pages. To add borders on non-microsite page:


.row.retrofitny.callToAction {
    border: 1px solid #e1ebe9;
}

Call To Action Header

This is the CTA with blue background.

Descriptive Link Text

Call To Action Header

The call to action description goes here.

Descriptive Link Text