-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex-clean.html
More file actions
87 lines (81 loc) · 3.83 KB
/
index-clean.html
File metadata and controls
87 lines (81 loc) · 3.83 KB
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Python交互式教程 - 干净版本</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
.hero-section {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
min-height: 100vh;
display: flex;
align-items: center;
}
</style>
</head>
<body>
<!-- 导航栏 -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">🐍 Python交互式教程</a>
<div class="navbar-nav ms-auto">
<a class="nav-link" href="chapters/chapter1.html">📚 教程</a>
<a class="nav-link" href="python-editor.html">⚡ 快速编程</a>
<a class="nav-link" href="./lite/lab/index.html" target="_blank">🚀 JupyterLite</a>
</div>
</div>
</nav>
<div class="hero-section">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h1 class="display-4 fw-bold mb-4">🐍 Python 交互式编程教程</h1>
<p class="lead mb-5">边学边练,在浏览器中直接运行代码,掌握Python编程精髓</p>
<div class="row justify-content-center">
<div class="col-md-8">
<div class="d-grid gap-3">
<!-- 教程按钮 -->
<a href="chapters/chapter1.html" class="btn btn-primary btn-lg">
📚 开始学习教程
</a>
<!-- 编程环境按钮 -->
<div class="row g-3">
<div class="col-md-6">
<a href="python-editor.html" class="btn btn-success btn-lg w-100">
⚡ 快速编程环境
</a>
<small class="text-light d-block mt-2">秒级启动,适合学习</small>
</div>
<div class="col-md-6">
<a href="./lite/lab/index.html" target="_blank" class="btn btn-outline-light btn-lg w-100">
🚀 完整JupyterLite
</a>
<small class="text-light d-block mt-2">功能完整,需要等待</small>
</div>
</div>
<!-- 测试按钮 -->
<button class="btn btn-warning btn-lg" onclick="testFunction()">
🧪 测试JavaScript功能
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script>
function testFunction() {
alert('JavaScript功能正常!');
console.log('测试函数被调用');
}
// 页面加载完成
document.addEventListener('DOMContentLoaded', function() {
console.log('页面加载完成');
});
</script>
</body>
</html>