Skip to content

Commit

Permalink
feat: add static hero section content to homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
prnk28 committed Oct 9, 2024
1 parent 8811f56 commit 3637f27
Show file tree
Hide file tree
Showing 36 changed files with 77 additions and 492 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ gen-pkl:
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./pkl/DWN.pkl
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./pkl/ORM.pkl
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./pkl/Txns.pkl
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./pkl/UIUX.pkl



Expand Down
6 changes: 2 additions & 4 deletions pkg/nebula/components/dash/page.templ
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package dash

import (
"github.com/onsonr/sonr/pkg/nebula/components/home/sections"
"github.com/onsonr/sonr/pkg/nebula/global/styles"
"github.com/onsonr/sonr/pkg/nebula/components/home/sections"
"github.com/onsonr/sonr/pkg/nebula/models"
)

templ View(home *models.Home) {
templ View() {
@styles.LayoutNoBody("Sonr.ID", true) {
@sections.Header()
@sections.SectionHero(home.Hero)
@sections.Highlights()
@sections.Features()
@sections.Bento()
Expand Down
11 changes: 1 addition & 10 deletions pkg/nebula/components/dash/page_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 22 additions & 3 deletions pkg/nebula/components/home/page.templ
Original file line number Diff line number Diff line change
@@ -1,15 +1,34 @@
package home

import (
"github.com/onsonr/sonr/pkg/nebula/components/home/sections"
"github.com/onsonr/sonr/pkg/nebula/global/styles"
"github.com/onsonr/sonr/pkg/nebula/components/home/sections"
"github.com/onsonr/sonr/pkg/nebula/models"
)

templ View(home *models.Home) {
var hero = models.Hero{
TitleFirst: "Simplified",
TitleEmphasis: "self-custody",
TitleSecond: "for everyone",
Subtitle: "Sonr is a modern re-imagination of online user identity, empowering users to take ownership of their digital footprint and unlocking a new era of self-sovereignty.",
PrimaryButton: &models.Button{Text: "Get Started", Href: "/register"},
SecondaryButton: &models.Button{Text: "Learn More", Href: "/about"},
Image: &models.Image{
Src: "https://cdn.sonr.id/img/hero-clipped.svg",
Width: "500",
Height: "500",
},
Stats: []*models.Stat{
{Value: "476K", Label: "Assets packed with power beyond your imagination."},
{Value: "1.44K", Label: "Assets packed with power beyond your imagination."},
{Value: "1.5M+", Label: "Assets packed with power beyond your imagination."},
},
}

templ View() {
@styles.LayoutNoBody("Sonr.ID", true) {
@sections.Header()
@sections.SectionHero(home.Hero)
@sections.SectionHero(&hero)
@sections.Highlights()
@sections.Features()
@sections.Bento()
Expand Down
23 changes: 21 additions & 2 deletions pkg/nebula/components/home/page_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/nebula/components/home/sections/hero_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions pkg/nebula/models/Bento.pkl.go

This file was deleted.

8 changes: 0 additions & 8 deletions pkg/nebula/models/Button.pkl.go

This file was deleted.

12 changes: 0 additions & 12 deletions pkg/nebula/models/CallToAction.pkl.go

This file was deleted.

12 changes: 0 additions & 12 deletions pkg/nebula/models/Feature.pkl.go

This file was deleted.

10 changes: 0 additions & 10 deletions pkg/nebula/models/Features.pkl.go

This file was deleted.

18 changes: 0 additions & 18 deletions pkg/nebula/models/Footer.pkl.go

This file was deleted.

10 changes: 0 additions & 10 deletions pkg/nebula/models/Form.pkl.go

This file was deleted.

20 changes: 0 additions & 20 deletions pkg/nebula/models/Hero.pkl.go

This file was deleted.

10 changes: 0 additions & 10 deletions pkg/nebula/models/Highlight.pkl.go

This file was deleted.

10 changes: 0 additions & 10 deletions pkg/nebula/models/Highlights.pkl.go

This file was deleted.

6 changes: 0 additions & 6 deletions pkg/nebula/models/Home.pkl.go

This file was deleted.

10 changes: 0 additions & 10 deletions pkg/nebula/models/Image.pkl.go

This file was deleted.

20 changes: 0 additions & 20 deletions pkg/nebula/models/Input.pkl.go

This file was deleted.

8 changes: 0 additions & 8 deletions pkg/nebula/models/Link.pkl.go

This file was deleted.

10 changes: 0 additions & 10 deletions pkg/nebula/models/Lowlights.pkl.go

This file was deleted.

10 changes: 0 additions & 10 deletions pkg/nebula/models/ModalForm.pkl.go

This file was deleted.

45 changes: 0 additions & 45 deletions pkg/nebula/models/Models.pkl.go

This file was deleted.

5 changes: 0 additions & 5 deletions pkg/nebula/models/PublicKeyCreationOptions.pkl.go

This file was deleted.

Loading

0 comments on commit 3637f27

Please sign in to comment.