codeplayground-live / index.html
Jayreddin89's picture
Redesign my website
0bccacc verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CodePlayground Live - Online Code Editor</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<style>
.editor-container {
height: calc(100vh - 120px);
}
.code-mirror {
height: 100%;
}
#vanta-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.2;
}
</style>
</head>
<body class="bg-gray-900 text-gray-100">
<div id="vanta-bg"></div>
<!-- Header -->
<header class="bg-gray-800 shadow-lg">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="code" class="text-red-500"></i>
<h1 class="text-2xl font-bold text-red-500">CodePlayground<span class="text-white">Live</span></h1>
</div>
<nav>
<ul class="flex space-x-6">
<li><a href="#" class="hover:text-red-400 transition">Features</a></li>
<li><a href="#" class="hover:text-red-400 transition">Templates</a></li>
<li><a href="#" class="hover:text-red-400 transition">Docs</a></li>
<li><a href="#" class="hover:text-red-400 transition">About</a></li>
</ul>
</nav>
<div class="flex items-center space-x-4">
<button class="px-4 py-2 bg-red-600 hover:bg-red-700 rounded-md transition">Sign In</button>
<button class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-md transition">Sign Up</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<!-- Hero Section -->
<section class="text-center mb-16">
<h2 class="text-4xl font-bold mb-4">The Ultimate Online Code Playground</h2>
<p class="text-xl text-gray-300 max-w-2xl mx-auto">
Write, run, and share code in HTML, CSS, JavaScript and more - right in your browser.
</p>
<div class="mt-8 flex justify-center space-x-4">
<button class="px-6 py-3 bg-red-600 hover:bg-red-700 rounded-md text-lg font-medium transition">
Start Coding Now
</button>
<button class="px-6 py-3 border border-gray-600 hover:bg-gray-800 rounded-md text-lg font-medium transition">
Explore Templates
</button>
</div>
</section>
<!-- Code Editor Demo -->
<section class="bg-gray-800 rounded-lg shadow-xl overflow-hidden">
<div class="flex items-center bg-gray-700 px-4 py-2">
<div class="flex space-x-2 mr-4">
<div class="w-3 h-3 rounded-full bg-red-500"></div>
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
<div class="w-3 h-3 rounded-full bg-green-500"></div>
</div>
<div class="flex-1 text-sm text-gray-400">
index.html
</div>
<button class="px-3 py-1 bg-red-600 rounded text-sm hover:bg-red-700 transition">
<i data-feather="play" class="w-4 h-4"></i> Run
</button>
</div>
<div class="editor-container">
<div class="code-mirror p-4 font-mono text-sm">
<div class="text-gray-400 mb-4">&lt;!-- Start coding here --&gt;</div>
<div class="text-blue-300 mb-2">&lt;!DOCTYPE html&gt;</div>
<div class="text-blue-300">&lt;html&gt;</div>
<div class="ml-4 text-blue-300">&lt;head&gt;</div>
<div class="ml-8 text-blue-300">&lt;title&gt;<span class="text-white">My Awesome Project</span>&lt;/title&gt;</div>
<div class="ml-4 text-blue-300">&lt;/head&gt;</div>
<div class="ml-4 text-blue-300">&lt;body&gt;</div>
<div class="ml-8 text-yellow-300">&lt;h1&gt;<span class="text-green-300">Hello World!</span>&lt;/h1&gt;</div>
<div class="ml-8 text-purple-300">&lt;script src="<span class="text-green-300">app.js</span>"&gt;&lt;/script&gt;</div>
<div class="ml-4 text-blue-300">&lt;/body&gt;</div>
<div class="text-blue-300">&lt;/html&gt;</div>
</div>
</div>
</section>
<!-- Features -->
<section class="mt-20">
<h2 class="text-3xl font-bold mb-12 text-center">Why Choose CodePlayground Live?</h2>
<div class="grid md:grid-cols-3 gap-8">
<div class="bg-gray-800 p-6 rounded-lg hover:shadow-lg transition">
<div class="w-12 h-12 bg-red-500 rounded-full flex items-center justify-center mb-4">
<i data-feather="zap" class="text-white"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Instant Setup</h3>
<p class="text-gray-300">No installations or configurations needed. Start coding immediately in your browser.</p>
</div>
<div class="bg-gray-800 p-6 rounded-lg hover:shadow-lg transition">
<div class="w-12 h-12 bg-red-500 rounded-full flex items-center justify-center mb-4">
<i data-feather="cpu" class="text-white"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Multi-Language</h3>
<p class="text-gray-300">Support for HTML, CSS, JavaScript, TypeScript, JSX, and more coming soon.</p>
</div>
<div class="bg-gray-800 p-6 rounded-lg hover:shadow-lg transition">
<div class="w-12 h-12 bg-red-500 rounded-full flex items-center justify-center mb-4">
<i data-feather="share-2" class="text-white"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Easy Sharing</h3>
<p class="text-gray-300">Share your projects with a single click. Collaborate in real-time.</p>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="bg-gray-800 mt-20 py-12">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-6 md:mb-0">
<div class="flex items-center space-x-2">
<i data-feather="code" class="text-red-500"></i>
<h2 class="text-xl font-bold text-red-500">CodePlayground<span class="text-white">Live</span></h2>
</div>
<p class="text-gray-400 mt-2">The playground for developers</p>
</div>
<div class="flex space-x-6">
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="github"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="linkedin"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="youtube"></i></a>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
<p>© 2023 CodePlayground Live. All rights reserved.</p>
</div>
</div>
</footer>
<script>
// Initialize Vanta.js background
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0xff3344,
backgroundColor: 0x111827
});
// Initialize Feather Icons
feather.replace();
</script>
</body>
</html>