@illinois-toolkit/ilw-page-title

1.1.0 • Public • Published

ilw-page-title

Links: ilw-page-title in Builder | Illinois Web Theme | Toolkit Development

Overview

The Illinois theme component ilw-page-title provides a background image and gradient overlay options for the text of the title of a particular web page.

The page title should be added in an <h1> tag. The background image can be added using the slot "background". The image should be added as an <img> tag.

The default color theme is white text on a dark blue background. Other themes available are orange, blue, and white.

For a top-of-page component with more visual impact, see ilw-hero.

Attributes

  • width: no width attribute will make it fit the container, full will break the container and go full width, auto and page will break the container for the background only.

  • theme: Default is white text on a dark blue background. Other themes available are orange, blue, and white.

Code Examples

<ilw-page-title>
  <img src="background.png" alt="" slot="background">
  <h1>Graduate Programs</h1>
</ilw-page-title>

Upgrade Process

  • Rename il-page-title to ilw-page-title.

External References

https://www.nngroup.com/articles/text-over-images/

https://www.smashingmagazine.com/2023/08/designing-accessible-text-over-images-part1/

Readme

Keywords

none

Package Sidebar

Install

npm i @illinois-toolkit/ilw-page-title

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

75.6 kB

Total Files

14

Last publish

Collaborators

  • bryanjonker