Create pages
You can create pages by using the templates that come with the Prototype Kit.
In your browser go to the Manage your prototype page: http://localhost:3000/manage-prototype (opens in new tab).
There is also a link to this page in the footer of your prototype.
In the navigation menu, go to the Templates section.
Create a Start page
In the list of templates, find the Start page and select Create
Enter
/start
in Path for the new pageSelect Create page
The kit creates a page from the template in the app/views
folder in your code editor.
Change the service name
You change the service name in the config file. This will change it on every page in your prototype.
In your code editor, go to the
app
folder and open theconfig.json
file.Change
serviceName
from Service name goes here to Apply for a juggling licence.Press Cmd+S on Mac or Ctrl+S on Windows to save your change.
Refresh the page in your browser.
You’ll need to save every time you make a change to a file.
Usually your changes will automatically show in the browser without refreshing. We have made a change that applies to all pages in the prototype (called a config change), so you need to refresh the page.
You should see your service name change on the Start page.
Question pages
In your browser, go to the Templates section of Manage your prototype
http://localhost:3000/manage-prototype/templates (opens in a new tab)Create a page from the Question page template.
Enter the path
/juggling-balls
Create another page from the Question page template.
Enter the path
/juggling-trick
Go to the following URLs to check your pages:
Go to your code editor.
To create headings on a page we use heading tags, like
<h1>
for the page title,<h2>
for a subheading and so on.In the
juggling-balls.html
file, change the text inside theh1
tag fromHeading or question goes here
toHow many balls can you juggle?
In the
juggling-trick.html
file, change the text inside theh1
tag toWhat is your most impressive juggling trick?
Check answers page
In your browser, go to the Templates section of Manage your prototype http://localhost:3000/manage-prototype/templates (opens in a new tab).
Create a page from the Check answers template.
Enter the path
/check-answers
Confirmation page
In your browser, go to the Templates section of Manage your prototype http://localhost:3000/manage-prototype/templates (opens in a new tab).
Create a page from the Confirmation template.
Enter the path
/confirmation