vue3实现一个移动端天气预报app微网站ui原型图h5代码
代码语言:html
所属分类:其他
代码描述:vue3实现一个移动端天气预报app微网站ui原型图h5代码
代码标签: vue 移动端 天气 预报 app 微网站 ui 原型图 h5 代码
下面为部分代码预览,完整代码请点击下载或在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 { --text-color: #ffffff; --card-bg-color: rgba(255, 255, 255, 0.15); --border-color: rgba(255, 255, 255, 0.3); } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; color: var(--text-color); font-size: 14px; } #app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; background-image: url('//repo.bfw.wiki/bfwrepo/image/637acab5b5b94.png'); background-size: cover; background-position: center; overflow: hidden; } .page-container { padding: 20px; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); height: 100vh; box-sizing: border-box; overflow-y: auto; } .icon { width: 1em; height: 1em; fill: currentColor; } .card { background: var(--card-bg-color); border: 1px solid var(--border-color); border-radius: 16px; padding: 15px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-bottom: 20px; } /* Home Page */ .home-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .city-name { font-size: 24px; font-weight: bold; } .manage-btn { font-size: 24px; cursor: pointer; } .current-weather { text-align: center; margin-bottom: 30px; } .current-temp { font-size: 80px; font-weight: 200; line-height: 1; } .current-desc { font-size: 20px; letter-spacing: 2px; } .current-details { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; } .detail-item .value { font-size: 16px; font-weight: bold; } .detail-item .label { font-size: 12px; opacity: 0.8; } .section-title { font-size: 16px; font-weight: bold; margin-bottom: 10px; } .hourly-forecast { display: flex; overflow-x: auto; gap: 15px; padding-bottom: 10px; } /* Hide scrollbar */ .hourly-forecast::-webkit-scrollbar { display: none; } .hourly-forecast { -ms-overflow-style: none; scrollbar-width: none; } .hour-item { text-align: center; flex-shrink: 0; } .hour-item .icon { font-size: 28px; } .hour-item .temp { font-weight: bold; } .daily-forecast .day-item { display: flex; justify-content: space-bet.........完整代码请登录后点击上方下载按钮下载查看
网友评论0