Skip to content

Main Element

Provides a responsive container for the native HTML main element

PortfoLitO

PortfoLitO

AboutComponentsNPMGitHub

About

Getting Started

Tamquam vitae curae dico dictas. Antiopam tempor hendrerit delicata maecenas repudiandae tractatos eripuit.

Tip

Open the console and inspect the demo to see the page and content component structures

Focus on Your Content

  • HTML
  • CSS
  • JS
  • Native web components allow you to create an elegant showcase for your portfolio of work using HTML

    Overview

    Installation and Usage
    LitHTMLCSS

    Libero curae luptatum intellegat evertitur elit. Interesset inciderint enim eam sale maluisset. Graece regione urbanitas nominavi duis honestatis ancillae voluptatibus libero senectus.

    Usage

    The <page-main /> element wraps the native HTML <main /> element, and is intended to be a direct child of the <body /> element of a page. It acts as a responsive container for your supplied content, and does not provide any content of its own.

    PortfoLitO

    Experience

    Senior Software Developer

    Corporation C
    2024 - Present

    Rhoncus perpetua atqui harum signiferumque mea reprimique prodesset et. Enim pulvinar senserit feugiat viris vim tale. Oratio feugiat graeco mea vim fabulas definiebas varius discere. Idque platonem gubergren noster interesset.

    Software Developer

    Corporation B
    2020 - 2024

    Gubergren ius mutat inceptos habitant habemus reque. Consectetur vidisse ubique dolores natum iusto rhoncus assueverit cursus fusce. Perpetua pellentesque ornatus imperdiet lacus vitae facilis deserunt. Curae ligula ridens dolorem discere. Verterem in maluisset quod quaestio convallis. Wisi convallis melius laudem veniam montes. Mi diam his augue quaerendum legere. Liber vehicula moderatius veritus nunc.

    html
    <body>
      <page-header>PortfoLitO</page-header>
      <page-main>
        <!-- Your Content -->
      </page-main>
    </body>

    CSS Parts

    NameDescription
    containerResponsive container element
    contentWrapper for main page content

    CSS Variables

    NameDescriptionTypeDefault
    --container-bgColorBackground color of the outer container part
    • color
    • inherit
    --container-fgColorBackground color of the inner content part
    • color
    -
    --container-fgColor-smBackground color of the content part for small containers
    • color
    -

    Slots

    NameDescriptionType
    noneContent to be wrapped in the HTML main element
    • *
    heroContent to place above all other content
    • *