added TOS and Privacy content

This commit is contained in:
KS Jannette
2026-05-12 18:17:02 -04:00
parent cb476c38d7
commit c387798be7
8 changed files with 340 additions and 17 deletions

View File

@@ -0,0 +1,36 @@
.footer {
flex-shrink: 0;
margin-top: auto;
padding: 0.75rem 1rem;
background-color: var(--color-bg);
border-top: 1px solid var(--color-border-light);
}
.footer__inner {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 0.5rem 1rem;
max-width: 1400px;
margin: 0 auto;
font-size: 0.85rem;
line-height: 1.4;
color: var(--color-text-dimmed);
}
.footer__copyright {
color: var(--color-text-dimmed);
}
.footer__link {
font-size: 1.265em;
color: inherit;
text-decoration: none;
white-space: nowrap;
}
.footer__link:hover {
color: var(--color-primary);
text-decoration: underline;
}

View File

@@ -0,0 +1,41 @@
import { Link } from "react-router-dom";
import { useAuth } from "../contexts/AuthContext";
import "./Footer.css";
export default function Footer() {
const { currentUser } = useAuth();
if (!currentUser) return null;
return (
<footer className="footer">
<div className="footer__inner">
<span className="footer__copyright">© 2026 sjDev.co</span>
<Link
to="/terms"
target="_blank"
rel="noopener noreferrer"
className="footer__link"
>
Terms
</Link>
<Link
to="/privacy"
target="_blank"
rel="noopener noreferrer"
className="footer__link"
>
Privacy
</Link>
<a
href="mailto:support@koinp.ing"
target="_blank"
rel="noopener noreferrer"
className="footer__link"
>
Contact Support
</a>
</div>
</footer>
);
}