|
1 | 1 | package files |
2 | 2 |
|
3 | | -import utils.Imports.Bundle.* |
4 | | -import Tags.* |
5 | | -import Grid.* |
6 | | - |
7 | 3 | object Index extends templates.HepekDocsStaticPage { |
8 | 4 |
|
9 | 5 | override def pageSettings = |
10 | 6 | super.pageSettings |
11 | 7 | .withTitle("Welcome!") |
12 | 8 | .withDescription("Hepek docs") |
13 | 9 |
|
14 | | - override def pageContent = |
15 | | - div(cls := "container")( |
16 | | - Navbar.nav( |
17 | | - brandUrl = staticSiteSettings.indexPage.map(_.ref).getOrElse("#"), |
18 | | - brandName = siteSettings.name.map(" " + _), |
19 | | - brandIconUrl = siteSettings.faviconInverted, |
20 | | - // TODO add to other pages too |
21 | | - left = form(action := SearchResults.ref, method := "GET", cls := "form-inline")( |
22 | | - input( |
23 | | - name := "q", |
24 | | - tpe := "search", |
25 | | - cls := "form-control", |
26 | | - placeholder := "Search" |
27 | | - ) |
28 | | - ), |
29 | | - right = for |
30 | | - page <- staticSiteSettings.mainPages |
31 | | - labela = page.pageCategory.getOrElse(page.pageSettings.label) |
32 | | - yield Navbar.link(page.ref, labela) |
33 | | - ), |
34 | | - row( |
35 | | - s""" |
36 | | - Hepek is a collection of useful projects for making websites in Scala: |
37 | | - - [Components](${hepek.components.Index.ref}) (JVM and ScalaJS) |
38 | | - - [Static Site Generator](${hepek.Index.ref}) |
39 | | - - [Framework Integrations](${integrations.Index.ref}) |
40 | | - |
41 | | - ## Hepek Components |
42 | | - Components is a standalone library with minimal dependencies. |
43 | | - They provide utilites for grid, form inputs, panels, navbars, markdown, code highlighting, maths rendering and lots more. |
44 | | - Components support frameworks like Bootstrap 5, Bulma, HTMX etc. |
45 | | - You can switch to a different framework with minimal effort and override parts you don't like. |
46 | | - |
47 | | - ## Hepek SSG |
48 | | - SSG has support for automatic relative links, PDF rendering and lots more. |
49 | | - |
50 | | - ## Hepek Frameworks Integrations |
51 | | - Integrations provide Hepek Components support for various frameworks: |
52 | | - [Sharaf](https://github.com/sake92/sharaf), |
53 | | - [Play](https://www.playframework.com/), |
54 | | - [Http4s](https://http4s.org), |
55 | | - [ZIO Http](https://zio.dev/zio-http/). |
56 | | - |
57 | | - For any questions/bugs/features please make an issue in the [GitHub](https://github.com/sake92/hepek/issues) repo, |
58 | | - and you can also join our [Discord chat](https://discord.gg/R2FtxDKyRE) |
59 | | - """.md |
60 | | - ), |
61 | | - super.pageContent |
62 | | - ) |
| 10 | + override def mainContent = |
| 11 | + s""" |
| 12 | + Hepek is a collection of useful projects for making websites in Scala: |
| 13 | + - [Components](${hepek.components.Index.ref}) (JVM and ScalaJS) |
| 14 | + - [Static Site Generator](${hepek.Index.ref}) |
| 15 | + - [Framework Integrations](${integrations.Index.ref}) |
| 16 | + |
| 17 | + ## Hepek Components |
| 18 | + Components is a standalone library with minimal dependencies. |
| 19 | + They provide utilites for grid, form inputs, panels, navbars, markdown, code highlighting, maths rendering and lots more. |
| 20 | + Components support frameworks like Bootstrap 5, Bulma, HTMX etc. |
| 21 | + You can switch to a different framework with minimal effort and override parts you don't like. |
| 22 | + |
| 23 | + ## Hepek SSG |
| 24 | + SSG has support for automatic relative links, PDF rendering and lots more. |
| 25 | + |
| 26 | + ## Hepek Frameworks Integrations |
| 27 | + Integrations provide Hepek Components support for various frameworks: |
| 28 | + [Sharaf](https://github.com/sake92/sharaf), |
| 29 | + [Play](https://www.playframework.com/), |
| 30 | + [Http4s](https://http4s.org), |
| 31 | + [ZIO Http](https://zio.dev/zio-http/). |
| 32 | + |
| 33 | + For any questions/bugs/features please make an issue in the [GitHub](https://github.com/sake92/hepek/issues) repo, |
| 34 | + and you can also join our [Discord chat](https://discord.gg/R2FtxDKyRE) |
| 35 | + """.md |
63 | 36 |
|
64 | 37 | } |
0 commit comments