jfgrilmaffre's picture
je veux un site web qui permet d'accéder aux datasheets de produits semiconducteur de la société microchip. la page principale présentera un systeme de selection ( famille, type ... ) .
3c90fc7 verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
background-color: #1e293b;
color: white;
padding: 2rem 1rem;
margin-top: 4rem;
}
.footer-container {
max-width: 1440px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
}
.footer-section h3 {
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 1rem;
color: #e2e8f0;
}
.footer-links {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.footer-link {
color: #94a3b8;
text-decoration: none;
transition: color 0.2s;
}
.footer-link:hover {
color: #e2e8f0;
}
.footer-bottom {
max-width: 1440px;
margin: 2rem auto 0;
padding-top: 1.5rem;
border-top: 1px solid #334155;
display: flex;
flex-direction: column;
gap: 1rem;
align-items: center;
text-align: center;
}
.social-links {
display: flex;
gap: 1rem;
}
.social-link {
color: #94a3b8;
transition: color 0.2s;
}
.social-link:hover {
color: #e2e8f0;
}
.copyright {
color: #94a3b8;
font-size: 0.875rem;
}
@media (min-width: 768px) {
.footer-bottom {
flex-direction: row;
justify-content: space-between;
align-items: center;
text-align: left;
}
}
</style>
<div class="footer-container">
<div class="footer-section">
<h3>Products</h3>
<div class="footer-links">
<a href="#" class="footer-link">Microcontrollers</a>
<a href="#" class="footer-link">Microprocessors</a>
<a href="#" class="footer-link">Analog</a>
<a href="#" class="footer-link">Memory</a>
<a href="#" class="footer-link">Wireless</a>
</div>
</div>
<div class="footer-section">
<h3>Resources</h3>
<div class="footer-links">
<a href="#" class="footer-link">Datasheets</a>
<a href="#" class="footer-link">Application Notes</a>
<a href="#" class="footer-link">Reference Designs</a>
<a href="#" class="footer-link">Development Tools</a>
<a href="#" class="footer-link">Software</a>
</div>
</div>
<div class="footer-section">
<h3>Support</h3>
<div class="footer-links">
<a href="#" class="footer-link">Technical Support</a>
<a href="#" class="footer-link">Community</a>
<a href="#" class="footer-link">Training</a>
<a href="#" class="footer-link">Contact Us</a>
</div>
</div>
<div class="footer-section">
<h3>Company</h3>
<div class="footer-links">
<a href="#" class="footer-link">About Microchip</a>
<a href="#" class="footer-link">Careers</a>
<a href="#" class="footer-link">Investors</a>
<a href="#" class="footer-link">News</a>
</div>
</div>
</div>
<div class="footer-bottom">
<div class="social-links">
<a href="#" class="social-link"><i data-feather="twitter"></i></a>
<a href="#" class="social-link"><i data-feather="facebook"></i></a>
<a href="#" class="social-link"><i data-feather="linkedin"></i></a>
<a href="#" class="social-link"><i data-feather="youtube"></i></a>
<a href="#" class="social-link"><i data-feather="github"></i></a>
</div>
<div class="copyright">
&copy; ${new Date().getFullYear()} MicroChip Data Explorer. Not affiliated with Microchip Technology Inc.
</div>
</div>
`;
}
}
customElements.define('custom-footer', CustomFooter);