pulse-flow / components /footer.js
CSNET's picture
ทำต่อให้เสร็จ
8b26d10 verified
Raw History Blame Contribute Delete
1.78 kB
```javascript
class ThaiFooter extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: 'open' });
}
connectedCallback() {
this.render();
}
render() {
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 40;
}
footer {
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-top: 1px solid rgba(255, 255, 255, 0.18);
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
padding: 0.75rem 0;
}
.dark footer {
background: rgba(15, 23, 42, 0.9);
border-color: rgba(255, 255, 255, 0.08);
}
.nav-items {
display: flex;
justify-content: space-around;
align-items: center;
max-width: 500px;
margin: 0 auto;
}
a {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.25rem;
padding: 0.5rem;
text-decoration: none;
color: #64748b;
transition: all 0.2s;
border-radius: 0.75rem;
min-width: 64px