parent
a03d7c1742
commit
23e182a5cb
@ -0,0 +1,15 @@ |
||||
.external-logins { |
||||
@apply flex flex-col gap-2 items-center; |
||||
|
||||
&__divider { |
||||
@apply w-60 mx-auto uppercase; |
||||
} |
||||
|
||||
&__button-list { |
||||
@apply space-y-4; |
||||
} |
||||
|
||||
&__button { |
||||
@apply border border-gray-25 bg-white rounded-lg text-gray-90 py-4 px-12 block font-semibold; |
||||
} |
||||
} |
||||
@ -0,0 +1,37 @@ |
||||
<script setup> |
||||
import BaseAppLink from "../basecomponents/BaseAppLink.vue" |
||||
import BaseDivider from "../basecomponents/BaseDivider.vue" |
||||
import { useI18n } from "vue-i18n" |
||||
import { usePlatformConfig } from "../../store/platformConfig" |
||||
|
||||
const { t } = useI18n() |
||||
|
||||
const platformConfig = usePlatformConfig() |
||||
</script> |
||||
|
||||
<template> |
||||
<div |
||||
v-if="platformConfig.externalAuthentication.length > 0" |
||||
class="external-logins" |
||||
> |
||||
<BaseDivider |
||||
:title="t('Or')" |
||||
align="center" |
||||
class="external-logins__divider" |
||||
/> |
||||
|
||||
<ul class="external-logins__button-list"> |
||||
<li |
||||
v-for="(extAuth, idx) in platformConfig.externalAuthentication" |
||||
:key="idx" |
||||
> |
||||
<BaseAppLink |
||||
:url="extAuth.url" |
||||
class="external-logins__button" |
||||
> |
||||
{{ t("Continue with %s", [extAuth.title]) }} |
||||
</BaseAppLink> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
</template> |
||||
Loading…
Reference in new issue