Spaces:
Running

test / index.html
Jonydrzw's picture
undefined - Initial Deployment
3f5825d verified
Raw History Blame Contribute Delete
15.1 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mintory - Solana Meme Coin Launchpad</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/@solana/web3.js@1.73.0/lib/index.iife.min.js"></script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #9c27b0 0%, #4caf50 50%, #f5f5f5 100%);
}
body {
border-left: 1px solid #e5e7eb;
border-right: 1px solid #e5e7eb;
background-color: #f5f5f5;
}
.gradient-text {
background: linear-gradient(135deg, #9c27b0 0%, #4caf50 50%, #ffffff 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.token-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);
}
.connect-btn {
transition: all 0.3s ease;
}
.connect-btn:hover {
transform: scale(1.05);
}
</style>
</head>
<body class="bg-gray-100 text-gray-900 min-h-screen">
<!-- Animated Background -->
<div id="vanta-bg" class="fixed inset-0 -z-10 opacity-10"></div>
<!-- Navigation -->
<nav class="border-b border-gray-200 py-4 bg-white">
<div class="container mx-auto px-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="zap" class="text-green-500"></i>
<h1 class="text-2xl font-bold bg-clip-text text-transparent gradient-bg">Mintory</h1>
</div>
<div class="flex items-center space-x-4">
<a href="https://twitter.com/mintory" target="_blank" class="hover:text-green-600 transition">
<i data-feather="twitter" class="w-5 h-5"></i>
</a>
<a href="https://t.me/mintory" target="_blank" class="hover:text-green-600 transition">
<i data-feather="send" class="w-5 h-5"></i>
</a>
<button id="connectWallet" class="connect-btn bg-green-500 hover:bg-green-600 px-4 py-2 rounded-lg font-medium flex items-center text-white">
<i data-feather="wallet" class="mr-2"></i>
Connect Wallet
</button>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="py-20">
<div class="container mx-auto px-4 text-center">
<h1 class="text-5xl font-bold mb-6" data-aos="fade-up">Launch Your <span class="gradient-text">Meme Coin</span> on Solana</h1>
<p class="text-xl text-gray-600 mb-10 max-w-2xl mx-auto" data-aos="fade-up" data-aos-delay="100">
Mintory is the easiest way to create and launch your own meme coin on Solana in minutes.
</p>
<div class="flex justify-center" data-aos="fade-up" data-aos-delay="200">
<button class="bg-green-500 hover:bg-green-600 px-6 py-3 rounded-lg font-medium text-white">
Create Token
</button>
</div>
</div>
</section>
<!-- Token Creation Form -->
<section class="py-16 bg-white backdrop-blur-lg rounded-none border-t border-b border-gray-200" data-aos="fade-up">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold mb-8 text-center">Create Your Token</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-gray-600 mb-2">Token Name</label>
<input type="text" class="w-full bg-white border border-gray-200 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="e.g. DogeCoin">
</div>
<div>
<label class="block text-gray-600 mb-2">Token Symbol</label>
<input type="text" class="w-full bg-white border border-gray-200 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="e.g. DOGE">
</div>
<div>
<label class="block text-gray-600 mb-2">Total Supply</label>
<input type="number" class="w-full bg-white border border-gray-200 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="e.g. 1000000">
</div>
<div>
<label class="block text-gray-600 mb-2">Decimals</label>
<input type="number" value="9" class="w-full bg-white border border-gray-200 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
<div class="md:col-span-2">
<label class="block text-gray-300 mb-2">Token Logo</label>
<div class="flex items-center justify-center w-full">
<label class="flex flex-col items-center justify-center w-full h-32 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-white hover:bg-gray-50">
<div class="flex flex-col items-center justify-center pt-5 pb-6">
<i data-feather="upload" class="w-8 h-8 mb-3 text-gray-400"></i>
<p class="mb-2 text-sm text-gray-400">Click to upload logo</p>
<p class="text-xs text-gray-500">PNG, JPG (max. 2MB)</p>
</div>
<input id="token-logo" type="file" class="hidden" accept="image/*" />
</label>
</div>
</div>
<div class="md:col-span-2">
<label class="block text-gray-300 mb-2">Token Banner</label>
<div class="flex items-center justify-center w-full">
<label class="flex flex-col items-center justify-center w-full h-32 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-white hover:bg-gray-50">
<div class="flex flex-col items-center justify-center pt-5 pb-6">
<i data-feather="image" class="w-8 h-8 mb-3 text-gray-400"></i>
<p class="mb-2 text-sm text-gray-400">Click to upload banner</p>
<p class="text-xs text-gray-500">PNG, JPG (max. 5MB)</p>
</div>
<input id="token-banner" type="file" class="hidden" accept="image/*" />
</label>
</div>
</div>
<div>
<label class="block text-gray-600 mb-2">Twitter URL</label>
<input type="text" class="w-full bg-white border border-gray-200 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="https://twitter.com/yourcoin">
</div>
<div>
<label class="block text-gray-600 mb-2">Telegram URL</label>
<input type="text" class="w-full bg-white border border-gray-200 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="https://t.me/yourcoin">
</div>
</div>
<div class="mt-8 text-center">
<button class="gradient-bg hover:opacity-90 px-8 py-3 rounded-lg font-medium text-white">
Mint Token (0.25 SOL)
</button>
</div>
</div>
</section>
<!-- DexScreener Widget -->
<section class="py-16 bg-white border-t border-b border-gray-200">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold mb-8 text-center">Live Market Data</h2>
<div class="bg-white rounded-none p-6 border border-gray-200">
<iframe
src="https://dexscreener.com/solana/?embed=1&theme=dark"
width="100%"
height="500"
frameborder="0"
class="rounded-lg"
title="DexScreener"
allowtransparency="true"
></iframe>
</div>
</div>
</section>
<script>
// DexScreener API integration
async function fetchTopMemeCoins() {
try {
const response = await fetch('https://api.dexscreener.com/latest/dex/tokens/solana');
const data = await response.json();
console.log('Top meme coins:', data);
// Process and display the data as needed
} catch (error) {
console.error('Error fetching DexScreener data:', error);
}
}
// Call the function when page loads
window.addEventListener('load', () => {
fetchTopMemeCoins();
// Initialize other components...
});
</script>
<!-- Features -->
<section class="py-20 bg-white border-t border-b border-gray-200">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold mb-16 text-center">Why Choose Mintory?</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="text-center" data-aos="fade-up">
<div class="gradient-bg p-4 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4">
<i data-feather="zap" class="text-white w-8 h-8"></i>
</div>
<h3 class="text-xl font-bold mb-2">Instant Launch</h3>
<p class="text-gray-600">Create and launch your token in minutes with just a few clicks.</p>
</div>
<div class="text-center" data-aos="fade-up" data-aos-delay="100">
<div class="gradient-bg p-4 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4">
<i data-feather="shield" class="text-white w-8 h-8"></i>
</div>
<h3 class="text-xl font-bold mb-2">Secure</h3>
<p class="text-gray-600">Built on Solana blockchain with audited smart contracts.</p>
</div>
<div class="text-center" data-aos="fade-up" data-aos-delay="200">
<div class="gradient-bg p-4 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4">
<i data-feather="trending-up" class="text-white w-8 h-8"></i>
</div>
<h3 class="text-xl font-bold mb-2">Liquidity</h3>
<p class="text-gray-600">Automatic liquidity pool creation for seamless trading.</p>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="py-10 border-t border-b border-gray-200 bg-white">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center space-x-2 mb-4 md:mb-0">
<i data-feather="zap" class="text-green-500"></i>
<h1 class="text-xl font-bold">Mintory</h1>
</div>
<div class="flex space-x-6">
<a href="https://twitter.com/mintory" target="_blank" class="hover:text-green-600 transition flex items-center">
<i data-feather="twitter" class="w-5 h-5 mr-1"></i> Twitter
</a>
<a href="https://t.me/mintory" target="_blank" class="hover:text-green-600 transition flex items-center">
<i data-feather="send" class="w-5 h-5 mr-1"></i> Telegram
</a>
</div>
</div>
<div class="mt-8 text-center text-gray-400 text-sm">
© 2025 Mintory. All rights reserved.
</div>
</div>
</footer>
<script>
// Image preview handlers
document.getElementById('token-logo').addEventListener('change', function(e) {
const file = e.target.files[0];
if (file) {
const reader = new FileReader();
reader.onload = function(event) {
// You can store the base64 image or process it further
console.log('Logo uploaded:', event.target.result);
};
reader.readAsDataURL(file);
}
});
document.getElementById('token-banner').addEventListener('change', function(e) {
const file = e.target.files[0];
if (file) {
const reader = new FileReader();
reader.onload = function(event) {
// You can store the base64 image or process it further
console.log('Banner uploaded:', event.target.result);
};
reader.readAsDataURL(file);
}
});
// Initialize animations
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
// Initialize feather icons
feather.replace();
// Wallet connection
document.getElementById('connectWallet').addEventListener('click', async () => {
try {
if (window.solana && window.solana.isPhantom) {
const response = await window.solana.connect();
const publicKey = response.publicKey.toString();
console.log('Connected to Phantom wallet:', publicKey);
document.getElementById('connectWallet').innerHTML = `<i data-feather="user" class="mr-2"></i>${publicKey.slice(0, 4)}...${publicKey.slice(-4)}`;
feather.replace();
} else {
window.open('https://phantom.app/', '_blank');
}
} catch (err) {
console.error('Error connecting wallet:', err);
}
});
// Vanta.js background
VANTA.GLOBE({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x4caf50,
backgroundColor: 0xffffff,
size: 0.8
});
</script>
</body>
</html>