feat: initial commit
This commit is contained in:
34
internal/http/handler/webui/auth/component/login_page.templ
Normal file
34
internal/http/handler/webui/auth/component/login_page.templ
Normal file
@ -0,0 +1,34 @@
|
||||
package component
|
||||
|
||||
import common "forge.cadoles.com/wpetit/kouiz/internal/http/handler/webui/common/component"
|
||||
|
||||
type LoginPageVModel struct {
|
||||
Providers []ProviderVModel
|
||||
}
|
||||
|
||||
type ProviderVModel struct {
|
||||
ID string
|
||||
Label string
|
||||
Icon string
|
||||
}
|
||||
|
||||
templ LoginPage(vmodel LoginPageVModel) {
|
||||
@common.Page() {
|
||||
<div class="is-flex is-justify-content-center is-align-items-center is-fullheight">
|
||||
<nav class="panel is-link" style="min-width: 33%">
|
||||
<p class="panel-heading">
|
||||
<span class="title">Kouiz</span>
|
||||
<span> - Choisissez votre plateforme</span>
|
||||
</p>
|
||||
for _, provider := range vmodel.Providers {
|
||||
<a class="panel-block py-5" href={ templ.URL("/auth/providers/" + provider.ID) } hx-boost="false">
|
||||
<span class="panel-icon is-size-3">
|
||||
<i class={ "fab", provider.Icon } aria-hidden="true"></i>
|
||||
</span>
|
||||
<span class="is-size-5">{ provider.Label }</span>
|
||||
</a>
|
||||
}
|
||||
</nav>
|
||||
</div>
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user