Skip to content

Commit 8b30387

Browse files
committed
Tweak site information sections
1 parent 9b07f3a commit 8b30387

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

site/index.html

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,30 @@ <h1 class="title">
2828
</section>
2929
<section class="section">
3030
<div class="container is-max-tablet">
31-
<p class="is-size-5">
32-
Define the structure of your application as pure data in
33-
<strong>duct.edn</strong>.
31+
<p class="is-size-4">
32+
Duct defines the structure of your application as <strong>pure
33+
data</strong>.
34+
</p>
35+
<p>
36+
A data structure is far more powerful than a prescribed
37+
file tree from an application template.
3438
</p>
3539
<pre class="highlight"><code class="language-clojure">{:system
3640
{:duct.module/logging {}
3741
:duct.module/sql {:migrations #duct/include "db/migrations.edn"}
3842
:duct.module/web {:features #{:api}
3943
:routes [["/items" #ig/ref :demo.routes/items]]}
4044
:demo.routes/items {:db #ig/ref :duct.database/sql}}}</code></pre>
41-
<p class="is-size-6">
42-
<strong>Modules</strong> remove repetition while still allowing you
43-
to override any data they add.
45+
</div>
46+
</section>
47+
<section class="section">
48+
<div class="container is-max-tablet">
49+
<p class="is-size-4">
50+
Instead of templates and generators, Duct has <strong>modules</strong>.
4451
</p>
45-
<p class="is-size-6">
46-
Use <strong>functions</strong> and <strong>multimethods</strong> to
47-
define the behavior of your components.
52+
<p>
53+
Modules expand out into extra configuration that you can inspect and
54+
optionally override.
4855
</p>
4956
<pre class="highlight"><code class="language-clojure">(ns demo.routes
5057
(:require [next.jdbc :as jdbc]))

site/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@
3030

3131
section.section {
3232
padding-top: 2rem;
33+
padding-bottom: 0.5rem;
3334
}
3435

3536
p {
3637
font-family: "Open Sans", sans-serif;
37-
margin-bottom: 1em;
38+
padding: 0.1rem 0;
3839
}
3940

4041
pre.highlight {

0 commit comments

Comments
 (0)