Spotlight Card Old Examples
This component is deprecated, please use the new spotlight component
We got an property imagePosition and it accepts x-top, x-bottom, x-center, y-top, y-bottom and y-center. Here x and y are used to position the image along x-axis and y-axis.
and the default is center center. And there is another property fullHeight it accepts two values true and false the default is set to false if we set to true the background-size will set to cover else to contain.
By deafult image width is set to 35% if you want to display the image width as 100% pass imageClasses="u-w-100"
imagePosition default set to center center and to display background-size as cover set fullHeight=true
.
Default image position center
imageClass="u-w-100", imagePosition="x-bottom"
imageClass="u-w-100", imagePosition="y-bottom"
imagePosition="y-bottom"
with tags
Absorve the below player image on mobile screen to find different variations of image.
imagePosition="x-bottom"
imagePosition="x-center"
imagePosition="x-top"
You can set the background color and font-colorstyle="--lta-theme--on-1: #333a42"
or you can pass it as property bgColor="u-lta-theme--1-background-green"
imagePosition="x-bottom" and imageClasses="u-w-100"
In order to acheive below variant set size="bigger"
where this size bigger will give min-height to the image and image width is set to 100%. To move the image at various breakpoints use the classes is-horizontal-left-{sm, md, xl}, is-horizontal-bottom-{sm, md, xl}, is-vertical-top-{sm, md, xl}, is-vertical-bottom-{sm, md, xl}
should be used.
See the cards bellow. And the default background-size is set to conatin so pass fullHeight=true
. If Icon to be displayed on top set infoIcon=true
. To display button pass button=true
. Pass the imagePosition value to set the image x-top, x-bottom, x-center, y-top, y-center- y-bottom
default is center center. Where these imagePosition value gives extra control to set the image properly.
infoIcon=true, size="bigger", button=true, imagePosition="y-top", fullHeight=true, classes="is-vertical-top-sm is-horizontal-right-md is-horizontal-right-xl"
Event Guide
Description text
size="bigger", fullHeight=true, classes="is-vertical-top-sm is-horizontal-left-md is-horizontal-left-xl"
Explore
Travel and Parking
Description text
size="bigger", fullHeight=true, classes="is-vertical-top-sm is-horizontal-right-md is-horizontal-right-xl"
Explore
Travel and Parking
Description text
size="bigger", fullHeight=true, imagePosition="y-top", classes="is-horizontal-right-sm is-vertical-top-md is-vertical-top-xl"
Explore
Food and Drink
Description text
size="bigger", fullHeight=true, imagePosition="y-top", classes="is-horizontal-left-sm is-vertical-bottom-md is-vertical-bottom-xl"
Explore
Food and Drink
Description text