mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 18:31:41 +00:00
feat: add stats section to homepage
This commit is contained in:
@@ -4,7 +4,13 @@ package models
|
|||||||
type Footer struct {
|
type Footer struct {
|
||||||
Logo *Image `pkl:"logo"`
|
Logo *Image `pkl:"logo"`
|
||||||
|
|
||||||
SocialLinks []*SocialLink `pkl:"socialLinks"`
|
MediumLink *SocialLink `pkl:"mediumLink"`
|
||||||
|
|
||||||
|
TwitterLink *SocialLink `pkl:"twitterLink"`
|
||||||
|
|
||||||
|
DiscordLink *SocialLink `pkl:"discordLink"`
|
||||||
|
|
||||||
|
GithubLink *SocialLink `pkl:"githubLink"`
|
||||||
|
|
||||||
CompanyLinks []*Link `pkl:"companyLinks"`
|
CompanyLinks []*Link `pkl:"companyLinks"`
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,4 @@ type Hero struct {
|
|||||||
SecondaryButton *Button `pkl:"secondaryButton"`
|
SecondaryButton *Button `pkl:"secondaryButton"`
|
||||||
|
|
||||||
Image *Image `pkl:"image"`
|
Image *Image `pkl:"image"`
|
||||||
|
|
||||||
Stats []*Stat `pkl:"stats"`
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import (
|
|||||||
|
|
||||||
type Models struct {
|
type Models struct {
|
||||||
Hero *Hero `pkl:"hero"`
|
Hero *Hero `pkl:"hero"`
|
||||||
|
|
||||||
|
Stats *Stats `pkl:"stats"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LoadFromPath loads the pkl module at the given path and evaluates it into a Models
|
// LoadFromPath loads the pkl module at the given path and evaluates it into a Models
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
// Code generated from Pkl module `models`. DO NOT EDIT.
|
||||||
|
package models
|
||||||
|
|
||||||
|
type Stats struct {
|
||||||
|
FirstValue string `pkl:"firstValue"`
|
||||||
|
|
||||||
|
FirstLabel string `pkl:"firstLabel"`
|
||||||
|
|
||||||
|
SecondValue string `pkl:"secondValue"`
|
||||||
|
|
||||||
|
SecondLabel string `pkl:"secondLabel"`
|
||||||
|
|
||||||
|
ThirdValue string `pkl:"thirdValue"`
|
||||||
|
|
||||||
|
ThirdLabel string `pkl:"thirdLabel"`
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@ func init() {
|
|||||||
pkl.RegisterMapping("models#Hero", Hero{})
|
pkl.RegisterMapping("models#Hero", Hero{})
|
||||||
pkl.RegisterMapping("models#Button", Button{})
|
pkl.RegisterMapping("models#Button", Button{})
|
||||||
pkl.RegisterMapping("models#Image", Image{})
|
pkl.RegisterMapping("models#Image", Image{})
|
||||||
pkl.RegisterMapping("models#Stat", Stat{})
|
pkl.RegisterMapping("models#Stats", Stats{})
|
||||||
pkl.RegisterMapping("models#Link", Link{})
|
pkl.RegisterMapping("models#Link", Link{})
|
||||||
pkl.RegisterMapping("models#SocialLink", SocialLink{})
|
pkl.RegisterMapping("models#SocialLink", SocialLink{})
|
||||||
pkl.RegisterMapping("models#Footer", Footer{})
|
pkl.RegisterMapping("models#Footer", Footer{})
|
||||||
|
|||||||
Reference in New Issue
Block a user