这个IT教育App将包含以下核心功能:
课程浏览与学习
编程练习环境
学习进度跟踪
社区交流功能
html
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>CodeLearn - IT教育平台</title> <style> :root { --primary-color: #3498db; --secondary-color: #2c3e50; --accent-color: #e74c3c; --light-color: #ecf0f1; --dark-color: #34495e; --success-color: #2ecc71; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background-color: #f5f7fa; color: #333; line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* 导航栏样式 */ header { background-color: white; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 100; } .navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; } .logo { display: flex; align-items: center; font-size: 1.5rem; font-weight: bold; color: var(--primary-color); } .logo i { margin-right: 10px; font-size: 1.8rem; } .nav-links { display: flex; list-style: none; } .nav-links li { margin-left: 25px; } .nav-links a { text-decoration: none; color: var(--dark-color); font-weight: 500; transition: color 0.3s; } .nav-links a:hover { color: var(--primary-color); } .user-actions { display: flex; align-items: center; } .btn { padding: 8px 16px; border-radius: 4px; border: none; cursor: pointer; font-weight: 500; transition: all 0.3s; } .btn-primary { background-color: var(--primary-color); color: white; } .btn-outline { background-color: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); margin-right: 10px; } /* 主要内容区域 */ .hero { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; padding: 80px 0; text-align: center; } .hero h1 { font-size: 2.5rem; margin-bottom: 20px; } .hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; } .search-box { max-width: 600px; margin: 0 auto; display: flex; } .search-box input { flex: 1; padding: 15px; border: none; border-radius: 4px 0 0 4px; font-size: 1rem; } .search-box button { background-color: var(--accent-color); color: white; border: none; padding: 0 25px; border-radius: 0 4px 4px 0; cursor: pointer; } /* 课程卡片样式 */ .section-title { text-align: center; margin: 60px 0 30px; color: var(--secondary-color); } .courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; margin-bottom: 60px; } .course-card { background-color: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s, box-shadow 0.3s; } .course-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); } .course-image { height: 160px; background-color: var(--primary-color); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; } .course-content { padding: 20px; } .course-title { font-size: 1.2rem; margin-bottom: 10px; color: var(--secondary-color); } .course-info { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.9rem; color: #666; } .progress-bar { height: 6px; background-color: #e0e0e0; border-radius: 3px; margin-bottom: 15px; overflow: hidden; } .progress { height: 100%; background-color: var(--success-color); border-radius: 3px; } /* 代码编辑器样式 */ .code-editor { background-color: #1e1e1e; border-radius: 8px; overflow: hidden; margin-bottom: 60px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); } .editor-header { background-color: #2d2d2d; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; color: #ccc; } .editor-actions button { background: none; border: none; color: #ccc; margin-left: 10px; cursor: pointer; } .editor-content { padding: 15px; font-family: 'Courier New', monospace; color: #d4d4d4; min-height: 300px; white-space: pre-wrap; } /* 底部样式 */ footer { background-color: var(--secondary-color); color: white; padding: 50px 0 20px; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 40px; } .footer-column h3 { margin-bottom: 20px; font-size: 1.2rem; } .footer-column ul { list-style: none; } .footer-column ul li { margin-bottom: 10px; } .footer-column a { color: #bdc3c7; text-decoration: none; transition: color 0.3s; } .footer-column a:hover { color: white; } .copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #bdc3c7; font-size: 0.9rem; } /* 响应式设计 */ @media (max-width: 768px) { .nav-links { display: none; } .hero h1 { font-size: 2rem; } .courses-grid { grid-template-columns: 1fr; } } </style> </head> <body> <!-- 导航栏 --> <header> <div class="container"> <nav class="navbar"> <div class="logo"> <i>