-
Notifications
You must be signed in to change notification settings - Fork 31
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
1 parent
0fdf26d
commit f79f4f8
Showing
28 changed files
with
5,005 additions
and
789 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,52 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite + React + TS</title> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1" /> | ||
<title>Alby - Nostr Wallet Connect</title> | ||
<link rel="icon" href="/public/vite.svg" /> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
<!-- <script type="text/javascript"> | ||
if (window.location.pathname.startsWith("/apps")) { | ||
const link = document.querySelector('a[href="/apps"]'); | ||
link.classList.remove("text-gray-400"); | ||
link.classList.add("text-gray-900", "dark:text-gray-100"); | ||
} | ||
if (window.location.pathname.startsWith("/about")) { | ||
const link = document.querySelector('a[href="/about"]'); | ||
link.classList.remove("text-gray-400"); | ||
link.classList.add("text-gray-900", "dark:text-gray-100"); | ||
} | ||
function updateLogo() { | ||
const isDarkMode = window.matchMedia( | ||
"(prefers-color-scheme: dark)" | ||
).matches; | ||
const logoImages = document.querySelectorAll("#alby-logo"); | ||
if (isDarkMode) { | ||
logoImages.forEach((logoImage) => { | ||
logoImage.src = "/public/images/alby-logo-with-text-dark.svg"; | ||
}); | ||
} else { | ||
logoImages.forEach((logoImage) => { | ||
logoImage.src = "/public/images/alby-logo-with-text.svg"; | ||
}); | ||
} | ||
} | ||
const dropdownMenu = document.getElementById("dropdown-menu"); | ||
const caret = document.getElementById("caret"); | ||
dropdownMenu.addEventListener('click',()=>{ | ||
const dropdown = document.getElementById("dropdown"); | ||
dropdown.classList.toggle("hidden"); | ||
caret.classList.toggle("rotate-180"); | ||
}); | ||
window.addEventListener("load", updateLogo); | ||
window | ||
.matchMedia("(prefers-color-scheme: dark)") | ||
.addEventListener("change", updateLogo); | ||
</script> --> | ||
</html> |
Oops, something went wrong.