Skip to content

Commit

Permalink
feat: turtle surfin
Browse files Browse the repository at this point in the history
  • Loading branch information
darcyclarke committed Mar 20, 2024
1 parent 2eced3c commit 249760e
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/en/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ layout: home
</div>
</section>

<div className="turtle">
<img src="/static/images/node-mascot.svg" alt="turtle roocket logo" />
</div>

<section>
<div>
```js displayName="Create an HTTP Server"
Expand Down
Binary file added public/static/images/smoke.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
83 changes: 83 additions & 0 deletions styles/effects.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,86 @@ div.glowingBackdrop {
dark:bg-green-700;
}
}

.turtle {
animation: surf 1s infinite ease-in-out;
margin: 0 0 -400px -300px;
position: absolute;
transform: translate(0, 0);
z-index: 1;
}

.turtle img {
height: auto;
width: 300px;
}

.turtle::after {
background: url('/static/images/smoke.gif');
content: '';
display: block;
height: 150px;
left: 0;
opacity: 0.15;
position: absolute;
top: 0;
touch-action: none;
transform: rotate(-90deg) translate(-140%, -60%);
user-select: none;
user-select: none;
user-select: none;
width: 150px;
z-index: -1;
}

@media (max-width: 1500px) {
.turtle {
margin: 0 0 -300px -100px;
}

.turtle img {
width: 200px;
}

.turtle::after {
transform: rotate(-90deg) translate(-80%, -60%);
}
}

@media (max-width: 750px) {
.turtle {
margin: 0;
right: 0;
top: 40px;
}

.turtle img {
width: 150px;
}

.turtle::after {
transform: rotate(-90deg) translate(-50%, -60%);
}
}

@keyframes surf {
0% {
transform: translate(0, 0);
}

25% {
transform: translate(0, 6px);
}

50% {
transform: translate(0, -6px);
}

75% {
transform: translate(0, 3px);
}

100% {
transform: translate(0, 0);
}
}

0 comments on commit 249760e

Please sign in to comment.