-
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
1 parent
c1e3e44
commit 7c83838
Showing
5 changed files
with
42 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Search | Project Ninjago</title> | ||
<link rel="stylesheet" href="/static/styles/search.css"> | ||
</head> | ||
<body> | ||
<nav> | ||
<li><a href="/" class="navheader">Project Ninjago</a></li> | ||
</nav> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,9 @@ | ||
console.log("Script loaded at", window.location.href) | ||
|
||
views = ['.databank', '.gallery'] | ||
i = 0 | ||
function scrollDown() { | ||
const nextSection = document.querySelector('.databank'); | ||
const nextSection = document.querySelector(views[i]); | ||
nextSection.scrollIntoView({ behavior: 'smooth' }); | ||
i = i + 1 | ||
} | ||
document.addEventListener("DOMContentLoaded", () => { | ||
const cursor = document.querySelector(".custom-cursor"); | ||
|
||
// Update cursor position | ||
document.addEventListener("mousemove", (e) => { | ||
cursor.style.left = `${e.clientX}px`; | ||
cursor.style.top = `${e.clientY}px`; | ||
}); | ||
|
||
// Resize cursor on hover over links/buttons | ||
document.querySelectorAll("a, button").forEach((el) => { | ||
el.addEventListener("mouseenter", () => { | ||
const rect = el.getBoundingClientRect(); | ||
cursor.style.width = `${rect.width + 10}px`; | ||
cursor.style.height = `${rect.height + 10}px`; | ||
}); | ||
|
||
el.addEventListener("mouseleave", () => { | ||
cursor.style.width = "40px"; | ||
cursor.style.height = "40px"; | ||
}); | ||
}); | ||
}); |
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,19 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Inter:wght@300;400;600;700&display=swap'); | ||
|
||
.navheader { | ||
font-family: 'Amiri', sans-serif; | ||
text-decoration: none; | ||
font-size: 50px; | ||
|
||
margin: 15px; | ||
padding: 0; | ||
color: black; | ||
} | ||
.navheader a { | ||
text-decoration: none; | ||
color: inherit; | ||
list-style-type: none; | ||
} | ||
.navheader::marker { | ||
content: ''; /* Removes the marker */ | ||
} |