Hypercode/alex/hypercodePublic

Code

  1. hypercode
  2. views
  3. components
  4. ui
  5. github_auth_button.go
github_auth_button.go17 lines
package ui

import (
	"github.com/hypercodehq/libhtml"
	"github.com/hypercodehq/libhtml/attr"
)

// GitHubAuthButton renders a "Continue with GitHub" button
func GitHubAuthButton() html.Node {
	return html.A(
		attr.Href("/auth/github"),
		attr.Class("btn-outline w-full flex items-center justify-center gap-2"),
		SVGIcon(IconGitHub, "h-5 w-5"),
		html.Text("Continue with GitHub"),
	)
}