Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: turtle surfin' #6492

Closed
Closed
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: 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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also here you need to use tailwindcss. If you are not 100% fluent with it. the website team can make the change

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AugustinMauroy wanted to prototype quickly so I reverted back to my old ways there - if you can convert to tailwind that would be much appreciated.

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);
}
}
Loading