Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support for scaling login screens on mobile devices #120

Merged
merged 1 commit into from
May 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions auth-server/keycloak-theme/themes/corn/login/tailwind-template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,26 @@

<body class="h-screen flex flex-col bg-yellow-400">
<div class="flex">
<div class="ml-auto h-screen">
<div class="ml-auto h-screen hidden lg:block">
<div class="max-h-[0px] max-w-[0px]">
<div class="min-h-screen flex items-center">
<img class="min-h-[512px] min-w-[512px] ml-[-352px]" src="${url.resourcesPath}/../../common/corn/img/corn.png" />
<img class="min-h-[472px] min-w-[472px] ml-[-312px] xl:min-h-[512px] xl:min-w-[512px] xl:ml-[-352px]"
src="${url.resourcesPath}/../../common/corn/img/corn.png" />
</div>
</div>
<div class="bg-yellowishDark rounded-l-[32px] w-[160px] h-screen"></div>
</div>
<div class="bg-yellowishDark h-screen pl-[32px] pr-[32px] w-[50%]">
<div class="bg-yellowishDark h-screen pl-[32px] pr-[32px] w-full lg:w-[50%]">
<div class="h-screen flex items-center relative">
<div class="min-w-[512px]">
<h1 class="mt-[12px] mb-[12px] text-center font-semibold text-white text-5xl">
${kcSanitize(msg("loginTitleHtml",(realm.displayNameHtml!'')))?no_esc}
</h1>
<div class="w-full xl:w-[0px] xl:min-w-[512px]">
<div class="flex mt-[12px] mb-[12px] text-center font-semibold text-white text-5xl">
<div class="flex mx-auto space-x-[16px]">
<img class="lg:hidden h-[40px] w-[40px] my-auto" src="${url.resourcesPath}/../../common/corn/img/corn.png" />
<h1>
${kcSanitize(msg("loginTitleHtml",(realm.displayNameHtml!'')))?no_esc}
</h1>
</div>
</div>
<#nested "main">
</div>
</div>
Expand Down
Loading