DeepTaj's picture
Создай сайт про язык питон с именнем TV Small Company
1934f44 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pythonic TV | Small Wonders</title>
<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.globe.min.js"></script>
<style>
.hero-bg {
background: linear-gradient(135deg, #3776ab 0%, #ffde57 100%);
}
.code-block {
font-family: 'Courier New', monospace;
background-color: #2d2d2d;
color: #f8f8f2;
border-radius: 0.5rem;
}
.python-yellow {
color: #ffde57;
}
.python-blue {
color: #3776ab;
}
</style>
</head>
<body class="bg-gray-100">
<!-- Navigation -->
<nav class="bg-white shadow-lg">
<div class="max-w-6xl mx-auto px-4">
<div class="flex justify-between">
<div class="flex space-x-7">
<div>
<a href="#" class="flex items-center py-4 px-2">
<span class="font-semibold text-gray-500 text-lg">TV Small</span>
<span class="python-blue font-bold text-lg ml-1">Python</span>
<span class="font-semibold text-gray-500 text-lg">1</span>
</a>
</div>
</div>
<div class="hidden md:flex items-center space-x-3">
<a href="#" class="py-4 px-2 text-gray-500 border-b-4 border-blue-500 font-semibold">Home</a>
<a href="#" class="py-4 px-2 text-gray-500 hover:text-blue-500 transition duration-300">Tutorials</a>
<a href="#" class="py-4 px-2 text-gray-500 hover:text-blue-500 transition duration-300">Projects</a>
<a href="#" class="py-4 px-2 text-gray-500 hover:text-blue-500 transition duration-300">About</a>
</div>
<div class="md:hidden flex items-center">
<button class="outline-none mobile-menu-button">
<i data-feather="menu"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<div id="hero" class="hero-bg py-20">
<div class="container mx-auto px-6">
<div class="flex flex-col md:flex-row items-center">
<div class="md:w-1/2 mb-10 md:mb-0">
<h1 class="text-4xl md:text-5xl font-bold text-white mb-4">
Learn <span class="python-yellow">Python</span> the <span class="underline">Fun</span> Way
</h1>
<p class="text-xl text-white mb-8">
Small bites of Python wisdom from TV Small Company 1.
Perfect for beginners and pros alike!
</p>
<button class="bg-white text-blue-500 hover:bg-gray-100 px-6 py-3 rounded-full font-bold uppercase tracking-wider">
Start Learning
</button>
</div>
<div class="md:w-1/2">
<div class="code-block p-6">
<pre class="text-sm md:text-base">
<span class="python-blue">def</span> <span class="text-green-400">main</span>():
<span class="python-blue">print</span>(<span class="text-yellow-300">"Hello Pythonic World!"</span>)
<span class="text-gray-500"># Run the program</span>
<span class="text-purple-400">if</span> __name__ == <span class="text-yellow-300">"__main__"</span>:
main()</pre>
</div>
</div>
</div>
</div>
</div>
<!-- Features Section -->
<section class="py-16 bg-white">
<div class="container mx-auto px-6">
<h2 class="text-3xl font-bold text-center text-gray-800 mb-8">
Why Learn With Us?
</h2>
<div class="flex flex-col md:flex-row">
<div class="flex-1 px-4 py-6 text-center">
<div class="w-20 h-20 mx-auto bg-blue-100 rounded-full flex items-center justify-center mb-4">
<i data-feather="code" class="python-blue w-10 h-10"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800 mb-2">Practical Examples</h3>
<p class="text-gray-600">
Real-world code snippets that you can use immediately in your projects.
</p>
</div>
<div class="flex-1 px-4 py-6 text-center">
<div class="w-20 h-20 mx-auto bg-yellow-100 rounded-full flex items-center justify-center mb-4">
<i data-feather="tv" class="python-yellow w-10 h-10"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800 mb-2">TV-Style Learning</h3>
<p class="text-gray-600">
Bite-sized lessons designed like your favorite TV show episodes.
</p>
</div>
<div class="flex-1 px-4 py-6 text-center">
<div class="w-20 h-20 mx-auto bg-green-100 rounded-full flex items-center justify-center mb-4">
<i data-feather="zap" class="text-green-500 w-10 h-10"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800 mb-2">Quick & Effective</h3>
<p class="text-gray-600">
Learn Python concepts fast with our focused, no-fluff approach.
</p>
</div>
</div>
</div>
</section>
<!-- Python Basics Section -->
<section class="py-16 bg-gray-100">
<div class="container mx-auto px-6">
<h2 class="text-3xl font-bold text-center text-gray-800 mb-12">
Python Basics
</h2>
<div class="flex flex-wrap -mx-4">
<div class="w-full md:w-1/3 px-4 mb-8">
<div class="bg-white rounded-lg overflow-hidden shadow-lg">
<div class="bg-blue-500 py-3 px-4">
<h3 class="text-white font-semibold">Variables</h3>
</div>
<div class="p-4">
<div class="code-block p-4 mb-4">
<pre class="text-sm">
<span class="text-gray-500"># Simple variable assignment</span>
name = <span class="text-yellow-300">"Python"</span>
version = <span class="text-purple-400">3.9</span>
is_awesome = <span class="python-blue">True</span></pre>
</div>
<button class="text-blue-500 hover:text-blue-700 text-sm font-semibold">
Learn More →
</button>
</div>
</div>
</div>
<div class="w-full md:w-1/3 px-4 mb-8">
<div class="bg-white rounded-lg overflow-hidden shadow-lg">
<div class="bg-yellow-500 py-3 px-4">
<h3 class="text-white font-semibold">Functions</h3>
</div>
<div class="p-4">
<div class="code-block p-4 mb-4">
<pre class="text-sm">
<span class="python-blue">def</span> <span class="text-green-400">greet</span>(name):
<span class="python-blue">return</span> <span class="text-yellow-300">f"Hello, {name}!"</span>
<span class="text-gray-500"># Function call</span>
message = greet(<span class="text-yellow-300">"TV Small Viewer"</span>)</pre>
</div>
<button class="text-blue-500 hover:text-blue-700 text-sm font-semibold">
Learn More →
</button>
</div>
</div>
</div>
<div class="w-full md:w-1/3 px-4 mb-8">
<div class="bg-white rounded-lg overflow-hidden shadow-lg">
<div class="bg-green-500 py-3 px-4">
<h3 class="text-white font-semibold">Loops</h3>
</div>
<div class="p-4">
<div class="code-block p-4 mb-4">
<pre class="text-sm">
<span class="text-gray-500"># For loop example</span>
<span class="python-blue">for</span> i <span class="python-blue">in</span> <span class="text-purple-400">range</span>(<span class="text-purple-400">5</span>):
<span class="python-blue">print</span>(i) <span class="text-gray-500"># Prints 0 to 4</span></pre>
</div>
<button class="text-blue-500 hover:text-blue-700 text-sm font-semibold">
Learn More →
</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Newsletter Section -->
<section class="py-16 bg-blue-600 text-white">
<div class="container mx-auto px-6 text-center">
<h2 class="text-3xl font-bold mb-6">Get Python Tips Weekly</h2>
<p class="text-xl mb-8 max-w-2xl mx-auto">
Join our newsletter and receive small, digestible Python lessons straight to your inbox.
</p>
<div class="max-w-md mx-auto flex">
<input type="email" placeholder="Your email address" class="flex-1 px-4 py-3 rounded-l-lg focus:outline-none text-gray-800">
<button class="bg-yellow-500 hover:bg-yellow-600 text-blue-800 font-bold px-6 py-3 rounded-r-lg">
Subscribe
</button>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-12">
<div class="container mx-auto px-6">
<div class="flex flex-col md:flex-row justify-between">
<div class="mb-8 md:mb-0">
<h3 class="text-xl font-bold mb-4">TV Small Python 1</h3>
<p class="text-gray-400 max-w-xs">
Making Python learning fun, accessible, and TV-style entertaining since 2023.
</p>
</div>
<div class="grid grid-cols-2 md:grid-cols-3 gap-8">
<div>
<h4 class="font-semibold mb-4">Learn</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Basics</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Intermediate</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Advanced</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Resources</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Cheatsheets</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">Community</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold 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">Contact</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Careers</a></li>
</ul>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
<p class="text-gray-400 mb-4 md:mb-0">
© 2023 TV Small Python 1. All rights reserved.
</p>
<div class="flex space-x-6">
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="github"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="youtube"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="linkedin"></i>
</a>
</div>
</div>
</div>
</footer>
<script>
// Initialize Vanta.js globe
VANTA.GLOBE({
el: "#hero",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x3776ab,
backgroundColor: 0x0,
size: 0.8
});
// Mobile menu toggle
const btn = document.querySelector('.mobile-menu-button');
const menu = document.querySelector('.mobile-menu');
btn.addEventListener('click', () => {
menu.classList.toggle('hidden');
});
// Initialize feather icons
feather.replace();
</script>
</body>
</html>