docs(marketing): improve section data model and section rendering

This commit is contained in:
Prad Nukala
2024-10-24 16:11:30 -04:00
parent c8657022a2
commit f14f6ff536
9 changed files with 97 additions and 1007 deletions
@@ -2,6 +2,10 @@ package sections
import models "github.com/onsonr/sonr/internal/orm/marketing"
// ╭───────────────────────────────────────────────────────────╮
// │ Data Model │
// ╰───────────────────────────────────────────────────────────╯
var cta = &models.CallToAction{
Logo: &models.Image{
Src: "https://cdn.sonr.id/logo-zinc.svg",
@@ -20,6 +24,9 @@ var cta = &models.CallToAction{
},
}
// ╭───────────────────────────────────────────────────────────╮
// │ Render Section View │
// ╰───────────────────────────────────────────────────────────╯
templ CallToAction() {
<section>
<div class="py-12 md:py-20">