dalfuss.net/quartz/components/Footer.tsx

56 lines
2.3 KiB
TypeScript
Raw Normal View History

import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
2023-07-01 07:03:01 +00:00
import style from "./styles/footer.scss"
2023-07-23 00:27:41 +00:00
import { version } from "../../package.json"
import { i18n } from "../i18n"
2023-07-01 07:03:01 +00:00
interface Options {
links: Record<string, string>
}
export default ((opts?: Options) => {
const Footer: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {
2023-07-01 07:03:01 +00:00
const year = new Date().getFullYear()
const links = opts?.links ?? []
2023-07-23 00:27:41 +00:00
return (
<footer class={`${displayClass ?? ""}`}>
2024-11-16 22:07:50 +00:00
<hr />
<p style="display: flex; flex-wrap: wrap; justify-content: space-between;">
<span>Copyright © {year} Sam Dalfuss</span>
<span>
{i18n(cfg.locale).components.footer.createdWith}{" "}
<a href="https://quartz.jzhao.xyz/" rel="nofollow noreferrer noopener" target="_blank">Quartz</a> v{version}+<a href="https://corteximplant.net/users/marta" rel="nofollow noreferrer noopener" target="_blank">marta</a>+sam
</span>
2023-07-23 00:27:41 +00:00
</p>
2024-11-16 22:07:50 +00:00
<ul style="margin-bottom: 8px;">
2023-07-23 00:27:41 +00:00
{Object.entries(links).map(([text, link]) => (
<li>
2024-11-16 22:07:50 +00:00
<a href={link} rel="me">{text}</a>
2023-07-23 00:27:41 +00:00
</li>
))}
</ul>
2024-11-16 22:07:50 +00:00
<span class="footer-w1">
<a href="https://obeythesystem.com/" rel="nofollow" target="_blank">
<img src="/static/obeythesystem1.gif" class="w1-button"></img>
</a>
<a href="https://corteximplant.com/@dalfuss" rel="me nofollow" target="_blank">
<img src="/static/addmeon.jpg" class="w1-button"></img>
</a>
2024-12-23 01:29:32 +00:00
<img src="/static/88x31_dalfuss.png" class="w1-button"></img>
<a href="https://elftwinks.gay/" rel="nofollow" target="_blank">
<img src="/static/88x31_ElfTwinks.png" class="w1-button"></img>
</a>
2024-11-16 22:07:50 +00:00
<img src="/static/88x31_enby.png" class="w1-button"></img>
<img src="/static/88x31_trans.png" class="w1-button"></img>
<img src="/static/88x31_pan.png" class="w1-button"></img>
<img src="/static/dursti.gif" class="w1-button"></img>
<img src="/static/sendnudes.png" class="w1-button"></img>
<img src="/static/ilovegothgirls.gif" class="w1-button"></img>
</span>
2023-07-23 00:27:41 +00:00
</footer>
)
2023-07-01 07:03:01 +00:00
}
Footer.css = style
return Footer
}) satisfies QuartzComponentConstructor