
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@axa-ch/footer
Advanced tools
The big version of the footer. It is SEO friendly, can take custom links and also allows displaying social-media buttons to the user.
Set the Boolean clickevents property, if you want to use callbacks for footer links. By default, links will exhibit native behaviour.
Example:
<axa-footer clickevents> ... </axa-footer>
Important: clickevents needs to be set in order for this to work!
Function-valued onItemClick takes a callback function. The callback is invoked with 1 parameter, which is the value of the href attribute of the link that the user clicked.
Example:
<axa-footer
clickevents
onItemClick={(link) => console.log('A link in the footer was clicked', link)}
>
...
</axa-footer>
Historical note: Because of SEO (Search Engine Optimization) concerns, we had to ditch the easier model-based approach in favour of child fragments.
Here is a little documentation of typical slot-filling patterns:
| Slot | Details |
|---|---|
<h2 slot="column-title">AXA & you</h2> | The title for the columns |
<a slot="column-item" href="" target="_blank"></a> | Every child item link |
<h2 slot="social-title"></h2> | The title for the social media section |
<a slot="social-item" href="" target="_blank"></a> | Every child social link |
We currently require the social media SVG icons to also be explicitly defined as children of the child social links, because there is no way to predefine them internally.
...
import React, { Component } from 'react';
import AXAFooterReact from './axa-footer.js';
class HelloWorld extends Component {
reactToItemClick = link => {
console.log('A link in the footer was clicked', link);
};
render() {
return (
<AXAFooterReact onItemClick={link => this.reactToItemClick(link)} clickevents>
<h2 slot="column-title">axa & you</h2>
<a slot="column-item" href="https://axa.ch/en/private-customers.html" target="_blank">
Contact
</a>
<a slot="column-item" href="https://axa.ch/en/private-customers.html" target="_blank">
Report a claim
</a>
<a slot="column-item" href="https://axa.ch/en/private-customers.html" target="_blank">
Broker
</a>
<a slot="column-item" href="https://axa.ch/en/private-customers.html" target="_blank">
Job vacancies
</a>
<a slot="column-item" href="https://axa.ch/en/private-customers.html" target="_blank">
MyAXA
</a>
<a slot="column-item" href="https://axa.ch/en/private-customers.html" target="_blank">
Customer reviews
</a>
<a slot="column-item" href="https://axa.ch/en/private-customers.html" target="_blank">
Garage Portal
</a>
<h2 slot="column-title">axa worldwide</h2>
<a slot="column-item" href="https://axa.ch/en/private-customers.html" target="_blank">
AXA worldwide
</a>
<h2 slot="social-title">stay in touch</h2>
<a slot="social-item" href="https://www.facebook.com/axach/" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25"><path d="M8.865 9.043H6.213v3.473h2.652v10.42h4.452v-10.42h3.274l.31-3.473h-3.584V7.634c0-.832.164-1.152.982-1.152h2.57V2.096h-3.388c-3.274 0-4.616 1.377-4.616 4.002v2.945z" fill="#FFFFFF"/></svg>
</a>
<a slot="social-item" href="https://www.instagram.com/axaswitzerland/" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25"><g transform="translate(1 1)" fill="#FFFFFF"><circle cx="10.931" cy="10.931" r="3.644"/><path d="M21.794 6.428a6.033 6.033 0 0 0-6.36-6.36H6.428a6.033 6.033 0 0 0-6.36 6.36v9.006a6.033 6.033 0 0 0 6.36 6.36h9.006a6.033 6.033 0 0 0 6.36-6.36v-4.503c0-2.973.051-3.334 0-4.503zm-16.81 4.503a5.947 5.947 0 1 1 11.894 0 5.947 5.947 0 0 1-11.894 0zm10.91-5.653a1.306 1.306 0 1 1 2.414-1 1.306 1.306 0 0 1-2.413 1z"/></g></svg></a>
<a slot="social-item" href="https://twitter.com/axa_schweiz" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25"><path d="M22.748 5.267a8.861 8.861 0 0 1-2.548.705 4.449 4.449 0 0 0 1.962-2.468 8.88 8.88 0 0 1-2.817 1.074 4.44 4.44 0 0 0-5.356-.897 4.452 4.452 0 0 0-2.225 4.96 12.604 12.604 0 0 1-9.138-4.65 4.453 4.453 0 0 0 1.375 5.944 4.422 4.422 0 0 1-2.013-.554 4.448 4.448 0 0 0 3.555 4.416 4.438 4.438 0 0 1-1.995.15 4.444 4.444 0 0 0 4.142 3.09 8.912 8.912 0 0 1-6.574 1.847 12.612 12.612 0 0 0 13.16.28 12.648 12.648 0 0 0 6.258-11.597 9.045 9.045 0 0 0 2.213-2.3z" fill="#FFFFFF"/></svg>
</a>
<a slot="social-item" href="https://www.xing.com/companies/AXAWINTERTHUR" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25"><path d="M17.638 2.04c-.43 0-.619.268-.768.545 0 0-6.206 10.933-6.385 11.29l4.07 7.46c.14.258.36.546.798.546h2.874c.18 0 .309-.07.379-.179.08-.129.08-.287 0-.446l-4.06-7.39L20.92 2.664a.474.474 0 0 0 .01-.447.458.458 0 0 0-.389-.178M5.546 5.958c-.17 0-.319.05-.389.179-.08.129-.07.278.02.436l1.936 3.373-3.053 5.358a.576.576 0 0 0 0 .446c.07.119.2.179.369.179h2.883c.43 0 .639-.278.788-.546 0 0 2.983-5.258 3.103-5.456L9.228 6.504c-.14-.258-.36-.546-.808-.546" fill="#FFFFFF"/></svg>
</a>
<a slot="social-item" href="https://www.youtube.com/axaschweiz" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25"><path d="M18.797 4.185c-3.25-.216-10.469-.216-13.719 0-3.516.23-3.922 2.323-3.953 7.815-.031 5.492.438 7.585 3.953 7.815 3.234.216 10.469.216 13.719 0 3.515-.23 3.922-2.323 3.953-7.815.031-5.492-.438-7.585-3.953-7.815zM9.234 15.554V8.446L16.438 12l-7.204 3.554z" fill="#FFFFFF"/></svg>
</a>
<a slot="social-item" href="https://www.linkedin.com/company/axa/" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25"><path d="M6.519 4.183A2.146 2.146 0 0 1 4.354 6.3a2.147 2.147 0 0 1-2.121-2.16A2.147 2.147 0 0 1 4.376 2a2.14 2.14 0 0 1 1.527.641c.403.41.625.966.616 1.542zm0 3.9H2.216V22h4.32L6.519 8.083zm6.878 0h-4.27V22h4.287v-7.3c0-4.05 5.2-4.383 5.2 0V22h4.303v-8.817c0-6.833-7.692-6.666-9.503-3.216l-.017-1.884z" fill="#FFFFFF"/></svg>
</a>
</AXAFooterReact>
);
}
}
export default HelloWorld;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Your awesome title</title>
</head>
<body>
<axa-footer>
<h2 slot="column-title">axa & you</h2>
<a
slot="column-item"
href="https://axa.ch/en/private-customers.html"
target="_blank"
>Contact</a
>
<a
slot="column-item"
href="https://axa.ch/en/private-customers.html"
target="_blank"
>Report a claim</a
>
<a
slot="column-item"
href="https://axa.ch/en/private-customers.html"
target="_blank"
>Broker</a
>
<a
slot="column-item"
href="https://axa.ch/en/private-customers.html"
target="_blank"
>Job vacancies</a
>
<a
slot="column-item"
href="https://axa.ch/en/private-customers.html"
target="_blank"
>MyAXA</a
>
<a
slot="column-item"
href="https://axa.ch/en/private-customers.html"
target="_blank"
>Customer reviews</a
>
<a
slot="column-item"
href="https://axa.ch/en/private-customers.html"
target="_blank"
>Garage Portal</a
>
<h2 slot="column-title">axa worldwide</h2>
<a
slot="column-item"
href="https://axa.ch/en/private-customers.html"
target="_blank"
>AXA worldwide</a
>
<h2 slot="social-title">stay in touch</h2>
<a
slot="social-item"
href="https://www.facebook.com/axach/"
target="_blank"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="25"
height="25"
viewBox="0 0 25 25"
>
<path
d="M8.865 9.043H6.213v3.473h2.652v10.42h4.452v-10.42h3.274l.31-3.473h-3.584V7.634c0-.832.164-1.152.982-1.152h2.57V2.096h-3.388c-3.274 0-4.616 1.377-4.616 4.002v2.945z"
fill="#FFFFFF"
/>
</svg>
</a>
<a
slot="social-item"
href="https://www.instagram.com/axaswitzerland/"
target="_blank"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="25"
height="25"
viewBox="0 0 25 25"
>
<g transform="translate(1 1)" fill="#FFFFFF">
<circle cx="10.931" cy="10.931" r="3.644" />
<path
d="M21.794 6.428a6.033 6.033 0 0 0-6.36-6.36H6.428a6.033 6.033 0 0 0-6.36 6.36v9.006a6.033 6.033 0 0 0 6.36 6.36h9.006a6.033 6.033 0 0 0 6.36-6.36v-4.503c0-2.973.051-3.334 0-4.503zm-16.81 4.503a5.947 5.947 0 1 1 11.894 0 5.947 5.947 0 0 1-11.894 0zm10.91-5.653a1.306 1.306 0 1 1 2.414-1 1.306 1.306 0 0 1-2.413 1z"
/>
</g>
</svg>
</a>
<a
slot="social-item"
href="https://twitter.com/axa_schweiz"
target="_blank"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="25"
height="25"
viewBox="0 0 25 25"
>
<path
d="M22.748 5.267a8.861 8.861 0 0 1-2.548.705 4.449 4.449 0 0 0 1.962-2.468 8.88 8.88 0 0 1-2.817 1.074 4.44 4.44 0 0 0-5.356-.897 4.452 4.452 0 0 0-2.225 4.96 12.604 12.604 0 0 1-9.138-4.65 4.453 4.453 0 0 0 1.375 5.944 4.422 4.422 0 0 1-2.013-.554 4.448 4.448 0 0 0 3.555 4.416 4.438 4.438 0 0 1-1.995.15 4.444 4.444 0 0 0 4.142 3.09 8.912 8.912 0 0 1-6.574 1.847 12.612 12.612 0 0 0 13.16.28 12.648 12.648 0 0 0 6.258-11.597 9.045 9.045 0 0 0 2.213-2.3z"
fill="#FFFFFF"
/>
</svg>
</a>
<a
slot="social-item"
href="https://www.xing.com/companies/AXAWINTERTHUR"
target="_blank"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="25"
height="25"
viewBox="0 0 25 25"
>
<path
d="M17.638 2.04c-.43 0-.619.268-.768.545 0 0-6.206 10.933-6.385 11.29l4.07 7.46c.14.258.36.546.798.546h2.874c.18 0 .309-.07.379-.179.08-.129.08-.287 0-.446l-4.06-7.39L20.92 2.664a.474.474 0 0 0 .01-.447.458.458 0 0 0-.389-.178M5.546 5.958c-.17 0-.319.05-.389.179-.08.129-.07.278.02.436l1.936 3.373-3.053 5.358a.576.576 0 0 0 0 .446c.07.119.2.179.369.179h2.883c.43 0 .639-.278.788-.546 0 0 2.983-5.258 3.103-5.456L9.228 6.504c-.14-.258-.36-.546-.808-.546"
fill="#FFFFFF"
/>
</svg>
</a>
<a
slot="social-item"
href="https://www.youtube.com/axaschweiz"
target="_blank"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="25"
height="25"
viewBox="0 0 25 25"
>
<path
d="M18.797 4.185c-3.25-.216-10.469-.216-13.719 0-3.516.23-3.922 2.323-3.953 7.815-.031 5.492.438 7.585 3.953 7.815 3.234.216 10.469.216 13.719 0 3.515-.23 3.922-2.323 3.953-7.815.031-5.492-.438-7.585-3.953-7.815zM9.234 15.554V8.446L16.438 12l-7.204 3.554z"
fill="#FFFFFF"
/>
</svg>
</a>
<a
slot="social-item"
href="https://www.linkedin.com/company/axa/"
target="_blank"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="25"
height="25"
viewBox="0 0 25 25"
>
<path
d="M6.519 4.183A2.146 2.146 0 0 1 4.354 6.3a2.147 2.147 0 0 1-2.121-2.16A2.147 2.147 0 0 1 4.376 2a2.14 2.14 0 0 1 1.527.641c.403.41.625.966.616 1.542zm0 3.9H2.216V22h4.32L6.519 8.083zm6.878 0h-4.27V22h4.287v-7.3c0-4.05 5.2-4.383 5.2 0V22h4.303v-8.817c0-6.833-7.692-6.666-9.503-3.216l-.017-1.884z"
fill="#FFFFFF"
/>
</svg>
</a>
</axa-footer>
<script src="node_modules/@axa-ch/footer/dist/index.js"></script>
</body>
</html>
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.