normalguy5's picture
nit like points i need it likea chit which we use to copy for exams
8f52c02 verified
Raw History Blame Contribute Delete
1.47 kB
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background-color: #f7fafc;
border-top: 1px solid #e2e8f0;
padding: 2rem 1rem;
margin-top: 2rem;
}
.footer-container {
max-width: 1280px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.footer-links {
display: flex;
gap: 1.5rem;
margin-bottom: 1rem;
}
.footer-link {
color: #4a5568;
text-decoration: none;
transition: color 0.2s;
}
.footer-link:hover {
color: #2b6cb0;
}
.copyright {
color: #718096;
font-size: 0.875rem;
}
</style>
<footer>
<div class="footer-container">
<div class="footer-links">
<a href="#" class="footer-link">About</a>
<a href="#" class="footer-link">Privacy</a>
<a href="#" class="footer-link">Terms</a>
<a href="#" class="footer-link">Contact</a>
</div>
<p class="copyright">© ${new Date().getFullYear()} PDF Nugget Miner. All rights reserved.</p>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);