coply / index.html
cyberzebra's picture
undefined - Initial Deployment
b42b2c8 verified
Raw History Blame Contribute Delete
29.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DealForge - Secure Coupon-Invoice Builder</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#2563eb',
secondary: '#1e40af',
dark: '#0f172a',
light: '#f8fafc'
}
}
}
}
</script>
<style>
.note-container {
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
border-radius: 16px;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.crypto-badge {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
color: white;
border-radius: 20px;
padding: 4px 12px;
font-size: 0.75rem;
display: inline-flex;
align-items: center;
gap: 4px;
}
.api-card {
transition: all 0.3s ease;
border: 1px solid #e2e8f0;
}
.api-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.password-strength-meter {
height: 6px;
border-radius: 3px;
transition: width 0.3s ease;
}
.copy-btn {
transition: all 0.2s ease;
}
.copy-btn:hover {
background-color: #1d4ed8;
transform: scale(1.05);
}
.security-badge {
position: absolute;
top: 16px;
right: 16px;
z-index: 10;
}
.fade-in {
animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.encrypted-text {
font-family: monospace;
letter-spacing: 1px;
}
</style>
</head>
<body class="bg-gray-50 text-dark min-h-screen">
<!-- Security Badge -->
<div class="security-badge">
<div class="crypto-badge">
<i class="fas fa-lock"></i>
<span>End-to-End Encrypted</span>
</div>
</div>
<!-- Header -->
<header class="bg-white shadow-sm">
<div class="container mx-auto px-4 py-6 flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center space-x-3 mb-4 md:mb-0">
<div class="bg-primary p-2 rounded-lg">
<i class="fas fa-shield-alt text-white text-2xl"></i>
</div>
<div>
<h1 class="text-2xl font-bold text-gray-900">SecureNote</h1>
<p class="text-sm text-gray-500">Client-side encrypted sharing</p>
</div>
</div>
<nav class="flex space-x-6">
<a href="#" class="text-primary font-medium hover:text-secondary">Home</a>
<a href="#api" class="text-gray-600 hover:text-primary">API</a>
<a href="#security" class="text-gray-600 hover:text-primary">Security</a>
<a href="#" class="text-gray-600 hover:text-primary">Documentation</a>
</nav>
</div>
</header>
<!-- Hero Section -->
<section class="py-12 bg-gradient-to-r from-blue-50 to-indigo-50">
<div class="container mx-auto px-4 max-w-6xl">
<div class="text-center mb-12">
<h2 class="text-4xl md:text-5xl font-bold mb-4 text-gray-900">Share Sensitive Information Securely</h2>
<p class="text-xl text-gray-600 max-w-2xl mx-auto">End-to-end encrypted notes that self-destruct after reading. Your data never touches our servers unencrypted.</p>
</div>
<!-- Main Content -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 items-start">
<!-- Note Creation Form -->
<div class="note-container p-6 md:p-8">
<div class="mb-6">
<h3 class="text-2xl font-bold text-gray-900 mb-2">Create a Secure Note</h3>
<p class="text-gray-600">All encryption happens in your browser before any data is transmitted.</p>
</div>
<form id="invoiceForm" class="space-y-6">
<div>
<label class="block text-gray-700 mb-2 font-medium">Invoice Title</label>
<input type="text" id="invoiceTitle" class="w-full px-4 py-3 border rounded-lg focus:ring-2 focus:ring-primary" placeholder="e.g. Summer Coupon Bundle" required>
</div>
<!-- Wizard Steps Indicator -->
<div class="flex space-x-2 text-sm">
<span class="step-indicator bg-primary text-white px-2 py-1 rounded">Items</span>
<span class="step-indicator bg-gray-200 px-2 py-1 rounded">Coupon</span>
<span class="step-indicator bg-gray-200 px-2 py-1 rounded">Payers</span>
</div>
<!-- Dynamic Items List -->
<div>
<label class="block text-gray-700 mb-2 font-medium">Items</label>
<div id="itemsList" class="space-y-3"></div>
<button type="button" id="addItemBtn" class="text-primary hover:text-secondary flex items-center text-sm">
<i class="fas fa-plus mr-1"></i> Add Item
</button>
</div>
<div>
<label class="block text-gray-700 mb-2 font-medium">Coupon / Deal Code</label>
<input type="text" id="couponCode" class="w-full px-4 py-3 border rounded-lg focus:ring-2 focus:ring-primary" placeholder="SUMMER2024" maxlength="20">
</div>
<div>
<label class="block text-gray-700 mb-2 font-medium">Split Payment</label>
<div id="payerList" class="space-y-3"></div>
<button type="button" id="addPayerBtn" class="text-primary hover:text-secondary flex items-center text-sm">
<i class="fas fa-user-plus mr-1"></i> Add Payer
</button>
</div>
<div class="pt-4 flex flex-col sm:flex-row sm:space-x-4">
<button type="submit" class="bg-primary hover:bg-secondary text-white font-medium py-3 px-6 rounded-lg transition duration-300 flex items-center justify-center mb-3 sm:mb-0">
<i class="fas fa-lock mr-2"></i>
Generate Secure Invoice
</button>
<button type="reset" class="border border-gray-300 text-gray-700 font-medium py-3 px-6 rounded-lg hover:bg-gray-50 transition duration-300">
Clear
</button>
</div>
</form>
</div>
<!-- Result Panel -->
<div class="bg-white rounded-xl shadow-lg p-6 md:p-8">
<div class="mb-6">
<h3 class="text-2xl font-bold text-gray-900 mb-2">Your Secure Coupon-Invoice</h3>
<p class="text-gray-600">Share this link with payers. They can pay their parts securely via isolated payment tunnels.</p>
</div>
<div id="resultPanel" class="hidden fade-in">
<div class="mb-4 p-4 bg-blue-50 rounded-lg border border-blue-100">
<div class="flex justify-between items-center mb-2">
<span class="text-sm font-medium text-blue-800">Invoice Created</span>
<i class="fas fa-check-circle text-green-500"></i>
</div>
<p class="text-sm text-blue-700">Your coupon-invoice is encrypted and ready. Service commission will be added at checkout.</p>
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2 font-medium">Shareable Invoice Link</label>
<div class="flex">
<input id="secureLink" type="text" class="flex-grow px-4 py-3 border rounded-l-lg" readonly>
<button id="copyLink" class="copy-btn bg-primary hover:bg-secondary text-white px-4 py-3 rounded-r-lg">
<i class="fas fa-copy"></i>
</button>
</div>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2 font-medium">Total <span id="totalAmount" class="font-bold text-lg">0</span> USD</label>
<small class="text-gray-500">Commission will be displayed at checkout</small>
</div>
<div class="bg-yellow-50 border-l-4 border-yellow-400 p-4 rounded">
<div class="flex items-start">
<i class="fas fa-exclamation-circle text-yellow-400 mt-1 mr-2"></i>
<p class="text-sm text-yellow-700">
<strong>Important:</strong> Each payer receives a unique secure link. Links auto-expire after payment or 24h.
</p>
</div>
</div>
</div>
<div id="emptyState" class="text-center py-12">
<div class="mx-auto bg-gray-100 rounded-full p-4 w-16 h-16 flex items-center justify-center mb-4">
<i class="fas fa-lock text-2xl text-gray-400"></i>
</div>
<h4 class="font-medium text-gray-700 mb-2">Create a secure note</h4>
<p class="text-gray-500 max-w-xs mx-auto">Your encrypted note and shareable link will appear here after submission.</p>
</div>
</div>
</div>
</div>
</section>
<!-- API Section -->
<section id="api" class="py-16 bg-light">
<div class="container mx-auto px-4 max-w-6xl">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">API Integration</h2>
<p class="text-xl text-gray-600 max-w-2xl mx-auto">Integrate secure note sharing directly into your applications with our verified API</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- API Card 1 -->
<div class="api-card bg-white rounded-xl shadow-md p-6">
<div class="w-12 h-12 rounded-lg bg-blue-100 text-primary flex items-center justify-center mb-4">
<i class="fas fa-code text-xl"></i>
</div>
<h3 class="text-xl font-bold text-gray-900 mb-2">Create Note</h3>
<p class="text-gray-600 mb-4">Create encrypted notes programmatically via API calls.</p>
<div class="bg-gray-800 text-gray-100 rounded-lg p-4 font-mono text-sm overflow-x-auto">
<span class="text-blue-400">POST</span> /v1/notes<br>
{<br>
&nbsp;&nbsp;"content": "Your secret data",<br>
&nbsp;&nbsp;"password": "strong-password",<br>
&nbsp;&nbsp;"self_destruct": true<br>
}
</div>
</div>
<!-- API Card 2 -->
<div class="api-card bg-white rounded-xl shadow-md p-6">
<div class="w-12 h-12 rounded-lg bg-green-100 text-green-600 flex items-center justify-center mb-4">
<i class="fas fa-shield-alt text-xl"></i>
</div>
<h3 class="text-xl font-bold text-gray-900 mb-2">Retrieve Note</h3>
<p class="text-gray-600 mb-4">Securely retrieve encrypted content with password verification.</p>
<div class="bg-gray-800 text-gray-100 rounded-lg p-4 font-mono text-sm overflow-x-auto">
<span class="text-green-400">POST</span> /v1/notes/{id}/retrieve<br>
{<br>
&nbsp;&nbsp;"password": "strong-password"<br>
}
</div>
</div>
<!-- API Card 3 -->
<div class="api-card bg-white rounded-xl shadow-md p-6">
<div class="w-12 h-12 rounded-lg bg-purple-100 text-purple-600 flex items-center justify-center mb-4">
<i class="fas fa-plug text-xl"></i>
</div>
<h3 class="text-xl font-bold text-gray-900 mb-2">Webhooks</h3>
<p class="text-gray-600 mb-4">Receive notifications when notes are accessed or destroyed.</p>
<div class="bg-gray-800 text-gray-100 rounded-lg p-4 font-mono text-sm overflow-x-auto">
{<br>
&nbsp;&nbsp;"event": "note.viewed",<br>
&nbsp;&nbsp;"note_id": "abc123",<br>
&nbsp;&nbsp;"timestamp": "2023-07-15T12:34:56Z"<br>
}
</div>
</div>
</div>
<div class="mt-12 bg-white rounded-xl shadow-md p-6">
<div class="flex flex-col md:flex-row items-start md:items-center justify-between">
<div>
<h3 class="text-xl font-bold text-gray-900 mb-2">Get API Credentials</h3>
<p class="text-gray-600">Register your application for API access with verified credentials.</p>
</div>
<button class="mt-4 md:mt-0 bg-primary hover:bg-secondary text-white font-medium py-3 px-6 rounded-lg transition duration-300 flex items-center">
<i class="fas fa-key mr-2"></i>
Generate API Key
</button>
</div>
</div>
</div>
</section>
<!-- Security Section -->
<section id="security" class="py-16 bg-dark text-white">
<div class="container mx-auto px-4 max-w-6xl">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold mb-4">Security Architecture</h2>
<p class="text-xl text-blue-200 max-w-2xl mx-auto">How we protect your data with military-grade encryption</p>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 items-center">
<div class="order-2 lg:order-1">
<div class="bg-gray-800 rounded-xl p-6">
<div class="flex items-start mb-6">
<div class="mr-4 mt-1 text-blue-400">
<i class="fas fa-user-shield text-2xl"></i>
</div>
<div>
<h3 class="text-xl font-bold mb-2">Client-Side Encryption</h3>
<p class="text-blue-200">Your data is encrypted in the browser before transmission using AES-256 encryption. We never see your unencrypted data.</p>
</div>
</div>
<div class="flex items-start mb-6">
<div class="mr-4 mt-1 text-green-400">
<i class="fas fa-fingerprint text-2xl"></i>
</div>
<div>
<h3 class="text-xl font-bold mb-2">Zero-Knowledge Architecture</h3>
<p class="text-blue-200">Passwords are never sent to our servers. We cannot decrypt your data even if compelled by authorities.</p>
</div>
</div>
<div class="flex items-start">
<div class="mr-4 mt-1 text-purple-400">
<i class="fas fa-fire-alt text-2xl"></i>
</div>
<div>
<h3 class="text-xl font-bold mb-2">Self-Destruct Mechanism</h3>
<p class="text-blue-200">Notes can be configured to automatically destroy themselves after being viewed, leaving no trace behind.</p>
</div>
</div>
</div>
</div>
<div class="order-1 lg:order-2">
<div class="bg-gray-800 rounded-xl p-8">
<h3 class="text-xl font-bold mb-4 text-center">Encryption Process</h3>
<div class="space-y-6">
<!-- Step 1 -->
<div class="flex items-start">
<div class="mr-4 bg-blue-600 rounded-full w-8 h-8 flex items-center justify-center">
<span class="font-bold">1</span>
</div>
<div>
<h4 class="font-bold mb-1">Data Encryption</h4>
<p class="text-blue-200">Your content is encrypted with AES-256 using a key derived from your password</p>
</div>
</div>
<!-- Step 2 -->
<div class="flex items-start">
<div class="mr-4 bg-blue-600 rounded-full w-8 h-8 flex items-center justify-center">
<span class="font-bold">2</span>
</div>
<div>
<h4 class="font-bold mb-1">Secure Transmission</h4>
<p class="text-blue-200">Encrypted data is sent over TLS 1.3 to our secure servers</p>
</div>
</div>
<!-- Step 3 -->
<div class="flex items-start">
<div class="mr-4 bg-blue-600 rounded-full w-8 h-8 flex items-center justify-center">
<span class="font-bold">3</span>
</div>
<div>
<h4 class="font-bold mb-1">Storage</h4>
<p class="text-blue-200">Data stored in encrypted databases with strict access controls</p>
</div>
</div>
<!-- Step 4 -->
<div class="flex items-start">
<div class="mr-4 bg-blue-600 rounded-full w-8 h-8 flex items-center justify-center">
<span class="font-bold">4</span>
</div>
<div>
<h4 class="font-bold mb-1">Access</h4>
<p class="text-blue-200">Recipient decrypts data client-side using the password you shared</p>
</div>
</div>
<!-- Step 5 -->
<div class="flex items-start">
<div class="mr-4 bg-blue-600 rounded-full w-8 h-8 flex items-center justify-center">
<span class="font-bold">5</span>
</div>
<div>
<h4 class="font-bold mb-1">Destruction</h4>
<p class="text-blue-200">Note is permanently deleted after access or expiration</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-12">
<div class="container mx-auto px-4 max-w-6xl">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<div class="flex items-center space-x-3 mb-4">
<div class="bg-primary p-2 rounded-lg">
<i class="fas fa-shield-alt text-white"></i>
</div>
<h3 class="text-xl font-bold">SecureNote</h3>
</div>
<p class="text-gray-400">End-to-end encrypted note sharing for sensitive communications.</p>
</div>
<div>
<h4 class="text-lg font-bold mb-4">Product</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Features</a></li>
<li><a href="#security" class="text-gray-400 hover:text-white">Security</a></li>
<li><a href="#api" class="text-gray-400 hover:text-white">API</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Pricing</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-bold mb-4">Resources</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Documentation</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Guides</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Blog</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Support</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-bold mb-4">Legal</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Privacy Policy</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Terms of Service</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Compliance</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Security Policy</a></li>
</ul>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center">
<p class="text-gray-500 text-sm">© 2023 SecureNote. All rights reserved.</p>
<div class="flex space-x-6 mt-4 md:mt-0">
<a href="#" class="text-gray-500 hover:text-white"><i class="fab fa-github"></i></a>
<a href="#" class="text-gray-500 hover:text-white"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-gray-500 hover:text-white"><i class="fab fa-linkedin"></i></a>
</div>
</div>
</div>
</footer>
<script>
const invoiceForm = document.getElementById('invoiceForm');
const itemsList = document.getElementById('itemsList');
const payerList = document.getElementById('payerList');
const addItemBtn = document.getElementById('addItemBtn');
const addPayerBtn = document.getElementById('addPayerBtn');
const secureLink = document.getElementById('secureLink');
const totalAmount = document.getElementById('totalAmount');
const copyLinkBtn = document.getElementById('copyLink');
const resultPanel = document.getElementById('resultPanel');
const emptyState = document.getElementById('emptyState');
let items = [];
let payers = [];
function renderItems() {
itemsList.innerHTML = '';
items.forEach((item, idx) => {
const div = document.createElement('div');
div.className = 'border rounded-lg p-3 grid gap-2';
div.innerHTML = `
<input type="url" placeholder="External link" class="w-full px-3 py-2 border rounded" value="${item.url}">
<input type="text" placeholder="Title" class="w-full px-3 py-2 border rounded" value="${item.title}">
<input type="number" placeholder="Price (USD)" step="0.01" class="w-full px-3 py-2 border rounded" value="${item.price}">
<button type="button" onclick="removeItem(${idx})" class="text-red-500 text-xs">Remove</button>
`;
itemsList.appendChild(div);
});
updateTotal();
}
function renderPayers() {
payerList.innerHTML = '';
payers.forEach((p, idx) => {
const div = document.createElement('div');
div.className = 'border rounded-lg p-3 flex items-center gap-2';
div.innerHTML = `
<input type="email" placeholder="Payer email" class="flex-grow px-3 py-2 border rounded" value="${p.email}">
<input type="number" placeholder="Split (USD)" step="0.01" class="w-32 px-3 py-2 border rounded" value="${p.split}">
<button type="button" onclick="removePayer(${idx})" class="text-red-500 text-xs">Remove</button>
`;
payerList.appendChild(div);
});
}
function addItem() {
items.push({url:'',title:'',price:0});
renderItems();
}
function removeItem(i) { items.splice(i,1); renderItems(); }
function addPayer() {
payers.push({email:'',split:0});
renderPayers();
}
function removePayer(i) { payers.splice(i,1); renderPayers(); }
function updateTotal() {
const sum = items.reduce((a,b)=>a+ (parseFloat(b.price)||0), 0);
totalAmount.textContent = sum.toFixed(2);
}
addItemBtn.addEventListener('click', addItem);
addPayerBtn.addEventListener('click', addPayer);
invoiceForm.addEventListener('submit', (e)=>{
e.preventDefault();
const invoiceId = 'inv_' + Date.now();
const link = window.location.href.split('#')[0] + `#/invoice/${invoiceId}`;
secureLink.value = link;
emptyState.classList.add('hidden');
resultPanel.classList.remove('hidden');
});
copyLinkBtn.addEventListener('click', ()=>{
secureLink.select();
document.execCommand('copy');
});
// Add initial item & payer
addItem();
addPayer();
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=cyberzebra/coply" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>