diff --git a/src/components/hero.tsx b/src/components/hero.tsx
index 1a0539a..2aa646c 100644
--- a/src/components/hero.tsx
+++ b/src/components/hero.tsx
@@ -12,7 +12,9 @@ export default function Hero() {
diff --git a/src/styles/hero.module.css b/src/styles/hero.module.css
index 8f08244..160dcb8 100644
--- a/src/styles/hero.module.css
+++ b/src/styles/hero.module.css
@@ -16,11 +16,29 @@
font-size: 1rem;
}
+.pipinstallcontainer {
+ width: max-content;
+ background-color: rgb(20, 20, 20);
+ border-radius: 0.25em;
+ padding: 0.25em 0.5em;
+
+ margin-top: 0.5em;
+}
+
.pipinstall {
font-size: 1.2rem;
- background-color: rgb(20, 20, 20);
- padding: 15px;
- border-radius: 10px;
+ font-family: 'Source Code Pro', monospace;
+
+ overflow: hidden;
+ white-space: nowrap;
+ opacity: 0;
+
+ color: white;
+
+ padding-right: 0.5ch;
+ border-right: 2px solid;
+
+ animation: typing 1.5s steps(35, end) 1s forwards, blinking 600ms step-end 8 forwards;
}
.showcasecontainer {
@@ -44,6 +62,30 @@
color: transparent;
}
+@keyframes blinking {
+ from {
+ border-color: transparent;
+ }
+ 50% {
+ border-color: white;
+ }
+ to {
+ border-color: transparent;
+ }
+}
+
+@keyframes typing {
+ from {
+ width: 0%;
+ opacity: 1;
+ }
+
+ to {
+ width: 100%;
+ opacity: 1;
+ }
+}
+
@media only screen and (max-width: 1500px) {
.textcontainer {
font-size: 3rem;
@@ -103,6 +145,7 @@
border-radius: 10px;
}
+ .pipinstallcontainer,
.pipinstall {
display: none;
}