Skip to content
Snippets Groups Projects
index.html 4.76 KiB
Newer Older
<!DOCTYPE html>
<html dir="ltr" lang="en">
Markus Kaarto's avatar
Markus Kaarto committed
  <head>
    <link rel="stylesheet" type="text/css" href="/build/huds-lib.css" />
    <link rel="stylesheet" type="text/css" href="/fonts/fonts.css" />
    <meta charset="utf-8" />
Markus Kaarto's avatar
Markus Kaarto committed
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
Markus Kaarto's avatar
Markus Kaarto committed
    <title>Stencil Component Starter</title>

    <script type="module" src="/build/huds-lib.esm.js"></script>
    <script nomodule src="/build/huds-lib.js"></script>
  </head>

  <body>
    <h1>Helsinki University web components demo</h1>

    <hy-process
      variant="small"
      class="hy-process-container"
      data-items='[{"heading":"Step title","description":"Step description text"},
     {"heading":"Step title","description":"Step description text", "step":"Intermediate step 1"},
     {"heading":"Step title","description":"Step description text Step description text", "step":"Intermediate step 2"},
     {"heading":"Step title","description":"Step description text", "step":"Intermediate step 3 "}]'
    >
    </hy-process>

    <hy-process
      variant="small"
      class="hy-process-container"
      data-items='[{"heading":"Step title","description":"Step description text"},
     {"heading":"Step title","description":"Step description text"},
     {"heading":"Step title","description":"Step description text"},
     {"heading":"Step title","description":"Step description text"}]'
    >
    </hy-process>

    <hy-process
      variant="big"
      class="hy-process-container"
      data-items='[{"heading":"Step title","description":"Step description text"},
     {"heading":"Step title","description":"Step description text", "step":"Intermediate step 1"},
     {"heading":"Step title","description":"Step description text Step description text", "step":"Intermediate step 2"},
     {"heading":"Step title","description":"Step description text", "step":"Intermediate step 3"}]'
    >
    </hy-process>

    <hy-process
      variant="big"
      class="hy-process-container"
      data-items='[{"heading":"Step title","description":"Step description text"},
     {"heading":"Step title","description":"Step description text"},
     {"heading":"Step title","description":"Step description text"},
     {"heading":"Step title","description":"Step description text"}]'
    >
    </hy-process>

    <hy-cta-link-button
      url="https://www.google.com"
      link-content="CTA Link button two with an extremely long title that should be split in several rows"
      aria-label=""
      is-external="true"
    </hy-cta-link-button>

    <hy-section-container>
      This is a Section Container
      <hy-heading heading="h2" section="subsection">
        Section Header
      </hy-heading>
    </hy-section-container>
    <hy-section-container>
      <hy-heading heading="h2" section="subsection">
        Section Buttons
      </hy-heading>
      <hy-button icon="hy-icon-arrow-left">
        Primary Arrow
      </hy-button>
      <hy-button state="disabled" icon="hy-icon-arrow-left">
        Primary Arrow Disabled
      </hy-button>
      <hy-button variant="secondary" icon="hy-icon-arrow-left">
        Outline Arrow
      </hy-button>
      <hy-button variant="secondary" state="disabled" icon="hy-icon-arrow-left">
        Outline Arrow Disabled
      </hy-button>
    </hy-section-container>

    <hy-grid-container>
      <hy-cta-link-button
        link-content="CTA Link button one"
        aria-label="CTA Link button one"
        url="https://www.google.com"
        is-external="false"
      >
      </hy-cta-link-button>
      <hy-cta-link-button
        url="https://www.google.com"
        link-content="CTA Link button two"
        aria-label=""
        is-external="true"
      >
      </hy-cta-link-button>
      <hy-cta-link-button
        url="https://www.google.com"
        link-content="CTA Link button two with an extremely long title that should be split in several rows"
        aria-label=""
        is-external="true"
      >
      </hy-cta-link-button>

      <hy-cta-liftup-image-text
        image-url="https://www.helsinki.fi/sites/default/files/styles/16_9_huge/public/coronavirus_1920x1080px_4.jpg?itok=dOgb6pfs"
        text-title="Text title 2"
        text-description="Text description Lorem ipsum dolor sit amet, consectetur adipiscing elit."
        main-url="https://www.google.com"
        main-url-title="Standalone link"
        main-url-aria-label="Standalone link internal"
        main-url-is-external="false"
        standalone-url="https://www.google.com"
        standalone-url-title="CTA standalone URL example"
        standalone-url-aria-label=""
        standalone-url-is-external="false"
      />
      <hy-button variant="secondary" url="https://google.com" size="large"> Call to the action!</hy-button>
    </hy-grid-container>
Markus Kaarto's avatar
Markus Kaarto committed
  </body>