mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
Change Bcrypt hashing to HMAC256 Hashing for ips only, add navbar, and exclude .env from git changes.
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
.nav-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1rem 2rem;
|
||||
background-color: var(--neutral-900);
|
||||
color: #fff;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
.nav-link {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
font-size: 1.2rem;
|
||||
transition: color 0.3s;
|
||||
}
|
||||
.nav-link:hover {
|
||||
color: var(--neutral-300);
|
||||
}
|
||||
|
||||
.nav-links .nav-link {
|
||||
width: auto;
|
||||
padding: 0 1rem;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.nav-links .nav-link:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.hamburger {
|
||||
display: none;
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 2rem;
|
||||
cursor: pointer;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
position: static;
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
max-height: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.nav-links.show {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: var(--neutral-900);
|
||||
padding: 1rem 2rem;
|
||||
max-height: 500px;
|
||||
transition: max-height 0.3s ease-out;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
.nav-links {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
border-top: 1px solid var(--neutral-800);
|
||||
background-color: var(--neutral-900);
|
||||
padding: 1rem 2rem;
|
||||
max-height: 0;
|
||||
transition: max-height 0.3s ease-out;
|
||||
overflow: hidden;
|
||||
}
|
||||
.nav-link{
|
||||
width: 100% !important;
|
||||
padding: 1rem 0 !important;
|
||||
text-align: center;
|
||||
border-bottom: 1px solid var(--neutral-800) !important;
|
||||
}
|
||||
.nav-links.show {
|
||||
display: flex;
|
||||
max-height: 500px;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.hamburger {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.nav-bar {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
@@ -63,6 +63,7 @@
|
||||
border-radius: 0px;
|
||||
border-bottom-right-radius: 5px;
|
||||
border-bottom-left-radius: 5px;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.paste-actions {
|
||||
@@ -103,7 +104,7 @@ button {
|
||||
}
|
||||
|
||||
pre code.hljs {
|
||||
display: block;
|
||||
display: block !important;
|
||||
overflow-x: auto;
|
||||
padding: 1em
|
||||
}
|
||||
|
||||
@@ -125,6 +125,15 @@ select {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
select:hover {
|
||||
outline: none;
|
||||
border: 1px solid var(--neutral-600);
|
||||
}
|
||||
select:focus {
|
||||
outline: none;
|
||||
border: 1px solid var(--neutral-600);
|
||||
}
|
||||
|
||||
#syntax {
|
||||
padding-left: 14rem;
|
||||
}
|
||||
|
||||
@@ -20,4 +20,5 @@
|
||||
</div>
|
||||
</body>
|
||||
<script src="js/error.js"></script>
|
||||
<script src="js/navbar.js"></script>
|
||||
</html>
|
||||
@@ -57,6 +57,7 @@
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
<script src="js/navbar.js"></script>
|
||||
<script src="js/index.js"></script>
|
||||
|
||||
</html>
|
||||
@@ -1,9 +1,22 @@
|
||||
function AddToDom() {
|
||||
var nav = document.createElement("nav");
|
||||
nav.innerHTML = "<a href='index.html'>Home</a> | <a href='about.html'>About</a> | <a href='contact.html'>Contact</a>";
|
||||
document.body.appendChild(nav);
|
||||
console.log("Added nav to dom");
|
||||
}
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
AddToDom();
|
||||
});
|
||||
const navbarHTML = `
|
||||
<div class="nav-bar">
|
||||
<button class="hamburger" onclick="toggleMenu()">☰</button>
|
||||
<div class="nav-links">
|
||||
<a href="index.html" class="nav-link">Home</a>
|
||||
<a href="archive.html" class="nav-link">Paste Archive</a>
|
||||
</div>
|
||||
<style>
|
||||
.nav-bar {display: flex;justify-content: space-between;align-items: center;padding: 1rem 2rem;background-color: var(--neutral-900);color: #fff;position: fixed;width: 100%;top: 0;left: 0;right: 0;}.nav-link {color: #fff;text-decoration: none;font-size: 1.2rem;transition: color 0.3s;}.nav-link:hover {color: var(--neutral-300);}.nav-links .nav-link {width: auto;padding: 0 1rem;border-bottom: none;}.nav-links .nav-link:last-child {border-bottom: none;}.hamburger {display: none;background: none;border: none;font-size: 2rem;cursor: pointer;margin: 0 auto;}.nav-links {display: flex;flex-direction: row;position: static;background-color: transparent;padding: 0;max-height: none;transition: none;}.nav-links.show {display: flex;flex-direction: column;position: absolute;top: 100%;left: 0;right: 0;background-color: var(--neutral-900);padding: 1rem 2rem;max-height: 500px;transition: max-height 0.3s ease-out;overflow: hidden;}@media (max-width: 800px) {.nav-links {display: none;flex-direction: column;width: 100%;position: absolute;top: 100%;left: 0;right: 0;border-top: 1px solid var(--neutral-800);background-color: var(--neutral-900);padding: 1rem 2rem;max-height: 0;transition: max-height 0.3s ease-out;overflow: hidden;}.nav-link{width: 100% !important;padding: 1rem 0 !important;text-align: center;border-bottom: 1px solid var(--neutral-800) !important;}.nav-links.show {display: flex;max-height: 500px;flex-direction: column;align-items: center;}.hamburger {display: block;margin: 0 auto;}.nav-bar {justify-content: center;}}
|
||||
</style>
|
||||
</div>
|
||||
`;
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
document.body.insertAdjacentHTML('afterbegin', navbarHTML);
|
||||
});
|
||||
|
||||
window.toggleMenu = function () {
|
||||
const nav = document.querySelector('.nav-links');
|
||||
nav.classList.toggle('show');
|
||||
};
|
||||
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
<button id="download-button">Download</button>
|
||||
<button id="raw-button">Raw</button>
|
||||
</div>
|
||||
<pre id="paste-content">Content</pre>
|
||||
<pre id="paste-content">Loading...</pre>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="js/paste.js"></script>
|
||||
|
||||
<script src="js/navbar.js"></script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user