Spaces:
Running
Running
File size: 1,782 Bytes
8b26d10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | ```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 |