Dashboard Stats Component
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 - 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;
}
Developer | Nika Zawila |
Username | nikazawila |
Uploaded | September 30, 2022 |
Rating | 4.5 |
Size | 2,102 Kb |
Views | 18,216 |
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!
Name | Size |
BEM Buttons | 4,265 Kb |
Player | 142,669 Kb |
Web widget | 3,371 Kb |
Buttons for autumn | 1,795 Kb |
Menu | 3,277 Kb |
Modal component with brick menu | 2,244 Kb |
Weather widget | 2,790 Kb |
Buttons with badges | 1,979 Kb |
Password reset form | 2,800 Kb |
A Pen by Nika Zawila | 1,712 Kb |
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!
Name | Username | Size |
React Template | Isac | 1,241 Kb |
Box-sizing | Elad2412 | 1,572 Kb |
Experiment | Toddmoy | 2,849 Kb |
Loading... | Adamjacob | 2,384 Kb |
Transition | Shayhowe | 1,632 Kb |
Christ the Redeemer | Prashantsani | 2,208 Kb |
Polo, the flying squirrel | Agbales | 2,445 Kb |
Mondrian | Chrisarmstrong | 2,787 Kb |
Material design - button rainbow circle | Kunukn | 3,652 Kb |
Navcube | Wbarlow | 4,775 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!