Spaces:
Running
Running
File size: 10,107 Bytes
09f03c7 0eab267 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 | <!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>
|