diff --git a/src/layouts/index.html b/src/layouts/index.html index 4fe3dc9..4fe0cf4 100644 --- a/src/layouts/index.html +++ b/src/layouts/index.html @@ -102,6 +102,9 @@ .email{ height: 50px !important; } + .install-label{ + text-align: center; + } } @media only screen and (min-width: 768px) { @@ -124,6 +127,12 @@ } } + .pointer{ + display: inline-block; + position: relative; + animation: float 1s ease-in-out infinite; + } +
@@ -144,6 +153,9 @@

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.

+
+

👇 Install tea by running our one-liner

+
{{- partial "hero-terminal-animation.html" -}}
@@ -531,7 +543,7 @@ Created next project successfully -EOF + EOF

` }, { input: "$ cd my-project
", output: `my-project

` }, { input: "$ node --version
", output: `v18.13.0` }, @@ -559,7 +571,14 @@ EOF setTimeout(typeCommand3, 100); } - document.querySelector("#start-button").addEventListener("click", typeCommand3); + const terminalOutput = document.querySelector("#terminal-output-3"); + const observer = new IntersectionObserver((entries) => { + if (entries[0].isIntersecting) { + typeCommand3(); + observer.unobserve(terminalOutput); + } + }); + observer.observe(terminalOutput);