dodey917's picture
Create a community organization website with welcome hero, about our mission, programs and services offered, event calendar, member spotlights, resources library, donation/support options, and get involved form. with full backend integration api processor
9d36be7 verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: #1f2937;
color: white;
padding: 3rem 1rem 1rem;
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
}
.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.footer-section h3 {
font-size: 1.25rem;
font-weight: bold;
margin-bottom: 1rem;
color: #60a5fa;
}
.footer-links {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.footer-link {
color: #d1d5db;
text-decoration: none;
transition: color 0.3s;
}
.footer-link:hover {
color: #60a5fa;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-link {
width: 40px;
height: 40px;
background: #374151;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #d1d5db;
transition: background 0.3s, color 0.3s;
}
.social-link:hover {
background: #2563eb;
color: white;
}
.newsletter-form {
display: flex;
margin-top: 1rem;
}
.newsletter-input {
flex: 1;
padding: 0.5rem 1rem;
border: none;
border-radius: 0.375rem 0 0 0.375rem;
background: #374151;
color: white;
}
.newsletter-input::placeholder {
color: #9ca3af;
}
.newsletter-button {
padding: 0.5rem 1.25rem;
background: #2563eb;
color: white;
border: none;
border-radius: 0 0.375rem 0.375rem 0;
cursor: pointer;
transition: background 0.3s;
}
.newsletter-button:hover {
background: #1d4ed8;
}
.footer-bottom {
padding-top: 2rem;
border-top: 1px solid #374151;
display: flex;
flex-direction: column;
sm:flex-direction: row;
justify-content: space-between;
align-items: center;
gap: 1rem;
}
.footer-bottom-text {
color: #9ca3af;
font-size: 0.875rem;
}
.footer-bottom-links {
display: flex;
gap: 1rem;
}
.footer-bottom-link {
color: #9ca3af;
text-decoration: none;
font-size: 0.875rem;
transition: color 0.3s;
}
.footer-bottom-link:hover {
color: #60a5fa;
}
@media (min-width: 640px) {
.footer-grid {
grid-template-columns: 2fr 1fr 1fr 1fr;
}
.footer-bottom {
flex-direction: row;
}
}
</style>
<footer>
<div class="footer-container">
<div class="footer-grid">
<div class="footer-section">
<h3>CommunityConnect Hub</h3>
<p class="text-gray-300 mb-4">
Building stronger communities through collaboration, education, and meaningful connections.
</p>
<div class="social-links">
<a href="#" class="social-link">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
</svg>
</a>
<a href="#" class="social-link">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/>
</svg>
</a>
<a href="#" class="social-link">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
</svg>
</a>
<a href="#" class="social-link">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<path d="M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.857-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.857a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 110 6.666 3.333 3.333 0 010-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z"/>
</svg>
</a>
</div>
</div>
<div class="footer-section">
<h3>Quick Links</h3>
<div class="footer-links">
<a href="index.html" class="footer-link">Home</a>
<a href="programs.html" class="footer-link">Programs</a>
<a href="events.html" class="footer-link">Events</a>
<a href="members.html" class="footer-link">Members</a>
<a href="resources.html" class="footer-link">Resources</a>
</div>
</div>
<div class="footer-section">
<h3>Get Involved</h3>
<div class="footer-links">
<a href="get-involved.html" class="footer-link">Volunteer</a>
<a href="donate.html" class="footer-link">Donate</a>
<a href="#" class="footer-link">Partner With Us</a>
<a href="#" class="footer-link">Join Newsletter</a>
</div>
</div>
<div class="footer-section">
<h3>Stay Updated</h3>
<p class="text-gray-300 mb-4">Subscribe to our newsletter for the latest updates.</p>
<form class="newsletter-form" onsubmit="handleNewsletterSubmit(event)">
<input type="email" class="newsletter-input" placeholder="Your email" required>
<button type="submit" class="newsletter-button">→</button>
</form>
</div>
</div>
<div class="footer-bottom">
<p class="footer-bottom-text">© 2024 CommunityConnect Hub. All rights reserved.</p>
<div class="footer-bottom-links">
<a href="#" class="footer-bottom-link">Privacy Policy</a>
<a href="#" class="footer-bottom-link">Terms of Service</a>
<a href="#" class="footer-bottom-link">Contact</a>
</div>
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);