Flexbox Dashboard
How do I make an flexbox dashboard?
What is a flexbox dashboard? How do you make a flexbox dashboard? This script and codes were developed by ZingChart on 28 July 2022, Thursday.
Flexbox Dashboard - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flexbox Dashboard </title> <link href="https://fonts.googleapis.com/css?family=Space+Mono" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <nav> <ul> <li><img src="http://www.bighedz.com/370-thickbox_default/donald-trump-life-size-celebrity-face-mask.jpg" alt="Yung Donald"></li> <li><i class="fa fa-line-chart" aria-hidden="true"></i> Stats</li> <li><i class="fa fa-user-circle-o" aria-hidden="true"></i> Users</li> <li><i class="fa fa-comment-o" aria-hidden="true"></i> Messages</li> <li><i class="fa fa-cog" aria-hidden="true"></i> Setttings</li> </ul> </nav> <main> <div class="hamburger-nav" > <ul class="hamburger-nav-items"> <li>Dashboard</li> <li>Users</li> <li>Messages</li> <li>Setttings</li> </ul> </div> <section class="single-chart-section"> <div id="cylindar-bar-chart"></div> </section> <section class="bar-chart-section"> <div id="bar-chart-1"></div> <div id="bar-chart-2"></div> <div id="bar-chart-3"></div> <div id="bar-chart-4"></div> </section> <section class="single-chart-section"> <div id="area-chart"></div> </section> </main>
</body> <script src='https://cdn.zingchart.com/zingchart.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Flexbox Dashboard - Script Codes CSS Codes
* { box-sizing: border-box;
}
body { margin: 0; /*FLEX STUFF*/ display: flex; font-family: Space Mono;
}
nav { height: 100vh; width: 20%; margin: 0; background-color: #333; color: #00baf0; border-right: 1px solid #00baf0;
}
nav ul { height: 50%; width: 100%; margin: 0; list-style-type: none; /*FLEX STUFF*/ display: flex; flex-direction: column; justify-content: space-around; align-items: center;
}
nav ul li:hover { align-self: center; width: 100%; padding: 20px; background-color: #00baf0; color: #fff; text-align: center; cursor: pointer; transition: .1s ease-in-out;
}
nav img { height: 75px; width: 75px; border-radius: 50%; cursor: pointer;
}
nav img:hover { cursor: pointer; transform: rotate(360deg); transition: .5s ease-in-out; height: 125px; width: 125px;
}
main { height: 100vh; width: 80%; background-color: #fff; /*FLEX STUFF*/ display: flex; flex-direction: column; justify-content: space-around; align-items: center;
}
.hamburger-nav { display: none;
}
section { height: 33%; width: 95%;
}
.single-chart-section { /*FLEX STUFF*/ display: flex; justify-content: center; align-items: center;
}
.single-chart-section div { height: 80%; width: 95%; box-shadow: 5px 5px 5px 0 rgba(46, 74, 117, 0.5);
}
section:nth-of-type(2) { /*FLEX STUFF*/ display: flex; flex-direction: row; justify-content: space-around; align-items: center;
}
.bar-chart-section div { height: 100%; width: 22%; box-shadow: 5px 5px 5px 0 rgba(46, 74, 117, 0.5);
}
/*MEDIA RULES*/
@media screen and (max-width: 800px) { nav { display: none; } main { height: 2000px; width: 100%; } .hamburger-nav { display: flex; align-self: flex-end; margin: 0 5% 0 0; height: 50px; width: 50px; background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/t-503/Hamburger%204.png); cursor: pointer; } .hamburger-nav ul { display: none; } .hamburger-nav-items.open { position: fixed; top: 0; left: 0; height: 100vh; width: 100%; margin: 0; background-color: #333; opacity: .8; color: #fff; font-size: 24px; list-style-type: none; text-decoration: underline; z-index: 9999; /*FLEX STUFF*/ display: flex; flex-direction: column; align-items: center; } .hamburger-nav ul li { margin-top: 65px; padding: 10px; } .hamburger-nav ul li:hover { background-color: #00baf0; } section:first-of-type { height: 20%; } section:nth-of-type(2) { height: 50%; /*FLEX STUFF*/ display: flex; flex-direction: column; justify-content: space-around; align-items: center; } .bar-chart-section div { height: 20%; width: 90%; } section:nth-of-type(3) { height: 20%; }
}
Flexbox Dashboard - Script Codes JS Codes
/*Hamburger Nav JavaScript*/
var hamburger = document.getElementsByClassName('hamburger-nav')[0];
var items = document.getElementsByClassName('hamburger-nav-items')[0];
hamburger.onclick = function() { items.classList.add('open');
};
window.onclick = function(event) { if (event.target == items) { items.classList.remove('open'); }
};
/*Cylindar Bar Chart*/
ZC.LICENSE = ['7b185ca19b4be2cba68fdcd369c663a9'];
var myConfig = { backgroundColor: '#fff', type: "vbar3d", globals: { fontColor: '#00BAF0', fontFamily: 'Space Mono' }, title: { text: "Sales", }, plot: { borderWidth: 0, backgroundColor: '#fff', aspect: 'cylinder', barsOverlap: "100%", stacked: true, stackType: '100%', mode: 'normal', marker: { size: 4 }, tooltip: { visible: false } }, plotarea: { backgroundColor: 'transparent', margin: "70 0 50 90" }, "3d-aspect": { depth: 90, true3d: 1 }, scaleX: { backgroundColor: 'none', labels: [2012, 2013, 2014, 2015], label: { text: 'Years' }, offsetY: -20, lineWidth: 0, padding: 20, margin: 20, item: { padding: 5, }, guide: { visible: false, } }, scaleY: { maxValue: 100, lineWidth: 0, values: "0:180:20", format: "$%v", item: { padding: "0 10 0 0", }, guide: { visible: false, } }, series: [{ text: "Internal", values: [ 70, 100, 110, 141 ], lineColor: "#00BAF0", backgroundColor: "#00BAF0", lineWidth: 1, marker: { backgroundColor: '#00BAF0' } }, { text: "External", values: [ 30, 50, 60, 75 ], lineColor: "#003849", backgroundColor: "#003849", lineWidth: 1, marker: { backgroundColor: '#003849' } }, { text: "Outbound", values: [20, 30, 40, 39 ], lineColor: "#7CA82B", backgroundColor: "#7CA82B", lineWidth: 1, marker: { backgroundColor: '#7CA82B' } }]
};
zingchart.render({ id: 'cylindar-bar-chart', data: myConfig, height: '100%', width: '100%'
});
/*Spark Bar Charts*/
var myConfig = { type: 'hbar', globals: { fontFamily: 'Space Mono', color: '#00baf0', fontSize: 14 }, title: { text: 'Users' }, mediaRules: [{ minWidth: '225px', title: { fontSize: 24 } }], plot: { aspect: 'spline' }, series: [{ values: [35, 42, 67, 89, 49, 25], backgroundColor: '#00BAF0', }]
};
zingchart.render({ id: 'bar-chart-1', data: myConfig, height: '100%', width: '100%', theme: 'spark'
});
zingchart.render({ id: 'bar-chart-2', data: myConfig, height: '100%', width: '100%', theme: 'spark'
});
zingchart.render({ id: 'bar-chart-3', data: myConfig, height: '100%', width: '100%', theme: 'spark'
});
zingchart.render({ id: 'bar-chart-4', data: myConfig, height: '100%', width: '100%', theme: 'spark'
});
/*Area Chart*/
var myConfig = { type: 'area', title: { text: 'Website Traffic' }, globals: { fontFamily: 'Space Mono', fontColor: '#00BAF0' }, plot: { aspect: 'spline' }, tooltip: { visible: false, }, scaleX: { lineColor: 'transparent', tick: { visible: false }, guide: { visible: false }, item: { color: 'transparent' } }, scaleY: { lineColor: 'transparent', step: 10, tick: { visible: false }, guide: { visible: false }, item: { color: 'transparent' } }, series: [{ values: [12, 24, 48, 36, 56], lineColor: "#00BAF0", lineWidth: 1, backgroundColor: "#00BAF0", marker: { visible: false, } }]
};
zingchart.render({ id: 'area-chart', data: myConfig, height: '100%', width: '100%'
});
Developer | ZingChart |
Username | zingchart |
Uploaded | July 28, 2022 |
Rating | 3 |
Size | 3,956 Kb |
Views | 60,720 |
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 |
Responsive Flexbox Dashboard | 4,159 Kb |
ZingChart-AngularJS - AJAX | 2,241 Kb |
ZingChart-AngularJS - Basic | 1,963 Kb |
Responsive Dashboard With Media Queries | 3,871 Kb |
ZingChart-AngularJS - Responsive | 2,637 Kb |
Economic Growth in Greece | 3,145 Kb |
ZingChart-AngularJS - Fully Capable | 2,433 Kb |
The Bay Area - divided by zip code | 2,058 Kb |
Fantasy Election Generator | 14,205 Kb |
Real-Time Feed Material Design | 2,668 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 |
Elon Musk - Tribute Page - FreeCodeCamp | Yunnimun | 8,615 Kb |
React Markdown Previewer | C0d0er | 3,190 Kb |
NgEasyModal | Lorenzodianni | 4,159 Kb |
AngularJS Datalist Directive | M-e-conroy | 2,366 Kb |
CSS Variables | Jdsteinbach | 4,759 Kb |
A Pen by utcwebdev | Utcwebdev | 2,856 Kb |
Pericles mi loro... | Judag | 4,125 Kb |
Tab Menus | Zephyr | 3,180 Kb |
Basic 3D Fullscreen Transition | Apetrov | 3,270 Kb |
Canvas snow | Win7killer | 2,572 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!