2024-10-04 11:39:24 +00:00
|
|
|
package templates
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/chasefleming/elem-go"
|
|
|
|
"github.com/chasefleming/elem-go/attrs"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Windows(url string) *elem.Element {
|
|
|
|
return HtmlStructure(
|
|
|
|
elem.Title(nil,
|
|
|
|
elem.Text("headscale - Windows"),
|
|
|
|
),
|
|
|
|
elem.Body(attrs.Props{
|
2024-11-22 15:54:58 +00:00
|
|
|
attrs.Style: bodyStyle.ToInline(),
|
2024-10-04 11:39:24 +00:00
|
|
|
},
|
|
|
|
headerOne("headscale: Windows configuration"),
|
|
|
|
elem.P(nil,
|
|
|
|
elem.Text("Download "),
|
|
|
|
elem.A(attrs.Props{
|
|
|
|
attrs.Href: "https://tailscale.com/download/windows",
|
|
|
|
attrs.Rel: "noreferrer noopener",
|
2024-11-22 15:54:58 +00:00
|
|
|
attrs.Target: "_blank",
|
|
|
|
},
|
2024-10-04 11:39:24 +00:00
|
|
|
elem.Text("Tailscale for Windows ")),
|
|
|
|
elem.Text("and install it."),
|
|
|
|
),
|
|
|
|
elem.P(nil,
|
|
|
|
elem.Text("Open a Command Prompt or Powershell and use Tailscale's login command to connect with headscale: "),
|
|
|
|
),
|
|
|
|
elem.Pre(nil,
|
|
|
|
elem.Code(nil,
|
|
|
|
elem.Text(fmt.Sprintf(`tailscale login --login-server %s`, url)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
}
|