div+css实现简洁后台仪表盘ui设计效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现简洁后台仪表盘ui设计效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.5.11.2.css"> <style> @import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap"); /*--------------------------------------*/ :root { --theme: #000; --primary-color: #fff; --dark-primary-color: #121212; --text-color-one: #454545; --text-color-two: #818181; --background: linear-gradient(45deg, rgba(223, 227, 236, 1) 0%, rgba(209, 213, 222, 1) 33%, rgba(206, 210, 219, 1) 66%, rgba(219, 223, 232, 1) 100%); --yellow: #fc9600; --purple: #3827b1; --orange: #ff535f; --light-yellow: #fbead0; } /*--------------------------------------*/ /*--------------------------------------*/ *, *::after, *::before { margin: 0; box-sizing: border-box; padding: 0; } html, body { height: 100vh; width: 100vw; } body { font-family: "Montserrat", sans-serif; min-width: 1100px; min-height: 800px; } /*--------------------------------------*/ .container { display: flex; align-items: center; justify-content: center; background: var(--background); height: 100%; } .wrapper { display: grid; grid-template-columns: 220px 320px 450px; grid-gap: 30px; position: relative; } /*---------------LEFT PANE-----------------------*/ .left__pane { display: grid; grid-template-rows: 205px 320px 190px; grid-gap: 15px; /*-----------------BOX ONE---------------------*/ /*--------------BOX TWO------------------------*/ /*----------------BOX THREE----------------------*/ } .left__pane > * { background: var(--primary-color); border-radius: 30px; } .left__pane .box__one { display: flex; flex-direction: column; box-shadow: 2px 0px 10px -5px rgba(0, 0, 0, 0.5); padding: 30px 25px; } .left__pane .box__one > h2 { margin-bottom: 15px; color: var(--text-color-one); } .left__pane .box__one > p { font-size: 16px; color: var(--text-color-two); margin-bottom: auto; font-weight: 500; } .left__pane .box__one__infos { display: flex; align-items: center; justify-content: space-between; } .left__pane .box__one__info p:first-child { font-size: 16px; text-align: center; margin-bottom: 10px; font-weight: 600; color: var(--text-color-one); } .left__pane .box__one__info p:last-child { font-size: 14px; color: var(--text-color-two); font-weight: 500; } .left__pane .box__two { box-shadow: 2px 0px 10px -5px rgba(0, 0, 0, 0.5); } .left__pane .box__two > ul { list-style-type: none; padding: 30px 35px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; } .left__pane .box__two__item { transition: opacity 300ms ease-in-out; } .left__pane .box__two__item a { text-decoration: none; color: var(--text-color-two); display: flex; align-items: center; } .left__pane .box__two__item i { width: 40px; height: 35px; margin-right: 10px; display: flex; align-items: center; justify-content: center; border-radius: 8px; } .left__pane .box__two__item span { font-weight: 400; } .left__pane .box__two__item--active i { background: var(--dark-primary-color); color: var(--primary-color); } .left__pane .box__two__item--active span { color: var(--text-color-one); font-weight: 600; } .left__pane .box__two__item:hover { opacity: 0.6; } .left__pane .box__three { background: var(--purple); padding: 20px 35px; box-shadow: 2px 0px 10px -5px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; justify-content: space-around; } .left__pane .box__three > h2 { color: var(--primary-color); } .left__pane .box__three > p { font-size: 12px; color: var(--primary-color); font-weight: 400; } .left__pane .box__three > button { color: var(--purple); background: var(--primary-color); outline: none; border: none; height: 36px; align-self: flex-end; font-weight: 700; width: 100px; border-radius: 25px; border-top-right-radius: 0; cursor: pointer; } /*-----------------CENTER PANE---------------------*/ .center__pane { display: grid; grid-template-rows: 125px 210px 380px; grid-gap: 15px; /*-----------------BOX ONE---------------------*/ /*--------------BOX TWO------------------------*/ /*---------------BOX THREE-----------------------*/ } .center__pane > * { background: var(--primary-color); border-radius: 30px; } .center__pane .box__one { display: flex; align-items: center; padding: 0px 40px; box-shadow: 2px 0px 10px -5px rgba(0, 0, 0, 0.5); } .center__pane .box__one__currency { height: 63px; background: var(--dark-primary-color); color: var(--primary-color); border-radius: 50%; font-weight: 600; font-size: 22px; display: flex; align-items: center; justify-content: center; flex-basis: 30%; margin-right: 30px; } .center__pane .box__one__estimation { flex-basis: 70%; } .center__pane .box__one__estimation p:first-child { font-size: 16px; font-weight: 500; color: var(--text-color-one); margin-bottom: 5px; } .center__pane .box__one__estimation p:nth-child(2) { font-size: 24px; font-weight: 700; color: var(--text-color-one); margin-bottom: 15px; } .center__pane .box__one__estimation > div { height: 8px; width: 100%; background: #efefef; } .center__pane .box__one__estimation > div::before { content: ""; background: var(--purple); height: 100%; width: calc(var(--percentage) * 1%); display: block; } .center__pane .box__two { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 15px; background: transparent; } .center__pane .box__two > * { background: var(--primary-color); border-radius: 30px; } .center__pane .box__two__box { box-shadow: 2px 0px 10px -5px rgba(0, 0, 0, 0.5); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; } .center__pane .box__two__box > h3 { color: var(--text-color-one); } .center__pane .box__two__box > p:nth-child(2) { color: var(--text-color-two); font-size: 11px; font-weight: 600; } .center__pane .box__two__box > p:nth-child(3) { color: var(--text-color-two); font-size: 10px; font-weight: 500; } .center__pane .box__two__box .images { display: flex; flex-direction: row; margin-left: 10px; } .center__pane .box__two__box .images > img { border-radius: 50%; margin-left: -10px; cursor: pointer; } .center__pane .box__two__box .buttons { display: .........完整代码请登录后点击上方下载按钮下载查看
网友评论0