Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default function Hero() {
</p>
<p className={styles.frameworkgradient}>game framework</p>
<p>that everyone uses</p>
<code className={styles.pipinstall}>pip install pygame-ce</code>
<div className={styles.pipinstallcontainer}>
<p className={styles.pipinstall}>$ pip install pygame-ce</p>
</div>
</div>
<div className={styles.showcasecontainer}>
<div className={styles.showcaseimage} />
Expand Down
49 changes: 46 additions & 3 deletions src/styles/hero.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand Down Expand Up @@ -103,6 +145,7 @@
border-radius: 10px;
}

.pipinstallcontainer,
.pipinstall {
display: none;
}
Expand Down