diff --git a/index.css b/index.css index 40401d2..d76c4d3 100644 --- a/index.css +++ b/index.css @@ -101,7 +101,7 @@ a { } .topics { - font-size: 2.5em; + font-size: 3em; } .software a:hover { diff --git a/index.html b/index.html index 2b43431..b8e6e37 100644 --- a/index.html +++ b/index.html @@ -46,28 +46,6 @@ Email - + diff --git a/scripts/deploy.sh b/scripts/deploy.sh index a359639..a918e32 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -5,5 +5,4 @@ aws s3 sync . s3://barrettruth.com --delete \ --exclude ".github/*" \ --exclude "readme.md" \ --exclude ".DS_Store" \ - --exclude ".gitignore" \ - --exclude "scripts/*" + --exclude ".gitignore" diff --git a/scripts/index.js b/scripts/index.js new file mode 100644 index 0000000..2d76205 --- /dev/null +++ b/scripts/index.js @@ -0,0 +1,27 @@ +function typechars(e, url = "wip.html") { + e.preventDefault(); + + const text = ` ${e.target.textContent.toLowerCase()}/`; + const terminalPrompt = document.querySelector(".prompt"); + + let i = 0; + + function typechar() { + if (i < text.length) { + terminalPrompt.innerHTML += text.charAt(i); + i++; + setTimeout(typechar, 1000 / text.length); + } else { + setTimeout(() => { + window.location.href = url; + }, 500); + } + } + + typechar(); +} + +window.addEventListener("beforeunload", () => { + const terminalPrompt = document.querySelector(".prompt"); + terminalPrompt.innerHTML = "barrett@ruth:~$ "; +});