File size: 4,933 Bytes
fa881a6 | 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 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Stopwatch UI</title>
<style>
body { margin: 0; padding: 0; background: transparent; font-family: "Roboto", Arial, sans-serif; }
#render-target {
position: relative;
overflow: hidden;
width: 1080px;
height: 2400px;
background: #171316; /* deep dark background */
color: #EDE3E7;
}
/* Top bar title */
.title {
position: absolute;
left: 64px;
top: 140px;
font-size: 72px;
font-weight: 500;
letter-spacing: 0.5px;
color: #E9DDE2;
}
.ellipsis {
position: absolute;
right: 52px;
top: 160px;
width: 18px;
display: grid;
gap: 10px;
justify-items: center;
}
.ellipsis span {
width: 10px; height: 10px; border-radius: 50%;
background: #C9B9C2;
display: block;
}
/* Big stopwatch ring */
.ring {
position: absolute;
width: 880px;
height: 880px;
left: 100px; /* center horizontally: (1080-880)/2 */
top: 510px;
border-radius: 50%;
border: 28px solid #453A40; /* muted purple-grey */
box-sizing: border-box;
}
.digits {
position: absolute;
left: 0; top: 0; right: 0; bottom: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
pointer-events: none;
}
.digits .mm {
font-size: 200px;
line-height: 1;
font-weight: 500;
color: #F2E8ED;
}
.digits .ss {
margin-top: 18px;
font-size: 120px;
line-height: 1;
color: #F2E8ED;
}
/* Play button */
.play-btn {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 1580px;
width: 250px;
height: 250px;
border-radius: 50%;
background: #F6B0C7;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}
.play-btn svg {
width: 64px; height: 64px;
fill: #5B404E;
}
/* Bottom navigation */
.bottom-nav {
position: absolute;
left: 0; right: 0; bottom: 0;
height: 230px;
background: #2B2327;
display: flex;
align-items: center;
justify-content: space-around;
padding: 20px 24px 36px;
box-sizing: border-box;
}
.tab {
width: 180px;
text-align: center;
color: #D7CBD0;
font-size: 34px;
}
.icon-wrap {
width: 100px; height: 100px;
margin: 0 auto 18px;
display: flex; align-items: center; justify-content: center;
border-radius: 28px;
}
.tab .icon {
width: 72px; height: 72px;
}
.tab.active .icon-wrap {
background: #4A4046;
}
.tab.active { color: #F0E6EA; }
/* Gesture bar */
.gesture {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 22px;
width: 360px;
height: 12px;
background: #E8E1E4;
border-radius: 8px;
opacity: 0.95;
}
</style>
</head>
<body>
<div id="render-target">
<div class="title">Stopwatch</div>
<div class="ellipsis" aria-label="More options">
<span></span><span></span><span></span>
</div>
<div class="ring">
<div class="digits">
<div class="mm">00</div>
<div class="ss">00</div>
</div>
</div>
<div class="play-btn" aria-label="Start">
<svg viewBox="0 0 24 24">
<path d="M8 5v14l11-7-11-7z"></path>
</svg>
</div>
<div class="bottom-nav">
<div class="tab">
<div class="icon-wrap">
<svg class="icon" viewBox="0 0 24 24">
<path fill="#D7CBD0" d="M12 8a6 6 0 0 1 6 6v3H6v-3a6 6 0 0 1 6-6zm-5.2-2.9 1.6-1.2 1.2 1.6-1.6 1.2-1.2-1.6zm9.2.4 1.2-1.6 1.6 1.2-1.2 1.6-1.6-1.2zM12 6a8 8 0 0 0-8 8v5h16v-5a8 8 0 0 0-8-8z"/>
</svg>
</div>
<div>Alarm</div>
</div>
<div class="tab">
<div class="icon-wrap">
<svg class="icon" viewBox="0 0 24 24">
<path fill="#D7CBD0" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 11h5v-2h-4V6h-2v7z"/>
</svg>
</div>
<div>Clock</div>
</div>
<div class="tab">
<div class="icon-wrap">
<svg class="icon" viewBox="0 0 24 24">
<path fill="#D7CBD0" d="M6 2h12l-5 6h-2L6 2zm0 20h12l-5-6h-2l-5 6z"/>
</svg>
</div>
<div>Timer</div>
</div>
<div class="tab active">
<div class="icon-wrap">
<svg class="icon" viewBox="0 0 24 24">
<path fill="#F0E6EA" d="M15 1H9v2h6V1zM12 5a9 9 0 1 0 .002 18.002A9 9 0 0 0 12 5zm0 16a7 7 0 1 1 0-14 7 7 0 0 1 0 14zm1-11h-2v5l4 2 1-1.8-3-1.2V10z"/>
</svg>
</div>
<div>Stopwatch</div>
</div>
<div class="tab">
<div class="icon-wrap">
<svg class="icon" viewBox="0 0 24 24">
<path fill="#D7CBD0" d="M3 11h9a4 4 0 0 1 4 4v4H3v-8zm14 3h4v5h-4v-5zM3 9h8V7H3v2z"/>
</svg>
</div>
<div>Bedtime</div>
</div>
</div>
<div class="gesture"></div>
</div>
</body>
</html> |