mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
feat: update home section with new features
This commit is contained in:
@@ -144,14 +144,6 @@ templ Highlights() {
|
||||
height="360"
|
||||
alt="Feature 01"
|
||||
/>
|
||||
<img
|
||||
class="absolute top-0 left-full mix-blend-exclusion -translate-x-[70%] -mr-20 max-md:w-[45%]"
|
||||
src="https://cdn.sonr.id/img/secure-keys.svg"
|
||||
width="224"
|
||||
height="224"
|
||||
alt="Illustration"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Item 2 -->
|
||||
@@ -173,14 +165,6 @@ templ Highlights() {
|
||||
height="360"
|
||||
alt="Feature 02"
|
||||
/>
|
||||
<img
|
||||
class="absolute top-0 left-full mix-blend-exclusion -translate-x-[70%] -mr-20 max-md:w-[45%]"
|
||||
src="https://cdn.sonr.id/img/secure-keys.svg"
|
||||
width="224"
|
||||
height="224"
|
||||
alt="Illustration"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Item 3 -->
|
||||
@@ -202,14 +186,6 @@ templ Highlights() {
|
||||
height="360"
|
||||
alt="Feature 03"
|
||||
/>
|
||||
<img
|
||||
class="absolute top-0 left-full mix-blend-exclusion -translate-x-[70%] -mr-20 max-md:w-[45%]"
|
||||
src="https://cdn.sonr.id/img/secure-keys.svg"
|
||||
width="224"
|
||||
height="224"
|
||||
alt="Illustration"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Item 4 -->
|
||||
@@ -231,14 +207,6 @@ templ Highlights() {
|
||||
height="360"
|
||||
alt="Feature 04"
|
||||
/>
|
||||
<img
|
||||
class="absolute top-0 left-full mix-blend-exclusion -translate-x-[70%] -mr-20 max-md:w-[45%]"
|
||||
src="https://cdn.sonr.id/img/secure-keys.svg"
|
||||
width="224"
|
||||
height="224"
|
||||
alt="Illustration"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
||||
package models
|
||||
|
||||
type Highlight struct {
|
||||
Title string `pkl:"title"`
|
||||
|
||||
Description string `pkl:"description"`
|
||||
|
||||
Image *Image `pkl:"image"`
|
||||
}
|
||||
@@ -13,6 +13,7 @@ func init() {
|
||||
pkl.RegisterMapping("models#Link", Link{})
|
||||
pkl.RegisterMapping("models#SocialLink", SocialLink{})
|
||||
pkl.RegisterMapping("models#Input", Input{})
|
||||
pkl.RegisterMapping("models#Highlight", Highlight{})
|
||||
pkl.RegisterMapping("models#Highlights", Highlights{})
|
||||
pkl.RegisterMapping("models#Features", Features{})
|
||||
pkl.RegisterMapping("models#Bento", Bento{})
|
||||
|
||||
+29
-29
@@ -2,36 +2,36 @@ amends "https://pkl.sh/uiux.pkl";
|
||||
|
||||
home = new Home {
|
||||
hero = new 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 = new Button {
|
||||
text = "Get Started";
|
||||
href = "/register";
|
||||
};
|
||||
secondaryButton = new Button {
|
||||
text = "Learn More";
|
||||
href = "/about";
|
||||
};
|
||||
image = new Image {
|
||||
src = "https://cdn.sonr.id/img/hero-clipped.svg";
|
||||
width = "500";
|
||||
height = "500";
|
||||
};
|
||||
stats {
|
||||
new Stat {
|
||||
value = "476K";
|
||||
label = "Assets packed with power beyond your imagination.";
|
||||
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 = new Button {
|
||||
text = "Get Started";
|
||||
href = "/register";
|
||||
};
|
||||
new Stat {
|
||||
value = "1.44K";
|
||||
label = "Assets packed with power beyond your imagination.";
|
||||
secondaryButton = new Button {
|
||||
text = "Learn More";
|
||||
href = "/about";
|
||||
};
|
||||
image = new Image {
|
||||
src = "https://cdn.sonr.id/img/hero-clipped.svg";
|
||||
width = "500";
|
||||
height = "500";
|
||||
};
|
||||
stats {
|
||||
new Stat {
|
||||
value = "476K";
|
||||
label = "Assets packed with power beyond your imagination.";
|
||||
};
|
||||
new Stat {
|
||||
value = "1.44K";
|
||||
label = "Assets packed with power beyond your imagination.";
|
||||
};
|
||||
new Stat {
|
||||
value = "1.5M+";
|
||||
label = "Assets packed with power beyond your imagination.";
|
||||
}
|
||||
};
|
||||
new Stat {
|
||||
value = "1.5M+";
|
||||
label = "Assets packed with power beyond your imagination.";
|
||||
}
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user