added TOS and Privacy content
This commit is contained in:
36
frontend/src/components/Footer.css
Normal file
36
frontend/src/components/Footer.css
Normal 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;
|
||||
}
|
||||
41
frontend/src/components/Footer.jsx
Normal file
41
frontend/src/components/Footer.jsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user