mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 10:21:40 +00:00
24 lines
664 B
Templ
24 lines
664 B
Templ
package views
|
|||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/labstack/echo/v4"
|
||
|
|
"github.com/onsonr/sonr/internal/gui/elements"
|
||
|
|
)
|
||
|
|
|
||
|
|
func HomeView(c echo.Context) error {
|
||
|
|
return echoComponentResponse(c, renderHomeView())
|
||
|
|
}
|
||
|
|
|
||
|
|
templ renderHomeView() {
|
||
|
|
@elements.Layout("Sonr.ID") {
|
||
|
|
@elements.Card(elements.SizeMedium) {
|
||
|
|
@elements.Text("Sonr.ID", elements.TextSizeLarge, elements.TextStyleHeading)
|
||
|
|
@elements.Text("Neo-tree is a file manager for NeoFS.", elements.TextSizeMedium, elements.TextStyleParagraph)
|
||
|
|
@elements.Spacer()
|
||
|
|
@elements.Button(elements.ButtonVariantPrimary) {
|
||
|
|
@elements.Text("Get Started", elements.TextSizeMedium, elements.TextStyleParagraph)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|