Imageopl / components /footer.js
doeqoth's picture
ปรับให้ใช้งานได้จริงยืนยันตัวตนด้วยการใส่ API หรือถ้าเป็นตัวผมเองไม่ต้องยืนยันตัวตนปรับใช้กับฐานข้อมูลจริงเลยนะโดยให้มีการยืนยันตัวตนการเข้าถึงข้อมูลในครั้งแรกก็ได้แล้วก็สามารถแก้ไขข้อมูลในตารางได้ด้วยหัวข้อต่างๆต้องทำให้มันสามารถเปลี่ยนได้
5ea2408 verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
width: 100%;
margin-top: auto;
}
footer {
background-color: #f8fafc;
padding: 1.5rem 0;
border-top: 1px solid #e2e8f0;
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.footer-links {
display: flex;
gap: 1rem;
}
.footer-links a {
color: #64748b;
text-decoration: none;
font-size: 0.875rem;
}
.footer-links a:hover {
color: #6366f1;
}
.copyright {
color: #64748b;
font-size: 0.875rem;
}
@media (max-width: 768px) {
.footer-container {
flex-direction: column;
gap: 1rem;
text-align: center;
}
}
</style>
<footer>
<div class="footer-container">
<div class="copyright">
&copy; ${new Date().getFullYear()} HuggingSpace Asset Manager
</div>
<div class="footer-links">
<a href="https://huggingface.co/docs" target="_blank">Documentation</a>
<a href="https://huggingface.co/support" target="_blank">Support</a>
<a href="https://huggingface.co/privacy" target="_blank">Privacy</a>
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);