mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 10:21:40 +00:00
feature/refactor types (#1101)
- **docs: remove discord badge from README** - **fix: ensure go version is up-to-date** - **<no value>** - **refactor: update import paths for blocks to components** - **feat: add Hero component template** - **fix: update footer logo to svg** - **feat: add Query/Sign and Query/Verify RPC methods** - **refactor: rename Keyshares to KsVal in did/v1/state.proto**
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# Nebula
|
||||
|
||||
A Templ component library for the Sonr DWN (Decentralized Web Node) client.
|
||||
|
||||
## 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)
|
||||
Reference in New Issue
Block a user