react实现自适应带锁屏密码验证的电脑pad手机桌面布局效果代码
代码语言:html
所属分类:响应式
代码描述:react实现自适应带锁屏密码验证的电脑pad手机桌面布局效果代码,显示当前时间及天气温度,显示最近的餐馆与最新上映的电影。
代码标签: react 自适应 锁屏 密码 验证 电脑 pad 手机 桌面
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0"> <link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap" rel="stylesheet"> <style> /* -- */ @keyframes blink { from, 25%, to { opacity: 1; } 50% { opacity: 0; } } @keyframes spin { from { transform: rotate(0deg); } 50% { transform: rotate(720deg); } to { transform: rotate(1440deg); } } @keyframes bounce { from, 6.66%, 17.66%, 33.33% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); transform: translate3d(0, 0, 0); } 13.33%, 14.33% { animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); transform: translate3d(0, -30px, 0) scaleY(1.1); } 23.33% { animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); transform: translate3d(0, -15px, 0) scaleY(1.05); } 26.66% { transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); transform: translate3d(0, 0, 0) scaleY(0.95); } 30% { transform: translate3d(0, -4px, 0) scaleY(1.02); } } body { margin: 0px; overflow-x: hidden; padding: 0px; } body::-webkit-scrollbar-track { background-color: #1e1e1e; } body::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.2); border-radius: 100px; } body::-webkit-scrollbar { height: 4px; width: 4px; } body input, body h1, body h3, body a, body span { color: #5a5a5a; font-family: "Rubik", sans-serif; font-weight: 400; margin: 0px; padding: 0px; } .background-image { background-position: center; background-repeat: no-repeat; background-size: cover; } .clear-button { backdrop-filter: blur(3px); background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 100px; box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1); cursor: pointer; } .clear-button:hover { background-color: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); } #app { background-color: #1e1e1e; } #app.logged-out #app-info { margin-left: 40px; opacity: 1; transform: translateX(0%); } #app.logged-out #app-background { cursor: pointer; } #app.logged-out #sign-in-button-wrapper { opacity: 1; pointer-events: all; transform: translate(-50%, -40px); } #app.logging-in #app-background #app-background-image, #app.verifying-log-in #app-background #app-background-image, #app.log-in-error #app-background #app-background-image { filter: blur(8px); transform: scale(1.2); } #app.logging-in #app-pin-wrapper, #app.log-in-error #app-pin-wrapper { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); } #app.verifying-log-in #app-loading-icon { opacity: 1; transform: translate(-50%, -50%); } #app.log-in-error #app-pin-wrapper #app-pin .app-pin-digit { background-color: rgba(239, 83, 80, 0.05); border-color: rgba(239, 83, 80, 0.5); } #app.logged-in #app-menu { height: auto; overflow: initial; opacity: 1; pointer-events: all; transform: translateY(0%); } #app .scrollable-component { cursor: grab; overflow: auto; user-select: none; width: 100%; } #app .scrollable-component:active { cursor: grabbing; } #app .scrollable-component::-webkit-scrollbar { height: 0px; width: 0px; } #app #app-loading-icon { left: 50%; opacity: 0; pointer-events: none; position: absolute; top: 50%; transform: translate(-50%, 0%); transition: opacity 250ms, transform 250ms; z-index: 2; } #app #app-loading-icon i { animation: 2s spin ease-in-out infinite; color: white; font-size: 2em; } #app #app-background { height: 100%; left: 0px; overflow: hidden; position: fixed; top: 0px; width: 100%; z-index: 1; } #app #app-background #app-background-image { background-image: url("//repo.bfw.wiki/bfwrepo/image/629c651e48159.png"); height: 100%; transition: filter 250ms, transform 250ms; width: 100%; } #app #app-info { bottom: 0px; left: 0px; margin: 40px; margin-left: 0px; opacity: 0; position: absolute; transform: translateX(-100%); transition: margin 250ms, opacity 250ms, transform 250ms; z-index: 2; } #app .user-status-button { cursor: pointer; margin-top: 10px; outline: none; padding: 10px; width: 100px; } #app .user-status-button i { color: whitesmoke; font-size: 1.25em; } #app #sign-in-button-wrapper { bottom: 0px; left: 50%; opacity: 0; pointer-events: none; position: absolute; transform: translate(-50%, 40px); transition: opacity 250ms, transform 250ms; z-index: 2; } #app #sign-in-button-wrapper #sign-in-button:not(:hover) { animation: bounce 3s infinite; animation-delay: 3s; } #app .info { align-items: flex-end; display: flex; } #app .info .time { color: whitesmoke; font-size: 6em; height: 80px; line-height: 80px; text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1); } #app .info .weather { display: inline-flex; height: 20px; margin-bottom: 6px; margin-left: 20px; } #app .info .weather i, #app .info .weather span { align-items: center; display: inline-flex; } #app .info .weather i { color: #fdd835; font-size: 0.9em; } #app .info .weather span { color: white; } #app .info .weather .weather-type { height: 20px; } #app .info .weather .weather-temperature-value { font-size: 1.5em; height: 20px; margin-left: 5px; } #app .info .weather .weather-temperature-unit { align-items: flex-start; font-size: 0.8em; margin-left: 3px; } #app .reminder { display: flex; gap: 6px; margin-top: 10px; } #app .reminder i, #app .reminder div { display: inline-flex; } #app .reminder i { color: whitesmoke; font-size: 0.8em; height: 12px; line-height: 12px; } #app .reminder span { color: rgba(255, 255, 255, 0.8); font-size: 1.1em; } #app .reminder .reminder-icon { align-items: center; height: 20px; } #app .reminder .reminder-time { align-items: flex-end; color: #1e1e1e; font-size: 0.8em; height: 20px; } #app #quick-nav { display: flex; gap: 10px; margin-top: 20px; overflow: auto; padding-bottom: 5px; width: 100%; z-index: 3; } #app #quick-nav .quick-nav-item { padding: 10px 20px; } #app #quick-nav .quick-nav-item:last-of-type { margin-right: 10px; } #app #quick-nav .quick-nav-item .quick-nav-item-label { color: whitesmoke; text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1); } #app #youtube-link { align-items: center; display: inline-flex; gap: 5px; margin-top: 10px; padding: 10px 20px; text-decoration: none; } #app #youtube-link i, #app #youtube-link span { height: 20px; line-height: 20px; } #app #youtube-link i { color: #ef5350; } #app #youtube-link span { color: white; } #app .menu-section { margin-top: 60px; } #app .menu-section .menu-section-title { align-items: center; display: flex; gap: 6px; } #app .menu-section .menu-section-title i, #app .menu-section .menu-section-title span { color: whitesmoke; } #app .menu-section .menu-section-title i { font-size: 1em; } #app .menu-section .menu-section-title .menu-section-title-text { color: rgba(255, 255, 255, 0.8); font-size: 1.25em; } #app .menu-section .menu-section-content { margin-top: 15px; padding-top: 5px; } #app #restaurants-section .menu-section-content { display: flex; gap: 1em; } #app #restaurants-section .menu-section-content .restaurant-card { .........完整代码请登录后点击上方下载按钮下载查看
网友评论0