From b8a7fde6634d32602b13bc78576fd07cca2718f9 Mon Sep 17 00:00:00 2001 From: Thomas Smith <49042513+tsmitty11@users.noreply.github.com> Date: Fri, 10 Feb 2023 16:54:39 -0500 Subject: [PATCH] all animations start when in view --- src/layouts/index.html | 259 ++++++++--------------- src/layouts/partials/footer-content.html | 6 +- 2 files changed, 93 insertions(+), 172 deletions(-) diff --git a/src/layouts/index.html b/src/layouts/index.html index 98fc30b..985dba3 100644 --- a/src/layouts/index.html +++ b/src/layouts/index.html @@ -242,7 +242,7 @@
-
+
@@ -319,12 +319,17 @@
-
+
+
+
+

features

+
+
-

tea magic

-

Easily access the entire open source ecosystem with tea. Simply prefix your commands with "tea" and if the tool isn't installed, tea will install it for you. Add magic to your shell scripts and use developer environments to enhance your workflow.

+

tea magic

+

Easily access the entire open source ecosystem with tea. Simply prefix your commands with "tea" and if the tool isn't installed, tea will install it for you. Add magic to your shell scripts and use developer environments to enhance your workflow.

@@ -345,10 +350,10 @@
-A local git repository was created for you and dependencies were installed automatically. - -Created next project successfully - -# When dependencies change, run this to update node_modules.bun: - - bun bun --use next - -# To get started, run: - - cd app - bun dev` }, - ]; - - let commandIndex2 = 0; - let command2 = commands2[commandIndex2]; - let commandOutput2 = ""; - - function typeCommand2() { - if (commandIndex2 === commands2.length) { - return; - } - if (command2.input.length === 0) { - commandOutput2 += '\n' + command2.output + '\n'; - document.querySelector("#terminal-output-2").innerHTML = commandOutput2; - commandIndex2++; - command2 = commands2[commandIndex2]; - setTimeout(typeCommand2, 1000); - return; - } - commandOutput2 += command2.input[0]; - command2.input = command2.input.slice(1); - document.querySelector("#terminal-output-2").innerHTML = commandOutput2; - setTimeout(typeCommand2, 100); - } - - document.querySelector("#start-btn").addEventListener("click", typeCommand2); -
-

Developer Environments

-

Simplify your development environment setup with tea by automatically fetching the specific versions of tools your project needs. With a range of specifications, tea provides a seamless solution to manage project dependencies. Debug changes, supplement your environment, and see the full environment with ease.

+

Developer Environments

+

Simplify your development environment setup with tea by automatically fetching the specific versions of tools your project needs. With a range of specifications, tea provides a seamless solution to manage project dependencies. Debug changes, supplement your environment, and see the full environment with ease.

@@ -576,8 +494,8 @@ Created next project successfully
-

tea scripts

-

This is next-generation, cross-platform package management. With tea, you no longer have to install packages—just type the commands you need and tea does the rest. Enjoy seamless and flexible version control, with the full https://semver.org spec supported.

+

tea scripts

+

This is next-generation, cross-platform package management. With tea, you no longer have to install packages—just type the commands you need and tea does the rest. Enjoy seamless and flexible version control, with the full https://semver.org spec supported.

@@ -599,49 +517,52 @@ Created next project successfully
+ const terminalOutput4 = document.querySelector("#terminal-output-4"); + const observer4 = new IntersectionObserver((entries) => { + if (entries[0].isIntersecting) { + typeCommand4(); + observer4.disconnect(); + } + }); + observer4.observe(terminalOutput4); + -
-
diff --git a/src/layouts/partials/footer-content.html b/src/layouts/partials/footer-content.html index 0084013..c33b208 100644 --- a/src/layouts/partials/footer-content.html +++ b/src/layouts/partials/footer-content.html @@ -3,7 +3,7 @@
-
+
tea Logo (teal)

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-
+
Quick Links
blog
press
@@ -30,7 +30,7 @@ privacy policy
terms of use
-
+