Skip to content

Commit

Permalink
docs cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 23, 2024
1 parent d7cdc83 commit 6064818
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,15 @@ func homePage(ctx *htmlcore.Context) bool {
})

makeBlock("EFFORTLESS ELEGANCE", "Cogent Core is built on Go, a high-level language designed for building elegant, readable, and scalable code with full type safety and a robust design that never gets in your way. Cogent Core makes it easy to get started with cross-platform app development in just two commands and seven lines of simple code.", func(w *texteditor.Editor) {
w.Buffer.SetLanguage(fileinfo.Go).SetString(`func main() {
b := core.NewBody()
core.NewButton(b).SetText("Hello, World!")
b.RunMainWindow()
}`)
w.Buffer.SetLanguage(fileinfo.Go).SetString(`b := core.NewBody()
core.NewButton(b).SetText("Hello, World!")
b.RunMainWindow()`)
w.SetReadOnly(true)
w.Buffer.Options.LineNumbers = false
w.Styler(func(s *styles.Style) {
s.Min.X.Em(10)
s.Max.X.Em(40)
if w.SizeClass() != core.SizeCompact {
s.Min.X.Em(20)
}
})
})

Expand Down Expand Up @@ -333,12 +334,12 @@ func homePage(ctx *htmlcore.Context) bool {
w.SetType(core.TextDisplaySmall).SetText("<b>Why Cogent Core instead of something else?</b>")
})

makeBlock("THE PROBLEM", "After using other frameworks built on HTML and Qt for years to make various apps ranging from simple tools to complex scientific models, we realized that we were spending more time dealing with excessive boilerplate, browser inconsistencies, and dependency management issues than actual app development.", func(w *core.Icon) {
makeBlock("THE PROBLEM", "After using other frameworks built on HTML and Qt for years to make apps ranging from simple tools to complex scientific models, we realized that we were spending more time dealing with excessive boilerplate, browser inconsistencies, and dependency management issues than actual app development.", func(w *core.Icon) {
initIcon(w).SetIcon(icons.Problem)
})

makeBlock("THE SOLUTION", "We decided to make a framework that would allow us to focus on app content and logic by providing a consistent and elegant API that automatically handles cross-platform support, user customization, and app packaging and deployment.", func(w *core.Icon) {
initIcon(w).SetIcon(icons.Build)
initIcon(w).SetIcon(icons.Lightbulb)
})

makeBlock("THE RESULT", "Instead of constantly jumping through hoops to create a consistent, easy-to-use, cross-platform app, you can now take advantage of a powerful featureset on all platforms and vastly simplify your development experience.", func(w *core.Icon) {
Expand Down

0 comments on commit 6064818

Please sign in to comment.