Skip to main content

Discovery Widget

The Discovery Widget is an optional part of Lead Capture AI provided as an easy-to-use call to action for launching the Lead Capture Experience. We offer the following options:

You may include as many of the widget options into your website as you'd like.

Font Customization

All of the options share the same font customization. This can be controlled by adding the data-font property to the <script> tag. The value of the property should be set to a Google Fonts font name. The font will be used for all text within the widget.

<script data-font="Audiowide"></script>

Floating Bar

The Floating Bar can be added to the page by adding the data-floating-bar property to the script tag:

<script data-floating-bar=""></script>

By default this will add the floating bar to your page and position it at the top of your website. It will be dismissible and look like:

Default look of Discovery widget floating bar

Customizations

It is customizable via additional properties that can be provided as the value to the data-floating-bar property. The properties and values should be added in the form of property=value. Each property and value pair should be separated by a pipe(|).

propertydescriptionAllowed ValuesDefault
positionLocation of the floating bartop, bottomtop
dismissibleIf the close button should be showntrue, falsetrue
textDisplayed texttext of 35 characters or lessSee a 3D model of your solar home
textColorColor of the textcolor name or hexblack
textHoverColorUsed in place of the textColor when the cursor is over the floating barcolor name or hexblack at 70% opacity
textClickColorUsed in place of the textColor when the floating bar is clickedcolor name or hexblack at 60% opacity
backgroundColorBackground color of the barcolor name or hexwhite
backgroundHoverColorUsed in place of the backgroundColor when the cursor is over the floating barcolor name or hexwhite
backgroundClickColorUsed in place of the backgroundColor when the floating bar is clickedcolor name or hexwhite
closeButtonTextColorColor of the X iconcolor name or hexblack
closeButtonTextHoverColorUsed in place of the closeButtonColor when the cursor is over the Xcolor name or hexblack at 70% opacity
closeButtonTextClickColorUsed in place of the closeButtonColor when the X is clickedcolor name or hexblack at 60% opacity

Example

<script
id="auroraLCAI"
data-floating-bar="position=top|dismissible=true|textColor=blue|text=Your custom text"
data-font="Audiowide"
data-org-id="your-organization-id"
src="https://leads.aurorasolar.com/lead-capture-sdk-v1.js"
type="text/javascript"
></script>

Page Section

The Page Section can be added to the page by adding the data-page-section property to the script tag:

<script data-page-section=""></script>

In addition to the script tag property, we also need to know where in your page to add it. Do this by adding the following DOM element to your page:

<div id="lcaiPageSection"></div>

It is responsive by design and will look like:

Larger screens

Discovery widget page section on tablet or larger screen

Tablet and Phone

Discovery widget page section on phone

Customizations

It is customizable via additional properties that can be provided as the value to the data-page-section property. The properties and values should be added in the form of property=value. Each property and value pair should be separated by a pipe(|).

propertydescriptionAllowed ValuesDefault
backgroundColorBackground color of the page sectioncolor name or hexwhite
buttonColorBackground color of the buttoncolor name or hexblack
buttonTextText of the buttontext of 35 characters or lessGet Started
buttonTextColorText color of the buttoncolor name or hexwhite
buttonTextHoverColorUsed in place of the buttonTextColor when the cursor is over the buttoncolor name or hexwhite at 70% opacity
buttonTextClickColorUsed in place of the buttonTextColor when the button is clickedcolor name or hexwhite at 60% opacity
headingTextHeading texttextSee how solar looks on your home
headingTextColorHeading text colorcolor name or hexwhite
subHeadingTextSubheading texttextGet an accurate solar model of your home in less than 2 minutes.
subHeadingTextColorSubheading text colorcolor name or hexblack

Example

<script
id="auroraLCAI"
data-page-section="backgroundColor=pink|buttonText=Click me|headingText=Custom heading text|subHeadingText=Custom subheading text"
data-font="Audiowide"
data-org-id="your-organization-id"
src="https://leads.aurorasolar.com/lead-capture-sdk-v1.js"
type="text/javascript"
></script>

Side Button

The Side Button can be added to the page by adding the data-side-button property to the script tag:

<script data-side-button=""></script>

By default this will add the side button to your page and position it on the left side of your website. It will be dismissible and look like:

Default look of Discovery widget side button

Customizations

It is customizable via additional properties that can be provided as the value to the data-side-button property. The properties and values should be added in the form of property=value. Each property and value pair should be separated by a pipe(|).

propertydescriptionAllowed ValuesDefault
positionLocation of the side buttonleft, rightleft
dismissibleIf the close button should be showntrue, falsetrue
textDisplayed texttext of 25 characters or lessSee your solar home in 3D
primaryColorColor of the text and background color of the house iconcolor name or hexblack
primaryHoverColor(1)Used in place of the primaryColor when the cursor is over the side buttoncolor name or hexblack at 70% opacity
primaryClickColor(1)Used in place of the primaryColor when the side button is clickedcolor name or hexblack at 60% opacity
secondaryColorBackground color of the text and color of the house iconcolor name or hexwhite
secondaryHoverColor(1)Used in place of the secondaryColor when the cursor is over the side buttoncolor name or hexwhite at 70% opacity
secondaryClickColor(1)Used in place of the secondaryColor when the side button is clickedcolor name or hexwhite at 60% opacity
closeButtonTextColorColor of the X iconcolor name or hexblack
closeButtonTextHoverColorUsed in place of the closeButtonColor when the cursor is over the Xcolor name or hexblack at 70% opacity
closeButtonTextClickColorUsed in place of the closeButtonColor when the X is clickedcolor name or hexblack at 60% opacity
1 This will only affect usages of icon and text color - it will not affect the background color.

Example

<script
id="auroraLCAI"
data-side-button="position=left|dismissible=true|primaryColor=blue|secondaryColor=white|text=Your custom text"
data-font="Audiowide"
data-org-id="your-organization-id"
src="https://leads.aurorasolar.com/lead-capture-sdk-v1.js"
type="text/javascript"
></script>