vue实现手机端移动端番茄时钟时间管理闹钟代码
代码语言:html
所属分类:其他
代码描述:vue实现手机端移动端番茄时钟时间管理闹钟代码
代码标签: vue 手机端 移动端 番茄 时钟 时间 管理 闹钟 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>番茄时钟</title>
<!-- 引入Vue2 CDN -->
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue@2.6.1-dev.js"></script>
<!-- 引入字体图标 -->
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/materialdesignicons.5.8.55.css">
<style>
:root {
--primary-color: #ff6b6b;
--secondary-color: #4ecdc4;
--dark-color: #292f36;
--light-color: #f7fff7;
--gray-color: #6c757d;
--success-color: #6bde84;
--warning-color: #ffbe0b;
--font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
body {
font-family: var(--font-family);
background-color: var(--light-color);
color: var(--dark-color);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
}
.app-container {
max-width: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
padding: 20px;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.header h1 {
font-size: 1.8rem;
color: var(--primary-color);
margin-bottom: 5px;
font-weight: 600;
}
.header p {
color: var(--gray-color);
font-size: 0.9rem;
}
.timer-container {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 30px;
}
.timer-display {
position: relative;
width: 250px;
height: 250px;
margin: 20px 0;
}
.timer-circle {
width: 100%;
height: 100%;
border-radius: 50%;
background: conic-gradient(var(--primary-color) 0%, #f0f0f0 0%);
display: flex;
justify-content: center;
align-items: center;
position: relative;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
transition: background 0.3s;
}
.timer-circle::before {
content: "";
position: absolute;
width: 85%;
height: 85%;
background-color: white;
border-radius: 50%;
z-index: 1;
}
.timer-time {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 2.5rem;
font-weight: bold;
z-index: 2;
color: var(--dark-color);
}
.timer-mode {
font-size: 1.2rem;
margin-bottom: 10px;
color: var(--primary-color);
font-weight: 600;
text-align: center;
}
.timer-controls {
display: flex;
gap: 15px;
margin-top: 20px;
justify-content: center;
}
.btn {
padding: 12px 24px;
border: none;
border-radius: 50px;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
transition: all 0.3s ea.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0