2024-09-25 19:45:28 -04:00
|
|
|
# Nebula
|
|
|
|
|
|
|
|
A Templ component library for the Sonr DWN (Decentralized Web Node) client.
|
2024-09-25 20:27:00 -04:00
|
|
|
|
|
|
|
## Overview
|
|
|
|
|
|
|
|
### 3rd Party
|
|
|
|
|
|
|
|
- [htmx](https://htmx.org/)
|
|
|
|
- [tailwindcss](https://tailwindcss.com/)
|
|
|
|
- [templ](https://templ.dev/)
|
|
|
|
- [alpinejs](https://alpinejs.dev/)
|
|
|
|
|
|
|
|
### Components
|
|
|
|
|
|
|
|
- Navbar
|
|
|
|
- Footer
|
|
|
|
- Login
|
|
|
|
- Register
|
|
|
|
- Profile
|
|
|
|
- Authorize
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```go
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/onsonr/sonr/nebula"
|
|
|
|
"github.com/onsonr/sonr/nebula/components"
|
|
|
|
"github.com/onsonr/sonr/nebula/pages"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
e := echo.New()
|
|
|
|
e.Use(nebula.UseAssets)
|
|
|
|
e.GET("/", pages.Home)
|
|
|
|
e.GET("/login", pages.Login)
|
|
|
|
e.GET("/register", pages.Register)
|
|
|
|
e.GET("/profile", pages.Profile)
|
|
|
|
e.GET("/authorize", pages.Authorize)
|
|
|
|
e.GET("/components", components.Home)
|
|
|
|
e.Logger.Fatal(e.Start(":1323"))
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
[MIT](LICENSE)
|