File size: 14,174 Bytes
1934f44 c07e4d8 | 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 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 | <!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>
|