Spaces:
Running
Running
File size: 8,736 Bytes
0bccacc a086362 | 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 | <!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"><!-- Start coding here --></div>
<div class="text-blue-300 mb-2"><!DOCTYPE html></div>
<div class="text-blue-300"><html></div>
<div class="ml-4 text-blue-300"><head></div>
<div class="ml-8 text-blue-300"><title><span class="text-white">My Awesome Project</span></title></div>
<div class="ml-4 text-blue-300"></head></div>
<div class="ml-4 text-blue-300"><body></div>
<div class="ml-8 text-yellow-300"><h1><span class="text-green-300">Hello World!</span></h1></div>
<div class="ml-8 text-purple-300"><script src="<span class="text-green-300">app.js</span>"></script></div>
<div class="ml-4 text-blue-300"></body></div>
<div class="text-blue-300"></html></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>
|