Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
Improve html layout and styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmealing committed Oct 29, 2023
1 parent a06bc19 commit 29bb510
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
4 changes: 2 additions & 2 deletions priv/chapter1.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ <h1 class="text-black-600 text-5xl font-bold">
the <a href="http://docs.lfe.io/current/user-guide/diving/5.html"> LFE user guide section 2.5.3.3</a>.
</p>

<p class="py-5 text-9xl">
<p class="">
<a href="/chapter1" hx-boost="true">← Previous Chapter</a> || <a href="/chapter2" hx-boost="true">Next Chapter →</a>
</p>
</p>
</div>
</body>
</html>
3 changes: 3 additions & 0 deletions priv/chapter2-error.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
<button class="btn">Submit</button>
<button class="btn" hx-get="/chapter2/contact/1">Cancel</button>
</form>



16 changes: 14 additions & 2 deletions priv/chapter2.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!DOCTYPE html>
<html>
<script src="https://unpkg.com/htmx.org@1.9.6"></script>
<head>
<meta charset="UTF-8">
<script src="https://unpkg.com/htmx.org@1.9.6"></script>
<style>
html {
max-width: 80ch;
Expand Down Expand Up @@ -59,7 +61,7 @@
}

</style>

</head>
<body>
<h1>
A "Click to edit" Example.
Expand Down Expand Up @@ -226,6 +228,16 @@ <h1>
(barista-response:ok (erlang:binary_to_list (template:load "chapter2-error.html")))))
</pre>

<p>
Because 1 is always equal to 1, this will always fail, the template will always redirect to
showing the error condition.
</p>

<p>
<a href="/chapter1" hx-boost="true">← Previous Chapter</a> || <a href="/live-demo" hx-boost="true">Next Chapter →</a>
</p>



</body>
</html>
3 changes: 2 additions & 1 deletion priv/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ <h1 class="text-black-600 text-5xl font-bold">
<li> Novice understand of <a href="https://cnbbooks.github.io/lfe-manual/current/part1/intro/index.html"> Lisp Flavored Erlang </a>)</li>
<li> A sense of humour </li>
</ul>

</p>

<b>What is HTMX ?</b>
Expand All @@ -104,7 +105,7 @@ <h1 class="text-black-600 text-5xl font-bold">

</p>

<p class="py-5">
<p>
Individuals can become defensive when a new technology obsoletes or challenges a thought where they have invested time money or energy. There is a natural resistance to change, people are comfortable with what they know. Fear of the unknown can make individuals defensive, overwhelmed or uncertain. Investing significant time, money, or effort into technology can make them defensive and reluctance to embrace the advantages of the new, despite its potential benefits. <a href="https://matt.sh/htmx-is-a-erlang"> Matt.sh</a> has some examples on his site that may be enlightening.
</p>

Expand Down

0 comments on commit 29bb510

Please sign in to comment.