-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlearn.html
More file actions
153 lines (145 loc) · 7.1 KB
/
learn.html
File metadata and controls
153 lines (145 loc) · 7.1 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
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>学习中心 - 设计模式学习平台</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body class="bg-gradient-to-br from-blue-50 via-purple-50 to-pink-50 min-h-screen">
<!-- 主容器 -->
<div class="container mx-auto max-w-md bg-white min-h-screen rounded-t-3xl shadow-lg">
<!-- 导航栏 -->
<nav class="bg-white p-4 border-b">
<div class="flex items-center">
<a href="index.html" class="text-gray-600 mr-4">
<i class="fas fa-arrow-left"></i>
</a>
<h1 class="text-xl font-bold text-gray-800">学习中心</h1>
</div>
</nav>
<!-- 内容区域 -->
<div class="p-4">
<!-- 学习统计 -->
<div class="grid grid-cols-3 gap-4 mb-6">
<div class="bg-blue-50 rounded-lg p-4 text-center">
<div class="text-2xl font-bold text-blue-600">12</div>
<div class="text-sm text-gray-600">已学习</div>
</div>
<div class="bg-green-50 rounded-lg p-4 text-center">
<div class="text-2xl font-bold text-green-600">8</div>
<div class="text-sm text-gray-600">收藏夹</div>
</div>
<div class="bg-purple-50 rounded-lg p-4 text-center">
<div class="text-2xl font-bold text-purple-600">4</div>
<div class="text-sm text-gray-600">待学习</div>
</div>
</div>
<!-- 最近学习 -->
<div class="mb-6">
<h2 class="text-lg font-bold text-gray-800 mb-4">最近学习</h2>
<div class="space-y-3">
<div class="bg-white rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow">
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium text-gray-800">工厂模式</h3>
<p class="text-sm text-gray-500">上次学习: 2024-03-18</p>
</div>
<div class="text-blue-600">
<i class="fas fa-chevron-right"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow">
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium text-gray-800">单例模式</h3>
<p class="text-sm text-gray-500">上次学习: 2024-03-17</p>
</div>
<div class="text-blue-600">
<i class="fas fa-chevron-right"></i>
</div>
</div>
</div>
</div>
</div>
<!-- 收藏夹 -->
<div class="mb-6">
<h2 class="text-lg font-bold text-gray-800 mb-4">我的收藏</h2>
<div class="space-y-3">
<div class="bg-white rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow">
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium text-gray-800">观察者模式</h3>
<p class="text-sm text-gray-500">收藏时间: 2024-03-16</p>
</div>
<div class="text-yellow-600">
<i class="fas fa-star"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow">
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium text-gray-800">策略模式</h3>
<p class="text-sm text-gray-500">收藏时间: 2024-03-15</p>
</div>
<div class="text-yellow-600">
<i class="fas fa-star"></i>
</div>
</div>
</div>
</div>
</div>
<!-- 学习计划 -->
<div>
<h2 class="text-lg font-bold text-gray-800 mb-4">学习计划</h2>
<div class="space-y-3">
<div class="bg-white rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow">
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium text-gray-800">本周目标</h3>
<p class="text-sm text-gray-500">计划学习3个设计模式</p>
</div>
<div class="text-green-600">
<i class="fas fa-check-circle"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow">
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium text-gray-800">月度目标</h3>
<p class="text-sm text-gray-500">完成所有创建型模式</p>
</div>
<div class="text-blue-600">
<i class="fas fa-calendar"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 底部导航栏 -->
<div class="fixed bottom-0 w-full max-w-md bg-white border-t">
<div class="flex justify-around p-4">
<a href="index.html" class="text-gray-600">
<i class="fas fa-home"></i>
<span class="text-xs">首页</span>
</a>
<a href="learn.html" class="text-blue-600">
<i class="fas fa-book"></i>
<span class="text-xs">学习</span>
</a>
<a href="profile.html" class="text-gray-600">
<i class="fas fa-user"></i>
<span class="text-xs">我的</span>
</a>
</div>
</div>
</div>
<script src="js/main.js"></script>
</body>
</html>