feat(portal): refine account identity controls
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { SiteFooter } from "./site-footer";
|
||||
|
||||
describe("SiteFooter", () => {
|
||||
it("credits DMG Games with the requested sponsor link", () => {
|
||||
const markup = renderToStaticMarkup(<SiteFooter />);
|
||||
|
||||
expect(markup).toContain("Social Minecraft is sponsored by");
|
||||
expect(markup).toContain('href="https://dmg.games"');
|
||||
expect(markup).toContain("DMG Games.");
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,15 @@
|
||||
export function SiteFooter() {
|
||||
return (
|
||||
<footer className="border-t border-line bg-panel px-6 py-6 text-center font-mono text-[10px] uppercase tracking-[0.16em] text-muted">
|
||||
Social Minecraft is sponsored by{" "}
|
||||
<a
|
||||
className="font-bold text-ink underline decoration-accent underline-offset-4 transition-colors hover:text-accent"
|
||||
href="https://dmg.games"
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
DMG Games.
|
||||
</a>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user