Skip to content

Commit

Permalink
Do some styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Aug 24, 2024
1 parent bac0560 commit 9430b42
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kc.gen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

import { lazy, Suspense, type ReactNode } from "react";

export type ThemeName = "keycloakify-starter";
export type ThemeName = "pydis-theme";

export const themeNames: ThemeName[] = ["keycloakify-starter"];
export const themeNames: ThemeName[] = ["pydis-theme"];

export type KcEnvName = never;

Expand Down
1 change: 1 addition & 0 deletions src/login/KcPage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "./main.css"
import { Suspense, lazy } from "react";
import type { ClassKey } from "keycloakify/login";
import type { KcContext } from "./KcContext";
Expand Down
1 change: 1 addition & 0 deletions src/login/assets/banner_pattern.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/login/assets/pydis-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/login/assets/pydis-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions src/login/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
body.kcBodyClass {
background-image: linear-gradient(rgba(0, 0, 0, 0.2),
rgba(0, 0, 0, 0.4)), url("./assets/banner_pattern.svg");
background-size: 256px;
background-repeat: repeat;
height: 100%;
}

div.kc-logo-text {
background-image: url(./assets/pydis-light.png);
background-repeat: no-repeat;
background-position: center;
background-size: 85%;
height: 75px;
width: 300px;
margin: 0 auto;
}

@media (max-width: 767px) {
div.kc-logo-text {
margin: 0;
background-image: url(./assets/pydis-dark.png);
width: 150px;
height: 50px;
background-size: 100%;
}
}

0 comments on commit 9430b42

Please sign in to comment.