@ewc-lib/ewc-footer-links

1.0.4-alpha • Public • Published

Screenshot

Screenshot

API

There are the following attributes:

  • email - sets the email adress for the feedback link
  • subject - sets the subject of the email

Note: changing these attributes during runtime has no effect.

The distance to the left and the right viewport borders default to "5%" and can be set via CSS. For example:

ewc-footer-links{padding: 0 16px 0 16px;}

Usage with WebPack

package.json

"dependencies": {
  "@ewc-lib/ewc-footer-links": "^1.0.0"
}

index.html

<!DOCTYPE html>
<html>

  <head>
    <style>
      body{
          font-family: 'Arial', sans-serif;
          margin: 0;
        }
    </style>
  </head>

  <body>
    <script src="bundle.js"></script>

    <div style="width:100%;">
      <style>ewc-footer-links{padding: 0 20px 0 20px;}</style>
      <ewc-footer-links
        email="some-email-address@somewhere.earth"
        subject="This is the eMail's subject">
      </ewc-footer-links>
    </div>
  </body>

</html>

index.js

import "@ewc-lib/ewc-footer-links"

/@ewc-lib/ewc-footer-links/

    Package Sidebar

    Install

    npm i @ewc-lib/ewc-footer-links

    Weekly Downloads

    9

    Version

    1.0.4-alpha

    License

    EUPL v.1.1

    Unpacked Size

    10.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • mjaurena
    • kuncisv
    • heppa
    • robert-estat-ext