File size: 4,597 Bytes
7bffc23 |
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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
background: rgb(88, 28, 135);
color: white;
padding: 4rem 2rem;
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 3rem;
}
.footer-brand {
font-size: 1.5rem;
font-weight: bold;
margin-bottom: 1.5rem;
display: flex;
align-items: center;
}
.footer-brand i {
margin-right: 0.5rem;
}
.footer-description {
opacity: 0.8;
line-height: 1.6;
margin-bottom: 2rem;
}
.social-links {
display: flex;
gap: 1rem;
}
.social-link {
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
transition: all 0.3s;
}
.social-link:hover {
background: rgb(234, 179, 8);
transform: translateY(-3px);
}
.footer-heading {
font-size: 1.25rem;
font-weight: bold;
margin-bottom: 1.5rem;
position: relative;
display: inline-block;
}
.footer-heading::after {
content: '';
position: absolute;
left: 0;
bottom: -8px;
width: 40px;
height: 3px;
background: rgb(234, 179, 8);
}
.footer-links {
display: flex;
flex-direction: column;
gap: 1rem;
}
.footer-link {
color: white;
opacity: 0.8;
text-decoration: none;
transition: all 0.3s;
}
.footer-link:hover {
opacity: 1;
color: rgb(234, 179, 8);
padding-left: 5px;
}
.copyright {
max-width: 1200px;
margin: 4rem auto 0;
text-align: center;
padding-top: 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
opacity: 0.7;
font-size: 0.9rem;
}
</style>
<div class="footer-container">
<div>
<div class="footer-brand">
<i data-feather="activity"></i>
DataAlchemy
</div>
<p class="footer-description">
Transforming data into insights through research and engineering.
Bridging theory and practice in artificial intelligence.
</p>
<div class="social-links">
<a href="#" class="social-link">
<i data-feather="github"></i>
</a>
<a href="#" class="social-link">
<i data-feather="linkedin"></i>
</a>
<a href="#" class="social-link">
<i data-feather="twitter"></i>
</a>
<a href="#" class="social-link">
<i data-feather="youtube"></i>
</a>
</div>
</div>
<div>
<h3 class="footer-heading">Quick Links</h3>
<div class="footer-links">
<a href="#about" class="footer-link">About Me</a>
<a href="#experience" class="footer-link">Experience</a>
<a href="#projects" class="footer-link">Research Projects</a>
<a href="#publications" class="footer-link">Publications</a>
<a href="#blog" class="footer-link">Blog</a>
<a href="#contact" class="footer-link">Contact</a>
</div>
</div>
<div>
<h3 class="footer-heading">Resources</h3>
<div class="footer-links">
<a href="#" class="footer-link">GitHub Repos</a>
<a href="#" class="footer-link">Research Blog</a>
<a href="#" class="footer-link">Technical Papers</a>
<a href="#" class="footer-link">Learning Resources</a>
<a href="#" class="footer-link">Conference Talks</a>
</div>
</div>
</div>
<div class="copyright">
© ${new Date().getFullYear()} DataAlchemy Portfolio. All rights reserved.
</div>
`;
}
}
customElements.define('custom-footer', CustomFooter); |