import React from "react"; import type { Meta, StoryObj } from "@storybook/react"; import { useInsertLinkTags } from "../../dist/tools/useInsertLinkTags"; import { tss } from "../tss"; // @ts-expect-error import screenshotPngUrl from "./screenshot.png"; const meta = { title: "Account SPA/index.ftl" } satisfies Meta; export default meta; type Story = StoryObj; export const NotInStorybookButSupported: Story = { render: () => }; function AccountSpa() { console.log(window.location.href); useInsertLinkTags({ componentOrHookName: "Template", hrefs: [] }); const { classes, theme } = useStyles(); return (

Keycloakify offers two option for creating an account theme:{" "} Multi Page {" "} or{" "} Single Page . Since the account Single Page does not support Storybook, here is a screenshot of it's default look:

image
Learn more

); } const useStyles = tss.withName({ AccountSpa }).create(({ isDark, theme }) => ({ root: { height: "100vh", color: isDark ? "white" : "black", backgroundColor: theme.appContentBg, fontFamily: "'Work Sans'", fontSize: "14px", lineHeight: "24px", WebkitFontSmoothing: "antialiased", "& a": { color: theme.colorSecondary, textDecoration: "none", "&:hover": { textDecoration: "underline" } }, "& h1": { fontSize: "32px", marginBottom: 35 }, display: "flex", justifyContent: "center" }, content: { maxWidth: 750, textAlign: "center", marginTop: 100 }, keycloakifyLogoWrapper: { display: "flex", justifyContent: "center" }, keycloakifyLogo: { width: 400 }, screenshot: { maxWidth: "100%" } }));