Create a smart watch UI. Demo
To embed an iFrame of google maps, go to google maps and search for a location. Then click on the hamburger menu on the left and select share or embed map
. Copy the embed iframe code.
The watch asset is located in https://c0d3.com/challenges/assets/watch.jpg. Watch image is 600x800
pixels, Font size for Time: 5em
with margin-top of 30px
. Day and date are simple h2
tags.
Acceptance Criteria Make sure to pick a specific location so the red marker shows up!
Steps and Points:
Sample Code:
const d = new Date();
["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"][d.getDay()]; // Get Day
["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"][d.getMonth()]; // Get Month