Demo how to import image in React
This commit is contained in:
parent
ce3092d126
commit
c3e706746a
@ -8,6 +8,7 @@ import { type TemplateProps } from "keycloakify/login/TemplateProps";
|
|||||||
import { useGetClassName } from "keycloakify/login/lib/useGetClassName";
|
import { useGetClassName } from "keycloakify/login/lib/useGetClassName";
|
||||||
import type { KcContext } from "./kcContext";
|
import type { KcContext } from "./kcContext";
|
||||||
import type { I18n } from "./i18n";
|
import type { I18n } from "./i18n";
|
||||||
|
import keycloakifyLogoPngUrl from "./assets/keycloakify-logo.png";
|
||||||
|
|
||||||
export default function Template(props: TemplateProps<KcContext, I18n>) {
|
export default function Template(props: TemplateProps<KcContext, I18n>) {
|
||||||
const {
|
const {
|
||||||
@ -59,6 +60,7 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
|
|||||||
style={{ "fontFamily": '"Work Sans"' }}
|
style={{ "fontFamily": '"Work Sans"' }}
|
||||||
>
|
>
|
||||||
{msg("loginTitleHtml", realm.displayNameHtml)}!!!
|
{msg("loginTitleHtml", realm.displayNameHtml)}!!!
|
||||||
|
<img src={keycloakifyLogoPngUrl} alt="Keycloakify logo" width={50} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
BIN
src/keycloak-theme/login/assets/keycloakify-logo.png
Normal file
BIN
src/keycloak-theme/login/assets/keycloakify-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 102 KiB |
Loading…
Reference in New Issue
Block a user