April 2018
Beginner
226 pages
4h 47m
English
In this phase, we are going to design a web interface through which our user can add or view the pins on the board. Remember how in Chapter 7, Alternate Implementations of JSON, we learned about template embedding? We are going to use a similar technique for our pinboard. So, let's start by creating a template file called index.html.js and inserting the following HTML elements:
//index.html.jsmodule.exports = `<!DOCTYPE html><html> <head> <title>Pin board</title> </head> <style> body{ background-color: #CCB; } .card { /* Add shadows to create the "card" effect */ box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); transition: 0.3s; width: 30%; background-color:white; float: left; margin: 5px; } .card:hover { box-shadow: 0 8px 16px ...Read now
Unlock full access