package landing import ( "fmt" models "github.com/onsonr/sonr/pkg/webapp/models" ) // ╭───────────────────────────────────────────────────────────╮ // │ Data Model │ // ╰───────────────────────────────────────────────────────────╯ // highlights is the (2nd) home page highlights section var highlights = &models.Highlights{ Heading: "The Internet Rebuilt for You", Subtitle: "Sonr is a comprehensive system for Identity Management which proteects users across their digital personas while providing Developers a cost-effective solution for decentralized authentication.", Features: []*models.Feature{ { Title: "∞ Factor Auth", Desc: "Sonr is designed to work across all platforms and devices, building a encrypted and anonymous identity layer for each user on the internet.", Icon: nil, }, { Title: "Control Your Data", Desc: "Sonr leverages advanced cryptography to permit facilitating Wallet Operations directly on-chain, without the need for a centralized server.", Icon: nil, }, { Title: "Crypto Enabled", Desc: "Sonr follows the latest specifications from W3C, DIF, and ICF to essentially have an Interchain-Connected, Smart Account System - seamlessly authenticated with PassKeys.", Icon: nil, }, { Title: "Works Everywhere", Desc: "Sonr anonymously associates your online identities with a Quantum-Resistant Vault which only you can access.", Icon: nil, }, }, } // ╭───────────────────────────────────────────────────────────╮ // │ Render Section View │ // ╰───────────────────────────────────────────────────────────╯ templ Highlights() {

{ highlights.Heading }

{ highlights.Subtitle }

@highlightTab(1, highlights.Features[0]) @highlightTab(2, highlights.Features[1]) @highlightTab(3, highlights.Features[2]) @highlightTab(4, highlights.Features[3])
} templ highlightTab(index int, highlight *models.Feature) { } templ highlightCard(index int, highlight *models.Feature) {
{
} func getSelectedClass(index int) string { return fmt.Sprintf("tab === '%d' ? 'bg-zinc-100 opacity-60 hover:opacity-100 transition' : '[background:linear-gradient(theme(colors.white),theme(colors.white))_padding-box,linear-gradient(120deg,theme(colors.zinc.300),theme(colors.zinc.100),theme(colors.zinc.300))_border-box] shadow-sm rotate-1'", index+1) } func getShowBorder(index int) string { return fmt.Sprintf("tab === '%d' ? 'hidden' : ''", index+1) } func getClickPrevent(index int) string { return fmt.Sprintf("tab = '%d'", index+1) } func getXShow(index int) string { return fmt.Sprintf("tab === '%d'", index+1) }