Home প্রিমিয়াম পোস্ট APPS STORE NEW WEBSITE TO APP কোর্স

প্রম্পট এবং কোড দেখুন

AI Test Lab

Test your prompts directly on official platforms.

কপি, ডাউনলোড, এবং শেয়ার বাটন রেডি কোড





✦ CODE SNIPPET
<!-- PREMIUM CODE BOX v3 - COLORFUL NEON GLASS EDITION (WORKING FIXED) -->
<div class="neon-code-box">
  <div class="neon-glow-blob blob-1"></div>
  <div class="neon-glow-blob blob-2"></div>

  <div class="neon-header">
    <div class="neon-tag">
      <span class="neon-dots">
        <span class="dot dot-red"></span>
        <span class="dot dot-yellow"></span>
        <span class="dot dot-green"></span>
      </span>
      <span class="neon-label">✦ CODE SNIPPET</span>
    </div>

    <div class="neon-actions">
      <button type="button" class="neon-btn btn-copy" onclick="copyNeonCode(this)" title="Copy Code">
        <span class="neon-icon">⧉</span>
        <span class="neon-text">Copy</span>
      </button>

      <button type="button" class="neon-btn btn-download" onclick="downloadNeonCode(this)" title="Download Code">
        <span class="neon-icon">⬇</span>
        <span class="neon-text">Download</span>
      </button>

      <button type="button" class="neon-btn btn-share" onclick="shareNeonCode(this)" title="Share Code">
        <span class="neon-icon">✦</span>
        <span class="neon-text">Share</span>
      </button>
    </div>
  </div>

  <div class="neon-content">
    <pre><code>YOUR CODE HERE</code></pre>
  </div>

  <div class="neon-footer">
    <span class="footer-spark">⬥</span> ready to use <span class="footer-spark">⬥</span>
  </div>
</div>

<style>
/* ===== NEON GLASS CODE BOX — COLORFUL EDITION ===== */

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-15px) scale(1.15); }
  66%      { transform: translate(-15px,10px) scale(.9); }
}

@keyframes rainbowSpin {
  to { --angle: 360deg; }
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes labelGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(236,72,153,.6), 0 0 16px rgba(168,85,247,.4); }
  50%      { text-shadow: 0 0 14px rgba(56,189,248,.8), 0 0 24px rgba(168,85,247,.6); }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}

@keyframes popCheck {
  0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
  60%  { transform: scale(1.3) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sparkTwinkle {
  0%, 100% { opacity: .4; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.3); }
}

.neon-code-box {
  --angle: 0deg;
  position: relative;
  width: 100%;
  margin: 28px 0;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, #1a1030 0%, #100a24 55%, #0b0818 100%);
  font-family: "Courier New", monospace;
  box-sizing: border-box;
  animation: floatIn .55s cubic-bezier(.16,1,.3,1) both;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
}

.neon-code-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: 21px;
  padding: 2px;
  background: conic-gradient(from var(--angle), #ec4899, #a855f7, #38bdf8, #22d3ee, #34d399, #facc15, #f97316, #ec4899);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rainbowSpin 5s linear infinite;
  opacity: .85;
}

.neon-code-box:hover::before {
  opacity: 1;
  filter: brightness(1.3);
}

.neon-glow-blob {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(55px);
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  animation: blobFloat 9s ease-in-out infinite;
}
.blob-1 {
  top: -40px;
  left: -30px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
}
.blob-2 {
  bottom: -50px;
  right: -20px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  animation-delay: -4s;
}

.neon-header {
  position: relative;
  z-index: 2;
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-sizing: border-box;
}

.neon-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.neon-dots {
  display: flex;
  gap: 6px;
}
.neon-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: dotBlink 2.4s ease-in-out infinite;
}
.dot-red    { background: #ff5f56; box-shadow: 0 0 10px #ff5f56; animation-delay: 0s; }
.dot-yellow { background: #ffbd2e; box-shadow: 0 0 10px #ffbd2e; animation-delay: .3s; }
.dot-green  { background: #27c93f; box-shadow: 0 0 10px #27c93f; animation-delay: .6s; }

.neon-label {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #f5d0fe;
  animation: labelGlow 3s ease-in-out infinite;
}

.neon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.neon-btn {
  border: 1px solid rgba(255,255,255,.14);
  color: #f1e9ff;
  padding: 8px 13px;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease;
  white-space: nowrap;
}

.btn-copy     { background: linear-gradient(135deg, rgba(236,72,153,.25), rgba(168,85,247,.2)); }
.btn-download { background: linear-gradient(135deg, rgba(56,189,248,.25), rgba(34,211,238,.2)); }
.btn-share    { background: linear-gradient(135deg, rgba(250,204,21,.25), rgba(249,115,22,.2)); }

.neon-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.neon-btn:hover::after { left: 140%; }

.btn-copy:hover     { border-color: #ec4899; box-shadow: 0 6px 20px rgba(236,72,153,.45); }
.btn-download:hover { border-color: #38bdf8; box-shadow: 0 6px 20px rgba(56,189,248,.45); }
.btn-share:hover    { border-color: #facc15; box-shadow: 0 6px 20px rgba(250,204,21,.45); }

.neon-btn:hover { transform: translateY(-3px) scale(1.04); }
.neon-btn:active { transform: translateY(0) scale(.95); }

.neon-icon {
  font-size: 15px;
  line-height: 1;
  transition: transform .3s ease;
}
.neon-btn:hover .neon-icon { transform: rotate(-10deg) scale(1.2); }

.btn-copy.copied {
  background: linear-gradient(135deg, rgba(34,211,153,.35), rgba(16,185,129,.25));
  border-color: #34d399;
  box-shadow: 0 0 22px rgba(52,211,153,.5);
}
.btn-copy.copied .neon-icon { animation: popCheck .45s ease; }

.neon-content {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
  background: rgba(6,4,16,.55);
}

.neon-content pre {
  margin: 0;
  padding: 22px;
  min-height: 80px;
  color: #e9e4ff;
  font-family: "Courier New", Consolas, monospace;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
  box-sizing: border-box;
}

.neon-content code { color: inherit; font-family: inherit; }

.neon-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7px 10px;
  font-family: Arial, sans-serif;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b9a8e0;
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-spark {
  display: inline-block;
  color: #ec4899;
  animation: sparkTwinkle 1.8s ease-in-out infinite;
  margin: 0 6px;
}

.neon-content pre::-webkit-scrollbar,
.neon-content::-webkit-scrollbar { height: 8px; }
.neon-content pre::-webkit-scrollbar-track,
.neon-content::-webkit-scrollbar-track { background: rgba(255,255,255,.03); }
.neon-content pre::-webkit-scrollbar-thumb,
.neon-content::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ec4899, #38bdf8);
  border-radius: 10px;
}

@media (max-width: 600px) {
  .neon-header { padding: 8px; flex-wrap: wrap; }
  .neon-actions { gap: 5px; }
  .neon-btn { padding: 7px 9px; }
  .neon-text { display: none; }
  .neon-icon { font-size: 17px; }
  .neon-content pre { padding: 15px; font-size: 13px; }
  .neon-label { font-size: 10.5px; }
}
</style>

<script>
/* ===== FIXED SCRIPT FOR BUTTONS ===== */
function getNeonCode(button) {
  var box = button.closest(".neon-code-box");
  if (!box) return "";
  var code = box.querySelector("code") || box.querySelector("pre");
  return code ? (code.innerText || code.textContent || "").trim() : "";
}

function copyNeonCode(button) {
  var codeText = getNeonCode(button);
  if (!codeText) return;
  
  var textSpan = button.querySelector(".neon-text");
  var iconSpan = button.querySelector(".neon-icon");

  function copiedSuccess() {
    button.classList.add("copied");
    if (textSpan) textSpan.textContent = "Copied!";
    if (iconSpan) iconSpan.textContent = "✓";

    setTimeout(function() {
      button.classList.remove("copied");
      if (textSpan) textSpan.textContent = "Copy";
      if (iconSpan) iconSpan.textContent = "⧉";
    }, 2000);
  }

  if (navigator.clipboard && window.isSecureContext) {
    navigator.clipboard.writeText(codeText).then(copiedSuccess).catch(function() {
      fallbackNeonCopy(codeText, copiedSuccess);
    });
  } else {
    fallbackNeonCopy(codeText, copiedSuccess);
  }
}

function fallbackNeonCopy(text, callback) {
  var textarea = document.createElement("textarea");
  textarea.value = text;
  textarea.style.position = "fixed";
  textarea.style.left = "-9999px";
  document.body.appendChild(textarea);
  textarea.focus();
  textarea.select();
  try {
    document.execCommand("copy");
    callback();
  } catch (err) {
    alert("Copy failed.");
  }
  document.body.removeChild(textarea);
}

function downloadNeonCode(button) {
  var codeText = getNeonCode(button);
  if (!codeText) return;
  var blob = new Blob([codeText], { type: "text/plain;charset=utf-8" });
  var url = URL.createObjectURL(blob);
  var link = document.createElement("a");
  link.href = url;
  link.download = "premium-code.txt";
  document.body.appendChild(link);
  link.click();
  document.body.removeChild(link);
  setTimeout(function() { URL.revokeObjectURL(url); }, 1000);
}

function shareNeonCode(button) {
  var codeText = getNeonCode(button);
  var shareData = {
    title: document.title || "Code",
    text: codeText,
    url: window.location.href
  };

  if (navigator.share) {
    navigator.share(shareData).catch(function(error) {
      if (error.name !== "AbortError") showNeonShareFallback();
    });
  } else {
    showNeonShareFallback();
  }
}

function showNeonShareFallback() {
  var shareUrl = window.location.href;
  if (navigator.clipboard && window.isSecureContext) {
    navigator.clipboard.writeText(shareUrl).then(function() {
      alert("Page link copied! শেয়ার করার জন্য পেজ লিংক কপি করা হয়েছে।");
    }).catch(function() {
      prompt("Copy this link:", shareUrl);
    });
  } else {
    prompt("Copy this link:", shareUrl);
  }
}
</script>
<!-- PREMIUM CODE BOX v3 END -->
বিজ্ঞাপন
পোস্ট করেছেন

Tanbin Farazi