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

Commit

Permalink
Improve site layout and colors
Browse files Browse the repository at this point in the history
  • Loading branch information
wmealing committed Oct 29, 2023
1 parent 676475c commit 3e43dc2
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 8 deletions.
34 changes: 31 additions & 3 deletions priv/chapter1.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,38 @@
<head>
<title>Tank Bison with lazer eyes.</title>
<meta charset="UTF-8">
<link href= "https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css"
rel="stylesheet">
<script src="https://unpkg.com/[email protected]"></script>

<style>
html {
max-width: 80ch;
padding: 3em 1em;
margin: auto;
line-height: 1.75;
font-size: 1.25em;
background-color: rgb( 0 70 67);
color: rgb(171 209 198);
font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
line-height: 1.5;
}

button {
background-color: #f9bc60;
color: #001e1d;
border-radius: 9999px;
width: 10rem;
height: 4rem;
font-size: 1rem; /* 16px */
}

a {
color: #FFFFFF;
}

p {
padding-left: 1.25rem; /* 20px */
padding-right: 1.25rem; /* 20px */
}
</style>
</head>

<body class="px-10">
Expand Down
29 changes: 24 additions & 5 deletions priv/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,40 @@
<head>
<title>Tank Bison with lazer eyes.</title>
<meta charset="UTF-8">
<link href= "https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css"
rel="stylesheet">
<script src="https://unpkg.com/[email protected]"></script>

<style>
html {
max-width: 70ch;
max-width: 80ch;
padding: 3em 1em;
margin: auto;
line-height: 1.75;
font-size: 1.25em;
background-color: rgb( 0 70 67);
color: rgb(171 209 198);
font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
line-height: 1.5;
}

button {
background-color: #f9bc60;
color: #001e1d;
border-radius: 9999px;
width: 10rem;
height: 4rem;
font-size: 1rem; /* 16px */
}

a {
color: #FFFFFF;
}

p {
padding-left: 1.25rem; /* 20px */
padding-right: 1.25rem; /* 20px */
}
</style>

</head>

<body class="">
Expand Down Expand Up @@ -98,8 +119,6 @@ <h1 class="text-black-600 text-5xl font-bold">
|| <a href="/chapter1" hx-boost="true">Next Chapter →</a>
</p>



</div>
</body>
</html>
8 changes: 8 additions & 0 deletions src/barista-routes.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
(lfe_io:format "headers: ~p~n" `(,headers))
(barista:response 200 headers body))))

(('GET (list (binary ("chapter2"))) (= `#m(body ,body) req))
(progn
(lfe_io:format "Serving up get on chapter 2~n" '())
(let* ((headers (generate-headers))
(body (list (template:load "chapter2.html"))))
(lfe_io:format "headers: ~p~n" `(,headers))
(barista:response 200 headers body))))

(('POST (list (binary ("chapter1-clicked")) )(= `#m(body ,body) req))
(progn
(let* ((headers (generate-headers))
Expand Down

0 comments on commit 3e43dc2

Please sign in to comment.