diff --git a/docs/consolelogo.js b/docs/consolelogo.js new file mode 100644 index 0000000..095b34b --- /dev/null +++ b/docs/consolelogo.js @@ -0,0 +1,7 @@ +function logLogo(size) { + const style = + `font-family: Arial; font-size: ${size}px; line-height: 2em; color: #f33525; text-shadow: 0.5em 0 0 #81bc06, 0 0.5em 0 #05a6f0, 0.5em 0.5em 0 #ffba08;`; + console.log('%cā ', style); + console.log('š Hi there! š\n\nIt seems you like to poke around as much as we do.\n\nhttps://github.com/Microsoft/join-dev-design'); +} +logLogo(100); diff --git a/docs/contributors.js b/docs/contributors.js new file mode 100644 index 0000000..4e6134c --- /dev/null +++ b/docs/contributors.js @@ -0,0 +1,10 @@ +fetch('https://api.github.com/repos/Microsoft/join-dev-design/stats/contributors') + .then(response => { + if (response.status !== 200) { + console.log('Looks like there was a problem. Status Code: ' + response.status); + return; + } + return response.json(); + }) + .then(data => document.getElementById('contributors').innerText = data.length) + .catch(err => console.log('Fetch Error :-S', err)); diff --git a/docs/index.html b/docs/index.html index 98c1741..b20a2e3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -14,6 +14,7 @@ + @@ -84,39 +85,16 @@