codeplayground-pro / index.html
BoratBakar's picture
Design https://onlinegdb.com
09f03c7 verified
Raw
History Blame Contribute Delete
10.1 kB
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CodePlayground Pro - Online IDE</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></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/vanta@latest/dist/vanta.net.min.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
lime: {
500: '#84cc16',
},
teal: {
500: '#14b8a6',
}
}
}
}
}
</script>
<style>
.code-editor {
font-family: 'Courier New', monospace;
}
.vanta-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
</style>
</head>
<body class="bg-gray-900 text-white min-h-screen">
<div id="vanta-bg" class="vanta-bg"></div>
<!-- Navigation -->
<nav class="bg-gray-800/80 backdrop-blur-lg border-b border-teal-500/20 sticky top-0 z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center">
<i data-feather="code" class="h-8 w-8 text-lime-500"></i>
<span class="ml-2 text-xl font-bold">CodePlayground Pro</span>
</div>
</div>
<div class="flex items-center space-x-4">
<button class="bg-lime-500 hover:bg-lime-600 text-gray-900 px-4 py-2 rounded-lg font-medium transition duration-200">
<i data-feather="play" class="w-4 h-4 inline mr-2"></i>
Run Code
</button>
<button class="bg-teal-500 hover:bg-teal-600 text-white px-4 py-2 rounded-lg font-medium transition duration-200">
<i data-feather="save" class="w-4 h-4 inline mr-2"></i>
Save
</button>
<button class="text-gray-300 hover:text-white">
<i data-feather="user" class="w-6 h-6"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Sidebar -->
<div class="lg:col-span-1 space-y-6">
<!-- File Explorer -->
<div class="bg-gray-800/50 backdrop-blur-lg rounded-xl p-4 border border-teal-500/20">
<h3 class="text-lg font-semibold mb-4 text-lime-500">
<i data-feather="folder" class="w-5 h-5 inline mr-2"></i>
Files
</h3>
<div class="space-y-2">
<div class="flex items-center text-gray-300 hover:text-white cursor-pointer">
<i data-feather="file-text" class="w-4 h-4 mr-2"></i>
main.cpp
</div>
<div class="flex items-center text-gray-300 hover:text-white cursor-pointer">
<i data-feather="file-text" class="w-4 h-4 mr-2"></i>
index.html
</div>
<div class="flex items-center text-gray-300 hover:text-white cursor-pointer">
<i data-feather="file-text" class="w-4 h-4 mr-2"></i>
style.css
</div>
</div>
</div>
<!-- Language Selector -->
<div class="bg-gray-800/50 backdrop-blur-lg rounded-xl p-4 border border-teal-500/20">
<h3 class="text-lg font-semibold mb-4 text-lime-500">
<i data-feather="cpu" class="w-5 h-5 inline mr-2"></i>
Language
</h3>
<select class="w-full bg-gray-700 border border-teal-500/30 rounded-lg px-3 py-2 text-white">
<option>C++</option>
<option>Python</option>
<option>JavaScript</option>
<option>Java</option>
<option>HTML</option>
</select>
</div>
<!-- Recent Projects -->
<div class="bg-gray-800/50 backdrop-blur-lg rounded-xl p-4 border border-teal-500/20">
<h3 class="text-lg font-semibold mb-4 text-lime-500">
<i data-feather="clock" class="w-5 h-5 inline mr-2"></i>
Recent Projects
</h3>
<div class="space-y-2">
<div class="text-gray-300 hover:text-white cursor-pointer truncate">Algorithm Challenges</div>
<div class="text-gray-300 hover:text-white cursor-pointer truncate">Web Development</div>
<div class="text-gray-300 hover:text-white cursor-pointer truncate">Data Structures</div>
</div>
</div>
</div>
<!-- Code Editor -->
<div class="lg:col-span-2">
<div class="bg-gray-800/50 backdrop-blur-lg rounded-xl border border-teal-500/20 overflow-hidden">
<div class="bg-gray-700 px-4 py-2 border-b border-teal-500/30 flex justify-between items-center">
<span class="text-sm font-medium text-lime-500">
<i data-feather="file-text" class="w-4 h-4 inline mr-2"></i>
main.cpp
</span>
<div class="flex space-x-2">
<button class="text-gray-400 hover:text-white">
<i data-feather="copy" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-white">
<i data-feather="settings" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="p-4">
<textarea class="w-full h-96 bg-gray-900 text-white p-4 rounded-lg code-editor resize-none focus:outline-none focus:ring-2 focus:ring-teal-500"
placeholder="// Start coding here...">
#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}
</textarea>
</div>
</div>
<!-- Output Panel -->
<div class="mt-6 bg-gray-800/50 backdrop-blur-lg rounded-xl border border-teal-500/20 overflow-hidden">
<div class="bg-gray-700 px-4 py-2 border-b border-teal-500/30">
<span class="text-sm font-medium text-lime-500">
<i data-feather="terminal" class="w-4 h-4 inline mr-2"></i>
Output
</span>
</div>
<div class="p-4">
<div class="bg-gray-900 rounded-lg p-4 min-h-32 text-green-400 font-mono text-sm">
> Program compiled successfully!
> Hello, World!
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800/80 backdrop-blur-lg border-t border-teal-500/20 mt-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center mb-4 md:mb-0">
<i data-feather="code" class="h-6 w-6 text-lime-500"></i>
<span class="ml-2 text-lg font-semibold">CodePlayground Pro</span>
</div>
<div class="flex space-x-6 text-gray-400">
<a href="#" class="hover:text-lime-500">About</a>
<a href="#" class="hover:text-lime-500">Docs</a>
<a href="#" class="hover:text-lime-500">Privacy</a>
<a href="#" class="hover:text-lime-500">Terms</a>
</div>
</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: 0x14b8a6,
backgroundColor: 0x111827,
points: 12.00,
maxDistance: 25.00
});
// Initialize Feather Icons
feather.replace();
// Dark mode toggle (for future use)
document.addEventListener('DOMContentLoaded', function() {
const darkModeToggle = document.getElementById('dark-mode-toggle');
if (darkModeToggle) {
darkModeToggle.addEventListener('click', function() {
document.documentElement.classList.toggle('dark');
});
}
});
</script>
</body>
</html>