Skip to content

Create a Footer Component with Useful Links #50

@Eshaan-byte

Description

@Eshaan-byte

Description

Add a footer to the app with useful links like GitHub repo, documentation, privacy policy placeholder, and credits.

Task

Create a simple footer component and add it to the app layout.

What to Create

1. Create Footer Component

Create a new file: src/components/layout/Footer.tsx

export default function Footer() {
  return (
    <footer className="bg-white border-t border-gray-200 py-8 mt-12">
      <div className="max-w-7xl mx-auto px-6">
        <div className="grid md:grid-cols-3 gap-8">
          <div>
            <h3 className="font-bold text-gray-900 mb-2">Carbon Tracker</h3>
            <p className="text-sm text-gray-600">
              Track your digital carbon footprint and make a positive impact.
            </p>
          </div>
          
          <div>
            <h4 className="font-semibold text-gray-900 mb-2">Links</h4>
            <ul className="space-y-1 text-sm text-gray-600">
              <li><a href="#" className="hover:text-green-600">About</a></li>
              <li><a href="#" className="hover:text-green-600">Privacy Policy</a></li>
              <li><a href="#" className="hover:text-green-600">Terms of Service</a></li>
            </ul>
          </div>
          
          <div>
            <h4 className="font-semibold text-gray-900 mb-2">Connect</h4>
            <ul className="space-y-1 text-sm text-gray-600">
              <li><a href="https://github.com/Eshaan-byte/Carbon-Tracker" target="_blank" className="hover:text-green-600">GitHub</a></li>
              <li><a href="#" className="hover:text-green-600">Report Issue</a></li>
            </ul>
          </div>
        </div>
        
        <div className="mt-8 pt-6 border-t border-gray-200 text-center text-sm text-gray-500">
          Made with 💚 for a sustainable digital future
        </div>
      </div>
    </footer>
  );
}
2. Add to Layout
Import and add the footer to [src/components/layout/AppLayout.tsx](vscode-webview://1p7vf11fk591v14vuaq6mhi427qvlsrah9h02n7uhcmfam6he67p/src/components/layout/AppLayout.tsx) or wherever appropriate.

Acceptance Criteria
 Footer component created
 Footer displays on all pages
 Links are styled and functional
 Responsive design (looks good on mobile)
 GitHub link points to the correct repo

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions