-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
valdezdata
committed
Mar 3, 2025
1 parent
a5c7399
commit bc89a11
Showing
19 changed files
with
83 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
document.addEventListener("DOMContentLoaded", function () { | ||
const backToTopButton = document.getElementById("back-to-top"); | ||
|
||
// Don't show the button on very short pages | ||
if (document.body.scrollHeight <= window.innerHeight + 300) { | ||
backToTopButton.style.display = "none"; | ||
return; | ||
} | ||
|
||
// Show button only when user scrolls down 300px | ||
window.addEventListener("scroll", function () { | ||
if (window.pageYOffset > 300) { | ||
backToTopButton.classList.add("show"); | ||
} else { | ||
backToTopButton.classList.remove("show"); | ||
} | ||
}); | ||
|
||
// Initial check - don't show on page load | ||
backToTopButton.classList.remove("show"); | ||
|
||
// Scroll to top when button is clicked | ||
backToTopButton.addEventListener("click", function () { | ||
// Add a terminal-like command output | ||
const commandOutput = document.createElement("div"); | ||
commandOutput.classList.add("command-output"); | ||
commandOutput.innerHTML = '<span class="prompt">$</span> cd ~'; | ||
|
||
// Only append to content if it exists | ||
const contentDiv = document.querySelector(".content"); | ||
if (contentDiv) { | ||
contentDiv.appendChild(commandOutput); | ||
} | ||
|
||
// Scroll to top with animation | ||
window.scrollTo({ | ||
top: 0, | ||
behavior: "smooth", | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,13 +51,14 @@ | |
<li><a href="/whoami/">> whoami</a></li> | ||
<li><a href="/usos/">> usos</a></li> | ||
<li><a href="/tags/">> tags</a></li> | ||
<li><a href="https://ko-fi.com/valdezdata/shop">> shop</a></li> | ||
<li><a href="/feed.xml">> rss</a></li> | ||
</ul> | ||
</nav> | ||
|
||
<div class="content"> | ||
<h2>> whoami</h2> | ||
<pre><code>- User: valdezdata | ||
<pre><code>- User: Omar Valdez | ||
- Role: Data Architect | ||
- Location: /home/valdezdata | ||
</code></pre> | ||
|
@@ -96,7 +97,6 @@ <h2>> cat contact.txt</h2> | |
<p>Para proyectos, colaboraciones o simplemente conversar sobre datos:</p> | ||
<ul> | ||
<li>Email: <a href="mailto:[email protected]">[email protected]</a></li> | ||
<li>LinkedIn: <a href="https://linkedin.com/in/valdezdata">valdezdata</a></li> | ||
</ul> | ||
<pre class="language-bash"><code class="language-bash"><span class="token builtin class-name">echo</span> <span class="token string">"Te agradezco por leer mi blog"</span> <span class="token operator">></span> /dev/stdout</code></pre> | ||
|
||
|
@@ -107,7 +107,7 @@ <h2>> cat contact.txt</h2> | |
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="/js/terminal.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ title: whoami | |
## > whoami | ||
|
||
``` | ||
- User: valdezdata | ||
- User: Omar Valdez | ||
- Role: Data Architect | ||
- Location: /home/valdezdata | ||
``` | ||
|
@@ -60,7 +60,6 @@ Mi misión es desbloquear el potencial de los datos para impulsar decisiones bas | |
Para proyectos, colaboraciones o simplemente conversar sobre datos: | ||
|
||
- Email: [[email protected]](mailto:[email protected]) | ||
- LinkedIn: [valdezdata](https://linkedin.com/in/valdezdata) | ||
|
||
```bash | ||
echo "Te agradezco por leer mi blog" > /dev/stdout | ||
|