diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f46a383 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = crlf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6ae61ae --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.vercel +.DS_Store diff --git a/favicon.ico b/favicon.ico index b0e36e6..e111cbf 100644 Binary files a/favicon.ico and b/favicon.ico differ diff --git a/font/Sporting_Grotesque-Bold_web.woff b/font/Sporting_Grotesque-Bold_web.woff new file mode 100644 index 0000000..80bd85e Binary files /dev/null and b/font/Sporting_Grotesque-Bold_web.woff differ diff --git a/img/favicon.png b/img/favicon.png index 2abf6ec..9140fe0 100644 Binary files a/img/favicon.png and b/img/favicon.png differ diff --git a/img/og.png b/img/og.png new file mode 100644 index 0000000..f7eb67b Binary files /dev/null and b/img/og.png differ diff --git a/index.html b/index.html index 5a74d5d..09ed651 100644 --- a/index.html +++ b/index.html @@ -1,807 +1,867 @@ - - - - - Questions in English for discussion - + + + + + Get a topic + + + + + + - - - -
-
1 /
-
How are you doing?
+ .container:active .click { + transform: scale(0.8); + transition-duration: 0.1s; + } -
- - - + @media (max-width: 767px) { + .topic { + width: 90vw; + font-size: 8vw; + } + + .helper { + font-size: 11px; + } + } + + + + +
+
+ + Hi + + + ✌️ + +
+ +
+ Click anywhere for the next random topic +
-
- - function changeQuestion() { - question.innerText = list[activeIndex]; - document.querySelector('.js-current').innerText = activeIndex + 1; - } + - + words.forEach(function (word, i) { + var style = 'transition-delay: ' + i / words.length / 4 + 's'; + newHtml += '' + word + ' '; + }); + + topicNode.innerHTML = newHtml; + + setTimeout(function () { + topicNode.classList.remove('_is-animated'); + isAnimated = false; + }, 50); + }, 500); + } + + /** + * Click anywhere to get a new topic + */ + document.querySelector('.js-random').addEventListener('click', function () { + if (!isAnimated) { + getATopic(); + } + }); + + /** + * Get the first random topic automatically when the page is ready + */ + document.addEventListener('DOMContentLoaded', function () { + setTimeout(function () { + getATopic(); + }, 800); + }); + })(); + + /** + * Fix vh on mobile devices to prevent scroll + */ + (function () { + var vh = window.innerHeight * 0.01; + document.documentElement.style.setProperty('--vh', vh + 'px'); + + window.addEventListener('resize', function () { + var newVh = window.innerHeight * 0.01; + document.documentElement.style.setProperty('--vh', newVh + 'px'); + }); + })(); + + diff --git a/taboo/index.html b/taboo/index.html new file mode 100644 index 0000000..7ffbe63 --- /dev/null +++ b/taboo/index.html @@ -0,0 +1,1929 @@ + + + + + + + Taboo + + + + + + + + + + + +
+
+ + Hi + + + ✌️ + +
+ +
+ Click + anywhere for the next random word +
+
+ + + + + +