Skip to content

Instantly share code, notes, and snippets.

@nbenns
Last active December 9, 2025 15:59
Show Gist options
  • Select an option

  • Save nbenns/f263f05efddff26dce0b82f155326438 to your computer and use it in GitHub Desktop.

Select an option

Save nbenns/f263f05efddff26dce0b82f155326438 to your computer and use it in GitHub Desktop.
<html>
<body>
<canvas id="canvas1" width="500", height="500">
Random Canvas
</canvas>
<script type="text/javascript">
element = document.getElementById("canvas1");
c = element.getContext("2d");
// read the width and height of the canvas
width = parseInt(element.getAttribute("width"));
height = parseInt(element.getAttribute("height"));
// create a new pixel array
imageData = c.createImageData(width, height);
function setPixel(x, y, r, g, b, a) {
index = (x + (height - 1 - y) * width) * 4;
imageData.data[index+0] = r;
imageData.data[index+1] = g;
imageData.data[index+2] = b;
imageData.data[index+3] = a;
}
function draw() {
// draw random dots
for (i = 0; i < width; i++) {
setPixel(i, 0, parseInt(Math.random() * 256), 0, 0, 0xff);
}
// flame average
for (y1 = height; y1 > 0; y1--) {
for (xi = 1; xi < 50; xi++) {
x1 = parseInt(Math.random() * width);
r1 = imageData.data[((x1 - 1) + (height - y1) * width) * 4];
r2 = imageData.data[(x1 + (height - y1) * width) * 4];
r3 = imageData.data[((x1 + 1) + (height - y1) * width) * 4];
r = (r1 + r2 + r3) / 3;
if (r > 50) {
r = r + parseInt(Math.random() * 100) - 50;
}
setPixel(x1, y1, r, 0, 0, 0xff);
}
}
c.putImageData(imageData, 0, 0); // at coords 0,0
}
setInterval("draw()", 1);
</script>
</body>
</html>
@jpxrealtrad-cyber
Copy link
Copy Markdown

<title>Neon Futuristic Landing Page</title> <style> /* ===== FONT ===== */ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; } body { background: radial-gradient(circle at top, #0a0f24, #000); color: white; overflow-x: hidden; } /* ===== ANIMASI BACKGROUND ===== */ .bg-animation { position: fixed; width: 200%; height: 200%; top: -50%; left: -50%; background: linear-gradient(45deg, #00eaff, #8f00ff, #0011ff, #00a2ff); animation: rotateBg 12s linear infinite; z-index: -10; filter: blur(150px); } @Keyframes rotateBg { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* ===== NAVBAR ===== */ nav { width: 100%; padding: 20px 6%; display: flex; justify-content: space-between; align-items: center; position: fixed; backdrop-filter: blur(10px); background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(0,255,255,0.2); z-index: 100; } nav h1 { font-size: 24px; color: #00eaff; text-shadow: 0 0 10px #00eaff; } nav a { margin-left: 25px; text-decoration: none; color: white; transition: 0.3s; } nav a:hover { color: #00eaff; text-shadow: 0 0 10px #00eaff; } /* ===== HERO SECTION ===== */ .hero { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-left: 6%; } .hero h2 { font-size: 55px; line-height: 1.1; color: #fff; text-shadow: 0 0 20px #00eaff; animation: fade 2s ease-out forwards; } .hero p { margin-top: 15px; font-size: 18px; max-width: 450px; opacity: 0; animation: fade 2s 0.5s ease-out forwards; } @Keyframes fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* ===== BUTTON ===== */ .btn { margin-top: 25px; padding: 12px 28px; background: transparent; border: 2px solid #00eaff; color: #00eaff; cursor: pointer; border-radius: 8px; font-size: 18px; transition: 0.3s; box-shadow: 0 0 10px #00eaff; } .btn:hover { background: #00eaff; color: #000; box-shadow: 0 0 20px #00eaff; } /* ===== FEATURES ===== */ .section { padding: 80px 6%; text-align: center; } .section h3 { font-size: 35px; margin-bottom: 30px; text-shadow: 0 0 15px #8f00ff; } .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; } .card { padding: 25px; background: rgba(255,255,255,0.05); border: 1px solid rgba(0,255,255,0.2); border-radius: 15px; transition: 0.3s; } .card:hover { transform: translateY(-10px); box-shadow: 0 0 20px #00eaff; } /* ===== FOOTER ===== */ footer { padding: 30px; text-align: center; background: rgba(0,0,0,0.4); border-top: 1px solid rgba(0,255,255,0.2); backdrop-filter: blur(8px); } </style>

CyberTech

Website Futuristik
Berbasis Teknologi AI

Tingkatkan branding Anda dengan tampilan modern, animasi neon, dan desain futuristik yang memukau.

Mulai Sekarang

Fitur Canggih

⚑ Desain Neon Glow

Tampilan modern dengan efek cahaya elegan dan futuristik.

<div class="card">
  <h4>πŸ€– Integrasi AI</h4>
  <p>Dukungan fitur artificial intelligence untuk pengalaman lebih baik.</p>
</div>

<div class="card">
  <h4>πŸš€ Animasi Halus</h4>
  <p>Efek pergerakan lembut dan dinamis untuk website yang hidup.</p>
</div>
Β© 2025 CyberTech β€” All Rights Reserved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment