vue3实现移动端阅读书籍小说类app的ui原型图代码
代码语言:html
所属分类:其他
代码描述:vue3实现移动端阅读书籍小说类app的ui原型图代码
代码标签: vue 移动端 阅读 书籍 小说 app ui 原型图 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vue3 小说阅读App</title>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue3.2.22.js"></script>
<style>
:root {
--primary-color: #5d4037;
--bg-color: #f5f5f5;
--surface-color: #ffffff;
--text-color: #333;
--text-secondary-color: #757575;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; background-color: var(--bg-color); color: var(--text-color); font-size: 16px; }
#app { max-width: 480px; margin: 0 auto; background-color: var(--surface-color); min-height: 100vh; position: relative; padding-bottom: 60px; box-sizing: border-box; }
.page-container { padding: 15px; }
.icon { width: 1.5em; height: 1.5em; fill: currentColor; }
/* Bottom Nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; height: 55px; background-color: var(--surface-color); border-top: 1px solid #eee; display: flex; justify-content: space-around; align-items: center; z-index: 100; }
.nav-item { cursor: pointer; text-align: center; color: var(--text-secondary-color); display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; padding: 5px 0; }
.nav-item .icon { font-size: 20px; }
.nav-item.active { color: var(--primary-color); }
.nav-item span { font-size: 10px; margin-top: 2px; }
/* Bookshelf Page */
.bookshelf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.book-card { position: relative; cursor: pointer; }
.book-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.book-card .title { font-size: 14px; margin-top: 5px; text-align: center; }
.progress-bar { position: absolute; bottom: 30px; left: 5%; right: 5%; height: 5px; background: rgba(255,255,255,0.5); border-radius: 3px; }
.progress-bar-inner { height: 100%; background: var(--primary-color); border-radius: 3px; }
/* 新增:书架空状态样式 */
.bookshelf-empty { text-align: center; padding: 80px 20px; color: var(--text-secondary-color); }
.bookshelf-empty h3 { color: var(--text-color); }
.bookshelf-empty .action-btn { display: inline-block; margin-top: 20px; padding: 10px 25px; background-color: var(--primary-color); color: white; border-radius: 20px; text-decoration: none; font-size: 16px; cursor: pointer; border:.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0