Dashboard Stats Component

Developer
Size
2,102 Kb
Views
18,216

How do I make an dashboard stats component?

Playing around with BEM & CSS3Based on http://drbl.in/lxLn shot by Kyril Ku (http://innnk.net/). What is a dashboard stats component? How do you make a dashboard stats component? This script and codes were developed by Nika Zawila on 30 September 2022, Friday.

Dashboard Stats Component Previews

Dashboard Stats Component - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Dashboard Stats Component</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="box"> <div class="box__header"> <h3 class="box__header-title">stats</h3> </div> <div class="box__body"> <div class="stats stats--main"> <div class="stats__amount">12698</div> <div class="stats__caption">subscribers</div> <div class="stats__change"> <div class="stats__value stats__value--positive">+6%</div> <div class="stats__period">this week</div> </div> </div> <div class="stats"> <div class="stats__amount">87359</div> <div class="stats__caption">visitors</div> <div class="stats__change"> <div class="stats__value stats__value--negative">-12%</div> <div class="stats__period">this week</div> </div> </div> <div class="stats"> <div class="stats__amount">6302</div> <div class="stats__caption">comments</div> <div class="stats__change"> <div class="stats__value">+78</div> <div class="stats__period">this week</div> </div> </div> <div class="stats"> <div class="stats__amount">268</div> <div class="stats__caption">posts</div> <div class="stats__change"> <div class="stats__value">+3</div> <div class="stats__period">this week</div> </div> </div> </div>
</div>
</body>
</html>

Dashboard Stats Component - Script Codes CSS Codes

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);
/* --------------------CSS----------------- */
body {	background: #222;	font: 16px 'Open Sans', sans-serif;
}
.box {	background: linear-gradient(#526494, #604484);	margin: 15px auto 0;	border-radius: 5px;	width: 300px;
}
.box__header {	padding: 15px 25px;	position: relative;
}
.box__header-title {	color: #fff;	font-size: 18px;
}
.box__body {	padding: 0 25px;
}
/* STATS */
.stats {	color: #fff;	position: relative;	padding-bottom: 25px;
}
.stats__amount {	font-size: 42px;	font-weight: bold;	line-height: 1.2;
}
.stats__caption {	font-size: 18px;
}
.stats__change {	position: absolute;	top: 10px;	right: 0;	text-align: right;	color: #B1B7C8;
}
.stats__value {	font-size: 18px;
}
.stats__period {	font-size: 14px;
}
.stats__value--positive {	color: #AEDC6F;
}
.stats__value--negative {	color: #FB5055;
}
.stats--main .stats__amount {	font-size: 54px;
}
Dashboard Stats Component - Script Codes
Dashboard Stats Component - Script Codes
Home Page Home
Developer Nika Zawila
Username nikazawila
Uploaded September 30, 2022
Rating 4.5
Size 2,102 Kb
Views 18,216
Do you need developer help for Dashboard Stats Component?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Nika Zawila (nikazawila) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!