✈️👕 Checkpoint
./src/pages/index.hbs:1062301/1895
This commit is contained in:
1 parent
f6b84ebae2
commit
86ea8f7635
1 file changed
+19
-11
+19
-11
@@ -38,20 +38,28 @@
|
|||||||
<div class="content" role="main">
|
<div class="content" role="main">
|
||||||
<!-- this is the start of content for our page -->
|
<!-- this is the start of content for our page -->
|
||||||
<h1 class="title">Hello Node!</h1>
|
<h1 class="title">Hello Node!</h1>
|
||||||
|
<!-- add text indicating that we've changed color OR had an error -->
|
||||||
|
{{#if color}}
|
||||||
|
<p class="color-info">
|
||||||
|
Now available in <b>{{color}}</b>!
|
||||||
|
</p>
|
||||||
|
{{/if}}
|
||||||
|
{{#if colorError}}
|
||||||
|
<p class="color-info">
|
||||||
|
Hmm. Couldn't find <b>"{{colorError}}"</b>.
|
||||||
|
<a href="?randomize=go">Try a random color?</a>
|
||||||
|
</p>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<div class="color-form">
|
<div class="color-form">
|
||||||
<!-- add text indicating that we've changed color OR had an error -->
|
<!-- our default paragraph/message -->
|
||||||
{{#if color}}
|
{{#unless colorError}}
|
||||||
<p class="color-info">
|
{{#unless color}}
|
||||||
Now available in <b>{{color}}</b>!
|
<p>
|
||||||
|
Learn about communication with a server by talking about color.
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/unless}}
|
||||||
{{#if colorError}}
|
{{/unless}}
|
||||||
<p class="color-info">
|
|
||||||
Hmm. Couldn't find <b>"{{colorError}}"</b>.
|
|
||||||
<a href="?randomize=go">Try a random color?</a>
|
|
||||||
</p>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<!-- the "what's your favorite color?" form sends a POST to the server, check server.js to see how it works -->
|
<!-- the "what's your favorite color?" form sends a POST to the server, check server.js to see how it works -->
|
||||||
<form class="color-search" method="post">
|
<form class="color-search" method="post">
|
||||||
|
|||||||
Reference in new issue
Block a user