342 lines
25 KiB
Go
342 lines
25 KiB
Go
// Code generated by templ - DO NOT EDIT.
|
|
|
|
// templ: version: v0.3.1001
|
|
package views
|
|
|
|
//lint:file-ignore SA4006 This context is only used if a nested component is present.
|
|
|
|
import "github.com/a-h/templ"
|
|
import templruntime "github.com/a-h/templ/runtime"
|
|
|
|
func AuthPage(content templ.Component) templ.Component {
|
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
|
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
|
|
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
|
|
return templ_7745c5c3_CtxErr
|
|
}
|
|
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
|
|
if !templ_7745c5c3_IsBuffer {
|
|
defer func() {
|
|
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err == nil {
|
|
templ_7745c5c3_Err = templ_7745c5c3_BufErr
|
|
}
|
|
}()
|
|
}
|
|
ctx = templ.InitializeContext(ctx)
|
|
templ_7745c5c3_Var1 := templ.GetChildren(ctx)
|
|
if templ_7745c5c3_Var1 == nil {
|
|
templ_7745c5c3_Var1 = templ.NopComponent
|
|
}
|
|
ctx = templ.ClearChildren(ctx)
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<!doctype html><html lang=\"en\" class=\"light\"><head><meta charset=\"UTF-8\"><link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/pwa-icons/favicon-32x32.png\"><link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/pwa-icons/favicon-16x16.png\"><link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/pwa-icons/apple-touch-icon-180x180.png\"><link rel=\"manifest\" href=\"/manifest.webmanifest\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, viewport-fit=cover\"><meta name=\"theme-color\" content=\"#1e1b2e\"><meta name=\"apple-mobile-web-app-capable\" content=\"yes\"><meta name=\"apple-mobile-web-app-status-bar-style\" content=\"default\"><title>XTablo</title><script src=\"https://cdn.jsdelivr.net/npm/htmx.org@4.0.0-beta2/dist/htmx.min.js\"></script><link rel=\"stylesheet\" href=\"/static/styles.css\"></head><body><div id=\"root\"><section aria-label=\"Notifications alt+T\" tabindex=\"-1\" aria-live=\"polite\" aria-relevant=\"additions text\" aria-atomic=\"false\"></section><div class=\"app-shell\"><div class=\"login-screen\">")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = AnimatedBackground().Render(ctx, templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "<div class=\"card-wrap\"><div class=\"card-glow\"></div><div data-testid=\"auth-card-shell\" class=\"auth-card-shell\"><div class=\"auth-card-topbar\"><div><a href=\"https://www.xtablo.com\" class=\"back-home-link\"><svg class=\"back-home-icon\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M15 19l-7-7 7-7\"></path></svg> Retour à l'accueil</a></div><button class=\"theme-toggle-button\" aria-label=\"change theme (system)\" type=\"button\"><svg xmlns=\"http://www.w3.org/2000/svg\" class=\"theme-toggle-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\"></rect> <line x1=\"8\" x2=\"16\" y1=\"21\" y2=\"21\"></line> <line x1=\"12\" x2=\"12\" y1=\"17\" y2=\"21\"></line></svg></button></div><div class=\"brand-header\"><img alt=\"Xtablo\" class=\"brand-logo light-only\" src=\"/logo_dark.png\"> <img alt=\"Xtablo\" class=\"brand-logo dark-only\" src=\"/logo_white.png\"></div>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = content.Render(ctx, templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "</div></div></div></div></div></body></html>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
return nil
|
|
})
|
|
}
|
|
|
|
func LoginScreen() templ.Component {
|
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
|
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
|
|
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
|
|
return templ_7745c5c3_CtxErr
|
|
}
|
|
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
|
|
if !templ_7745c5c3_IsBuffer {
|
|
defer func() {
|
|
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err == nil {
|
|
templ_7745c5c3_Err = templ_7745c5c3_BufErr
|
|
}
|
|
}()
|
|
}
|
|
ctx = templ.InitializeContext(ctx)
|
|
templ_7745c5c3_Var2 := templ.GetChildren(ctx)
|
|
if templ_7745c5c3_Var2 == nil {
|
|
templ_7745c5c3_Var2 = templ.NopComponent
|
|
}
|
|
ctx = templ.ClearChildren(ctx)
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "<div class=\"title-group\"><h1>Se connecter à Xtablo</h1></div><div class=\"new-experience-link-wrap\"><a class=\"new-experience-link\" href=\"/login-v2\">Découvrez la nouvelle expérience de connexion</a></div><div class=\"auth-body\"><form class=\"login-form\" hx-post=\"/login\" hx-target=\"#login-status\" hx-swap=\"innerHTML\"><div id=\"login-status\" class=\"status-slot\"></div><div class=\"field-stack\"><label for=\"email\">Email *</label> <input id=\"email\" name=\"email\" type=\"email\" placeholder=\"Votre email\" required></div><div class=\"field-stack\"><label for=\"password\">Mot de passe *</label> <input id=\"password\" name=\"password\" type=\"password\" placeholder=\"Votre mot de passe\" required></div><div class=\"forgot-password-row\"><a class=\"forgot-password-link\" href=\"/reset-password\">Mot de passe oublié ?</a></div><button class=\"submit-button\" type=\"submit\">Se connecter</button></form>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = AuthDivider().Render(ctx, templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = GoogleButton().Render(ctx, templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "<p class=\"signup-copy\">Pas encore de compte ? <a class=\"signup-link\" href=\"/signup\">S'inscrire</a></p></div>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
return nil
|
|
})
|
|
}
|
|
|
|
func SignupScreen() templ.Component {
|
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
|
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
|
|
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
|
|
return templ_7745c5c3_CtxErr
|
|
}
|
|
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
|
|
if !templ_7745c5c3_IsBuffer {
|
|
defer func() {
|
|
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err == nil {
|
|
templ_7745c5c3_Err = templ_7745c5c3_BufErr
|
|
}
|
|
}()
|
|
}
|
|
ctx = templ.InitializeContext(ctx)
|
|
templ_7745c5c3_Var3 := templ.GetChildren(ctx)
|
|
if templ_7745c5c3_Var3 == nil {
|
|
templ_7745c5c3_Var3 = templ.NopComponent
|
|
}
|
|
ctx = templ.ClearChildren(ctx)
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, "<div class=\"title-group\"><h1>S'inscrire à Xtablo</h1></div><div class=\"new-experience-link-wrap\"><a class=\"new-experience-link\" href=\"/login\">Vous avez déjà un compte ?</a></div><div class=\"auth-body\"><form class=\"login-form\" hx-post=\"/signup\" hx-target=\"#signup-status\" hx-swap=\"innerHTML\"><div id=\"signup-status\" class=\"status-slot\"></div><div class=\"field-stack\"><label for=\"signup-email\">Email *</label> <input id=\"signup-email\" name=\"email\" type=\"email\" placeholder=\"Votre email\" required></div><div class=\"field-stack\"><label for=\"signup-password\">Mot de passe *</label> <input id=\"signup-password\" name=\"password\" type=\"password\" placeholder=\"Choisissez un mot de passe\" required></div><button class=\"submit-button\" type=\"submit\">Créer mon compte</button></form>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = AuthDivider().Render(ctx, templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = GoogleButton().Render(ctx, templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "<p class=\"signup-copy\">Vous avez déjà un compte ? <a class=\"signup-link\" href=\"/login\">Se connecter</a></p></div>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
return nil
|
|
})
|
|
}
|
|
|
|
func HomePage(displayName string, email string) templ.Component {
|
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
|
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
|
|
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
|
|
return templ_7745c5c3_CtxErr
|
|
}
|
|
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
|
|
if !templ_7745c5c3_IsBuffer {
|
|
defer func() {
|
|
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err == nil {
|
|
templ_7745c5c3_Err = templ_7745c5c3_BufErr
|
|
}
|
|
}()
|
|
}
|
|
ctx = templ.InitializeContext(ctx)
|
|
templ_7745c5c3_Var4 := templ.GetChildren(ctx)
|
|
if templ_7745c5c3_Var4 == nil {
|
|
templ_7745c5c3_Var4 = templ.NopComponent
|
|
}
|
|
ctx = templ.ClearChildren(ctx)
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "<!doctype html><html lang=\"fr\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><title>XTablo</title><link rel=\"stylesheet\" href=\"/static/styles.css\"></head><body><main class=\"home-shell\"><section class=\"home-card\"><img alt=\"Xtablo\" class=\"home-logo\" src=\"/logo_dark.png\"><h1>Bienvenue</h1><p>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
var templ_7745c5c3_Var5 string
|
|
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(displayName)
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/web/views/login.templ`, Line: 135, Col: 21}
|
|
}
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "</p><p>Session active pour ")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
var templ_7745c5c3_Var6 string
|
|
templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(email)
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/web/views/login.templ`, Line: 136, Col: 35}
|
|
}
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6))
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 10, "</p><form action=\"/logout\" method=\"post\" class=\"logout-form\"><button type=\"submit\" class=\"submit-button logout-button\">Se déconnecter</button></form></section></main></body></html>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
return nil
|
|
})
|
|
}
|
|
|
|
func AuthStatus(kind string, message string) templ.Component {
|
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
|
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
|
|
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
|
|
return templ_7745c5c3_CtxErr
|
|
}
|
|
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
|
|
if !templ_7745c5c3_IsBuffer {
|
|
defer func() {
|
|
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err == nil {
|
|
templ_7745c5c3_Err = templ_7745c5c3_BufErr
|
|
}
|
|
}()
|
|
}
|
|
ctx = templ.InitializeContext(ctx)
|
|
templ_7745c5c3_Var7 := templ.GetChildren(ctx)
|
|
if templ_7745c5c3_Var7 == nil {
|
|
templ_7745c5c3_Var7 = templ.NopComponent
|
|
}
|
|
ctx = templ.ClearChildren(ctx)
|
|
if kind == "success" {
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, "<div class=\"status-banner status-success\" role=\"status\">")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
var templ_7745c5c3_Var8 string
|
|
templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(message)
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/web/views/login.templ`, Line: 148, Col: 67}
|
|
}
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8))
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, "</div>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
} else if kind == "error" {
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "<div class=\"status-banner status-error\" role=\"alert\">")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
var templ_7745c5c3_Var9 string
|
|
templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(message)
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/web/views/login.templ`, Line: 150, Col: 64}
|
|
}
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9))
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "</div>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
}
|
|
return nil
|
|
})
|
|
}
|
|
|
|
func AuthDivider() templ.Component {
|
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
|
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
|
|
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
|
|
return templ_7745c5c3_CtxErr
|
|
}
|
|
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
|
|
if !templ_7745c5c3_IsBuffer {
|
|
defer func() {
|
|
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err == nil {
|
|
templ_7745c5c3_Err = templ_7745c5c3_BufErr
|
|
}
|
|
}()
|
|
}
|
|
ctx = templ.InitializeContext(ctx)
|
|
templ_7745c5c3_Var10 := templ.GetChildren(ctx)
|
|
if templ_7745c5c3_Var10 == nil {
|
|
templ_7745c5c3_Var10 = templ.NopComponent
|
|
}
|
|
ctx = templ.ClearChildren(ctx)
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "<div class=\"divider-row\"><div class=\"divider-line\"></div><span class=\"divider-pill\">Ou continuer avec</span><div class=\"divider-line\"></div></div>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
return nil
|
|
})
|
|
}
|
|
|
|
func GoogleButton() templ.Component {
|
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
|
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
|
|
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
|
|
return templ_7745c5c3_CtxErr
|
|
}
|
|
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
|
|
if !templ_7745c5c3_IsBuffer {
|
|
defer func() {
|
|
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err == nil {
|
|
templ_7745c5c3_Err = templ_7745c5c3_BufErr
|
|
}
|
|
}()
|
|
}
|
|
ctx = templ.InitializeContext(ctx)
|
|
templ_7745c5c3_Var11 := templ.GetChildren(ctx)
|
|
if templ_7745c5c3_Var11 == nil {
|
|
templ_7745c5c3_Var11 = templ.NopComponent
|
|
}
|
|
ctx = templ.ClearChildren(ctx)
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, "<button class=\"gsi-material-button\" type=\"button\"><div class=\"gsi-material-button-state\"></div><div class=\"gsi-material-button-content-wrapper\"><div class=\"gsi-material-button-icon\"><svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 48 48\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" style=\"display: block;\"><path fill=\"#EA4335\" d=\"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z\"></path> <path fill=\"#4285F4\" d=\"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z\"></path> <path fill=\"#FBBC05\" d=\"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z\"></path> <path fill=\"#34A853\" d=\"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z\"></path> <path fill=\"none\" d=\"M0 0h48v48H0z\"></path></svg></div><span class=\"gsi-material-button-contents\">Continuer avec Google</span> <span class=\"visually-hidden\">Sign in with Google</span></div></button>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
return nil
|
|
})
|
|
}
|
|
|
|
func AnimatedBackground() templ.Component {
|
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
|
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
|
|
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
|
|
return templ_7745c5c3_CtxErr
|
|
}
|
|
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
|
|
if !templ_7745c5c3_IsBuffer {
|
|
defer func() {
|
|
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
|
|
if templ_7745c5c3_Err == nil {
|
|
templ_7745c5c3_Err = templ_7745c5c3_BufErr
|
|
}
|
|
}()
|
|
}
|
|
ctx = templ.InitializeContext(ctx)
|
|
templ_7745c5c3_Var12 := templ.GetChildren(ctx)
|
|
if templ_7745c5c3_Var12 == nil {
|
|
templ_7745c5c3_Var12 = templ.NopComponent
|
|
}
|
|
ctx = templ.ClearChildren(ctx)
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "<div class=\"background-layer\" aria-hidden=\"true\"><div class=\"background-logo bg-01 animate-move-right-slow opacity-04\"><img alt=\"Xtablo\" class=\"logo-asset size-16 animate-spin-slow light-only\" src=\"/logo_dark.png\"><img alt=\"Xtablo\" class=\"logo-asset size-16 animate-spin-slow dark-only\" src=\"/logo_white.png\"></div><div class=\"background-logo bg-02 animate-move-right-medium opacity-03\"><img alt=\"Xtablo\" class=\"logo-asset size-12 animate-bounce-gentle light-only\" src=\"/logo_dark.png\"><img alt=\"Xtablo\" class=\"logo-asset size-12 animate-bounce-gentle dark-only\" src=\"/logo_white.png\"></div><div class=\"background-logo bg-03 animate-move-right-fast opacity-05\"><img alt=\"Xtablo\" class=\"logo-asset size-20 animate-pulse-gentle light-only\" src=\"/logo_dark.png\"><img alt=\"Xtablo\" class=\"logo-asset size-20 animate-pulse-gentle dark-only\" src=\"/logo_white.png\"></div><div class=\"background-logo bg-04 animate-move-right-slow opacity-02\"><img alt=\"Xtablo\" class=\"logo-asset size-14 animate-wiggle light-only\" src=\"/logo_dark.png\"><img alt=\"Xtablo\" class=\"logo-asset size-14 animate-wiggle dark-only\" src=\"/logo_white.png\"></div><div class=\"background-logo bg-05 animate-move-right-medium opacity-03\"><img alt=\"Xtablo\" class=\"logo-asset size-18 animate-float-gentle\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-06 animate-move-diagonal-1 opacity-03\"><img alt=\"Xtablo\" class=\"logo-asset size-10 animate-spin-reverse\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-07 animate-move-diagonal-2 opacity-04\"><img alt=\"Xtablo\" class=\"logo-asset size-16 animate-scale-gentle\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-08 animate-move-diagonal-3 opacity-02\"><img alt=\"Xtablo\" class=\"logo-asset size-12 animate-rotate-gentle\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-09 animate-move-down-slow opacity-03\"><img alt=\"Xtablo\" class=\"logo-asset size-14 animate-bounce-soft\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-10 animate-move-down-medium opacity-04\"><img alt=\"Xtablo\" class=\"logo-asset size-16 animate-sway\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-11 animate-orbit-1 opacity-02\"><img alt=\"Xtablo\" class=\"logo-asset size-08\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-12 animate-orbit-2 opacity-03\"><img alt=\"Xtablo\" class=\"logo-asset size-10\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-13 animate-orbit-3 opacity-02\"><img alt=\"Xtablo\" class=\"logo-asset size-06\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-14 animate-orbit-4 opacity-03\"><img alt=\"Xtablo\" class=\"logo-asset size-12 animate-spin-fast\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-15 animate-orbit-5 opacity-02\"><img alt=\"Xtablo\" class=\"logo-asset size-07 animate-pulse-fast\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-16 animate-zigzag-1 opacity-04\"><img alt=\"Xtablo\" class=\"logo-asset size-14 animate-wobble\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-17 animate-zigzag-2 opacity-03\"><img alt=\"Xtablo\" class=\"logo-asset size-11 animate-shake\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-18 animate-zigzag-3 opacity-05\"><img alt=\"Xtablo\" class=\"logo-asset size-16 animate-bounce-crazy\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-19 animate-spiral-1 opacity-03\"><img alt=\"Xtablo\" class=\"logo-asset size-09 animate-spin-wobble\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-20 animate-spiral-2 opacity-04\"><img alt=\"Xtablo\" class=\"logo-asset size-13 animate-flip\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-21 animate-float-random-1 opacity-02\"><img alt=\"Xtablo\" class=\"logo-asset size-08 animate-twirl\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-22 animate-float-random-2 opacity-03\"><img alt=\"Xtablo\" class=\"logo-asset size-10 animate-dance\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-23 animate-float-random-3 opacity-04\"><img alt=\"Xtablo\" class=\"logo-asset size-12 animate-jiggle\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-24 animate-float-random-4 opacity-02\"><img alt=\"Xtablo\" class=\"logo-asset size-09 animate-vibrate\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-25 animate-wave-1 opacity-03\"><img alt=\"Xtablo\" class=\"logo-asset size-11 animate-swing\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-26 animate-wave-2 opacity-04\"><img alt=\"Xtablo\" class=\"logo-asset size-13 animate-pendulum\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-27 animate-wave-3 opacity-02\"><img alt=\"Xtablo\" class=\"logo-asset size-10 animate-elastic\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-28 animate-wave-4 opacity-05\"><img alt=\"Xtablo\" class=\"logo-asset size-15 animate-rubber\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-29 animate-corner-shoot-1 opacity-03\"><img alt=\"Xtablo\" class=\"logo-asset size-12 animate-rocket\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-30 animate-corner-shoot-2 opacity-04\"><img alt=\"Xtablo\" class=\"logo-asset size-14 animate-comet\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-31 animate-corner-shoot-3 opacity-02\"><img alt=\"Xtablo\" class=\"logo-asset size-10 animate-meteor\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-32 animate-corner-shoot-4 opacity-05\"><img alt=\"Xtablo\" class=\"logo-asset size-16 animate-blast\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-33 animate-bounce-ball-1 opacity-04\"><img alt=\"Xtablo\" class=\"logo-asset size-08 animate-spin-bounce\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-34 animate-bounce-ball-2 opacity-03\"><img alt=\"Xtablo\" class=\"logo-asset size-11 animate-flip-bounce\" src=\"/logo_dark.png\"></div><div class=\"background-logo bg-35 animate-bounce-ball-3 opacity-05\"><img alt=\"Xtablo\" class=\"logo-asset size-13 animate-scale-bounce\" src=\"/logo_dark.png\"></div></div>")
|
|
if templ_7745c5c3_Err != nil {
|
|
return templ_7745c5c3_Err
|
|
}
|
|
return nil
|
|
})
|
|
}
|
|
|
|
var _ = templruntime.GeneratedTemplate
|