Spaces:
Running

caca / index.html
Kakapoooooop's picture
- Initial Deployment
463b05a verified
Raw History Blame Contribute Delete
8.22 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CodePen Inspired UI</title>
<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>
<style>
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.code-editor {
background: #1e293b;
border-radius: 0.5rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.btn-primary {
background: #4f46e5;
transition: all 0.3s ease;
}
.btn-primary:hover {
background: #4338ca;
transform: translateY(-2px);
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<header class="gradient-bg text-white">
<div class="container mx-auto px-4 py-6">
<div class="flex justify-between items-center">
<a href="#" class="text-2xl font-bold flex items-center">
<i data-feather="codepen" class="mr-2"></i>
CodePen
</a>
<nav class="hidden md:flex space-x-6">
<a href="#" class="hover:text-gray-200">Explore</a>
<a href="#" class="hover:text-gray-200">Pens</a>
<a href="#" class="hover:text-gray-200">Projects</a>
<a href="#" class="hover:text-gray-200">Collections</a>
</nav>
<div class="flex items-center space-x-4">
<button class="btn-primary px-4 py-2 rounded-md font-medium">Sign Up</button>
<button class="bg-white text-indigo-600 px-4 py-2 rounded-md font-medium">Log In</button>
</div>
</div>
</div>
</header>
<main class="container mx-auto px-4 py-12">
<section class="text-center mb-16" data-aos="fade-up">
<h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-6">Create, Share, and Learn Code</h1>
<p class="text-xl text-gray-600 max-w-2xl mx-auto mb-8">
The best place to build, test, and discover front-end code.
</p>
<button class="btn-primary px-8 py-3 rounded-md font-medium text-lg">Start Coding</button>
</section>
<section class="mb-16">
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 items-center">
<div class="code-editor p-4" data-aos="fade-right">
<div class="flex space-x-2 mb-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>
<pre class="text-green-400 font-mono text-sm overflow-x-auto">
<span class="text-blue-400">function</span> <span class="text-yellow-400">helloWorld</span>() {
<span class="text-pink-400">return</span> <span class="text-green-300">"Hello CodePen!"</span>;
}</pre>
</div>
<div data-aos="fade-left">
<h2 class="text-3xl font-bold text-gray-800 mb-4">Your Code, Anywhere</h2>
<p class="text-gray-600 mb-6">
Write code in the browser and see the results instantly. Share your creations with the world.
</p>
<a href="#" class="text-indigo-600 font-medium flex items-center">
View Example Pen
<i data-feather="arrow-right" class="ml-2"></i>
</a>
</div>
</div>
</section>
<section class="text-center">
<h2 class="text-3xl font-bold text-gray-800 mb-8" data-aos="fade-up">Featured Pens</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-white rounded-lg shadow-md overflow-hidden" data-aos="zoom-in">
<img src="http://static.photos/technology/640x360/1" alt="Tech demo" class="w-full h-48 object-cover">
<div class="p-6">
<h3 class="font-bold text-xl mb-2">CSS Animation</h3>
<p class="text-gray-600 mb-4">Beautiful loading animation using pure CSS</p>
<a href="#" class="text-indigo-600 font-medium">View Pen</a>
</div>
</div>
<div class="bg-white rounded-lg shadow-md overflow-hidden" data-aos="zoom-in" data-aos-delay="100">
<img src="http://static.photos/minimal/640x360/2" alt="Minimal design" class="w-full h-48 object-cover">
<div class="p-6">
<h3 class="font-bold text-xl mb-2">Interactive Form</h3>
<p class="text-gray-600 mb-4">Modern form with validation and animations</p>
<a href="#" class="text-indigo-600 font-medium">View Pen</a>
</div>
</div>
<div class="bg-white rounded-lg shadow-md overflow-hidden" data-aos="zoom-in" data-aos-delay="200">
<img src="http://static.photos/abstract/640x360/3" alt="Abstract art" class="w-full h-48 object-cover">
<div class="p-6">
<h3 class="font-bold text-xl mb-2">3D Canvas</h3>
<p class="text-gray-600 mb-4">Three.js powered 3D visualization</p>
<a href="#" class="text-indigo-600 font-medium">View Pen</a>
</div>
</div>
</div>
</section>
</main>
<footer class="bg-gray-800 text-white py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4">CodePen</h3>
<p class="text-gray-400">The best place to build, test, and discover front-end code.</p>
</div>
<div>
<h4 class="font-bold mb-4">Community</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Pens</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Projects</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Collections</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">Company</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">About</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Careers</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Blog</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">Connect</h4>
<div class="flex space-x-4">
<a href="#"><i data-feather="twitter"></i></a>
<a href="#"><i data-feather="facebook"></i></a>
<a href="#"><i data-feather="instagram"></i></a>
<a href="#"><i data-feather="github"></i></a>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
<p>© 2023 CodePen Inspired UI. All rights reserved.</p>
</div>
</div>
</footer>
<script>
AOS.init({
duration: 800,
easing: 'ease-in-out'
});
feather.replace();
</script>
</body>
</html>