mirror of
https://codeberg.org/theamazing0/portfolio.git
synced 2025-10-30 02:12:19 -04:00
Configured project to work with ClientRouter
This commit is contained in:
parent
a58308933b
commit
d25d8dbb75
4 changed files with 15 additions and 11 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "mini-site",
|
||||
"name": "website",
|
||||
"type": "module",
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -165,6 +165,8 @@ function encryptString(input: string, difficultyPrefix = "0000") {
|
|||
async function decryptData(e: Event) {
|
||||
e.preventDefault();
|
||||
|
||||
console.log("decrypting data");
|
||||
|
||||
const detailsDiv = document.getElementById("details-div");
|
||||
if (detailsDiv) {
|
||||
const encryptedDetails = detailsDiv.dataset.encrypted;
|
||||
|
|
@ -229,8 +231,11 @@ function encryptString(input: string, difficultyPrefix = "0000") {
|
|||
}
|
||||
}
|
||||
|
||||
const decodeBtn = document.getElementById("decode-btn");
|
||||
if (decodeBtn) {
|
||||
decodeBtn.addEventListener("click", decryptData);
|
||||
}
|
||||
document.addEventListener("astro:page-load", () => {
|
||||
const decodeBtn = document.getElementById("decode-btn");
|
||||
if (decodeBtn) {
|
||||
decodeBtn.addEventListener("click", decryptData);
|
||||
console.log("Adding eventlistener");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import NavItem from "../components/NavItem.astro";
|
|||
import Navbar from "../components/Navbar.astro";
|
||||
import "@fontsource-variable/inter";
|
||||
import interWoff2 from "@fontsource-variable/inter/files/inter-latin-wght-normal.woff2";
|
||||
// import { ClientRouter } from "astro:transitions";
|
||||
import { ClientRouter } from "astro:transitions";
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
|
|
@ -33,7 +33,7 @@ import interWoff2 from "@fontsource-variable/inter/files/inter-latin-wght-normal
|
|||
crossorigin="anonymous"
|
||||
/>
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<!-- <ClientRouter /> -->
|
||||
<ClientRouter />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<div class="lg-container">
|
||||
|
|
@ -114,6 +114,4 @@ import interWoff2 from "@fontsource-variable/inter/files/inter-latin-wght-normal
|
|||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@ title: Now
|
|||
|
||||
_Last updated Jul 28, 2025_
|
||||
|
||||
- I've been working on this personal website. I'm planning on submitting it to [Summer of Making](https://summer.hackclub.com/) to hopefully get a free domain for it.
|
||||
- Getting ready to start 11th grade in a week. I'm sort of looking forward to meeting with my friends more often again, but this summer has also been pretty fun.
|
||||
- 🖥️ I've been working on this personal website. I'm planning on submitting it to [Summer of Making](https://summer.hackclub.com/) to hopefully get a free domain for it.
|
||||
- 📚 Getting ready to start 11th grade in a week. I'm sort of looking forward to meeting with my friends more often again, but this summer has also been pretty fun.
|
||||
- 🌼 My [native plants](https://gnps.org/georgias-native-plants/) that I started growing from seed this year seem to be doing well. The Wild Bergamots are doing very good and haven't been bothered by any animals even before I put some chicken wire up. The rest have suffered some damage from eating, but are still growing back.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue