Added welcome page
This commit is contained in:
@ -16,6 +16,10 @@ func Get(ctx *aero.Context) string {
|
||||
return utils.AllowEmbed(ctx, ctx.HTML(components.Login("_blank")))
|
||||
}
|
||||
|
||||
if !user.HasBasicInfo() {
|
||||
return utils.AllowEmbed(ctx, ctx.HTML(components.ExtensionEnterBasicInfo()))
|
||||
}
|
||||
|
||||
// Extension is enabled as long as the site isn't finished yet.
|
||||
// ---
|
||||
// if !user.IsPro() && user.TimeSinceRegistered() > 14*24*time.Hour {
|
||||
|
@ -10,4 +10,13 @@ component ExtensionNavigation(user *arn.User)
|
||||
.spacer
|
||||
|
||||
a.button(href="/support", target="_blank")
|
||||
RawIcon("heart")
|
||||
RawIcon("heart")
|
||||
|
||||
component ExtensionEnterBasicInfo
|
||||
h1.mountable Welcome!
|
||||
p.welcome-text.mountable Please complete some basic information about your profile.
|
||||
|
||||
.buttons.mountable
|
||||
a.button(href="/welcome", target="_blank")
|
||||
Icon("pencil")
|
||||
span Complete profile
|
Reference in New Issue
Block a user