HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div class="app-container">
<div class="app-left">
<button class="close-menu">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
<div class="app-logo">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bar-chart-2">
<line x1="18" y1="20" x2="18" y2="10"/>
<line x1="12" y1="20" x2="12" y2="4"/>
<line x1="6" y1="20" x2="6" y2="14"/> </svg>
<span>Recruiter</span>
</div>
<ul class="nav-list">
<li class="nav-list-item active">
<a class="nav-list-link" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-columns"><path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"/></svg>
Dashboard
</a>
</li>
<li class="nav-list-item">
<a class="nav-list-link" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-briefcase"><rect x="2" y="7" width="20" height="14" rx="2" ry="2"/><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/></svg>
Jobs
</a>
</li>
<li class="nav-list-item">
<a class="nav-list-link" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file"><path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"/><polyline points="13 2 13 9 20 9"/></svg>
Applications
</a>
</li>
<li class="nav-list-item">
<a class="nav-list-link" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-users"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>
Team
</a>
</li>
<li class="nav-list-item">
<a class="nav-list-link" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-pie-chart"><path d="M21.21 15.89A10 10 0 1 1 8 2.83"/><path d="M22 12A10 10 0 0 0 12 2v10z"/></svg>
Reports
</a>
</li>
</ul>
</div>
<div class="app-main">
<div class="main-header-line">
<h1>Applications Dashboard</h1>
<div class="action-buttons">
<button class="open-right-area">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-activity"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>
</button>
<button class="menu-button">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu"><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
</button>
</div>
</div>
<div class="chart-row three">
<div class="chart-container-wrapper">
<div class="chart-container">
<div class="chart-info-wrapper">
<h2>Applications</h2>
<span>20.5 K</span>
</div>
<div class="chart-svg">
<svg viewBox="0 0 36 36" class="circular-chart pink">
<path class="circle-bg" d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"></path>
<path class="circle" stroke-dasharray="30, 100" d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"></path>
<text x="18" y="20.35" class="percentage">30%</text>
</svg>
</div>
</div>
</div>
<div class="chart-container-wrapper">
<div class="chart-container">
<div class="chart-info-wrapper">
<h2>Shortlisted</h2>
<span>5.5 K</span>
</div>
<div class="chart-svg">
<svg viewBox="0 0 36 36" class="circular-chart blue">
<path class="circle-bg" d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"></path>
<path class="circle" stroke-dasharray="60, 100" d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"></path>
<text x="18" y="20.35" class="percentage">60%</text>
</svg>
</div>
</div>
</div>
<div class="chart-container-wrapper">
<div class="chart-container">
<div class="chart-info-wrapper">
<h2>On-hold</h2>
<span>10.5 K</span>
</div>
<div class="chart-svg">
<svg viewBox="0 0 36 36" class="circular-chart orange">
<path class="circle-bg" d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"></path>
<path class="circle" stroke-dasharray="90, 100" d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"></path>
<text x="18" y="20.35" class="percentage">90%</text>
</svg>
</div>
</div>
</div>
</div>
<div class="chart-row two">
<div class="chart-container-wrapper big">
<div class="chart-container">
<div class="chart-container-header">
<h2>Top Active Jobs</h2>
<span>Last 30 days</span>
</div>
<div class="line-chart">
<canvas id="chart"></canvas>
</div>
<div class="chart-data-details">
<div class="chart-details-header"></div>
</div>
</div>
</div>
<div class="chart-container-wrapper small">
<div class="chart-container">
<div class="chart-container-header">
<h2>Acquisitions</h2>
<span href="#">This month</span>
</div>
<div class="acquisitions-bar">
<span class="bar-progress rejected" style="width:8%;"></span>
<span class="bar-progress on-hold" style="width:10%;"></span>
<span class="bar-progress shortlisted" style="width:18%;"></span>
<span class="bar-progress applications" style="width:64%;"></span>
</div>
<div class="progress-bar-info">
<span class="progress-color applications"></span>
<span class="progress-type">Applications</span>
<span class="progress-amount">64%</span>
</div>
<div class="progress-bar-info">
<span class="progress-color shortlisted"></span>
<span class="progress-type">Shortlisted</span>
<span class="progress-amount">18%</span>
</div>
<div class="progress-bar-info">
<span class="progress-color on-hold"></span>
<span class="progress-type">On-hold</span>
<span class="progress-amount">10%</span>
</div>
<div class="progress-bar-info">
<span class="progress-color rejected"></span>
<span class="progress-type">Rejected</span>
<span class="progress-amount">8%</span>
</div>
</div>
<div class="chart-container applicants">
<div class="chart-container-header">
<h2>New Applicants</h2>
<span>Today</span>
</div>
<div class="applicant-line">
<img src="https://images.unsplash.com/photo-1587628604439-3b9a0aa7a163?ixid=MXwxMjA3fDB8MHxzZWFyY2h8MjB8fHdvbWFufGVufDB8fDB8&ixlib=rb-1.2.1&auto=format&fit=crop&w=900&q=60" alt="profile">
<div class="applicant-info">
<span>Emma Ray</span>
<p>Applied for <strong>Product Designer</strong></p>
</div>
</div>
<div class="applicant-line">
<img src="https://images.unsplash.com/photo-1583195764036-6dc248ac07d9?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=2555&q=80" alt="profile">
<div class="applicant-info">
<span>Ricky James</span>
<p>Applied for <strong>IOS Developer</strong></p>
</div>
</div>
<div class="applicant-line">
<img src="https://images.unsplash.com/photo-1450297350677-623de575f31c?ixid=MXwxMjA3fDB8MHxzZWFyY2h8MzV8fHdvbWFufGVufDB8fDB8&ixlib=rb-1.2.1&auto=format&fit=crop&w=900&q=60" alt="profile">
<div class="applicant-info">
<span>Julia Wilson</span>
<p>Applied for <strong>UI Developer</strong></p>
</div>
</div>
<div class="applicant-line">
<img src="https://images.unsplash.com/photo-1596815064285-45ed8a9c0463?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1215&q=80" alt="profile">
<div class="applicant-info">
<span>Jess Watson</span>
<p>Applied for <strong>Design Lead</strong></p>
</div>
</div>
<div class="applicant-line">
<img src="https://images.unsplash.com/photo-1543965170-4c01a586684e?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=2232&q=80" alt="profile">
<div class="applicant-info">
<span>John Pellegrini</span>
<p>Applied for <strong>Back-End Developer</strong></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="app-right">
<button class="close-right">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
<div class="profile-box">
<div class="profile-photo-wrapper">
<img src="https://images.unsplash.com/photo-1551292831-023188e78222?ixid=MXwxMjA3fDB8MHxzZWFyY2h8MTE0fHxwb3J0cmFpdHxlbnwwfDB8MHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=900&q=60" alt="profile">
</div>
<p class="profile-text">Julia Pellegrini</p>
<p class="profile-subtext">Recruiting Manager</p>
</div>
<div class="app-right-content">
<div class="app-right-section">
<div class="app-right-section-header">
<h2>Messages</h2>
<span class="notification-active">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-message-square"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
</span>
</div>
<div class="message-line">
<img src="https://images.unsplash.com/photo-1562159278-1253a58da141?ixid=MXwxMjA3fDB8MHxzZWFyY2h8MzB8fHBvcnRyYWl0JTIwbWFufGVufDB8MHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=900&q=60" alt="profile">
<div class="message-text-wrapper">
<p class="message-text">Eric Clampton</p>
<p class="message-subtext">Have you planned any deadline for this?</p>
</div>
</div>
<div class="message-line">
<img src="https://images.unsplash.com/photo-1604004555489-723a93d6ce74?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=934&q=80" alt="profile">
<div class="message-text-wrapper">
<p class="message-text">Jess Flax</p>
<p class="message-subtext">Can we schedule another meeting for next thursday?</p>
</div>
</div>
<div class="message-line">
<img src="https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=2250&q=80" alt="profile">
<div class="message-text-wrapper">
<p class="message-text">Pam Halpert</p>
<p class="message-subtext">The candidate has been shorlisted.</p>
</div>
</div>
</div>
<div class="app-right-section">
<div class="app-right-section-header">
<h2>Activity</h2>
<span class="notification-active">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bell"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>
</span>
</div>
<div class="activity-line">
<span class="activity-icon warning">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-circle"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
</span>
<div class="activity-text-wrapper">
<p class="activity-text">Your plan is expires in <strong>3 days.</strong></p>
<a class="activity-link" href="#">Renew Now</a>
</div>
</div>
<div class="activity-line">
<span class="activity-icon applicant">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file-plus"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="12" y1="18" x2="12" y2="12"/><line x1="9" y1="15" x2="15" y2="15"/></svg>
</span>
<div class="activity-text-wrapper">
<p class="activity-text">There are <strong>3 new applications</strong> for <strong>UI Developer</strong></p>
</div>
</div>
<div class="activity-line">
<span class="activity-icon close">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x-circle"><circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/></svg>
</span>
<div class="activity-text-wrapper">
<p class="activity-text">Your teammate, <strong>Wade Wilson</strong> has closed the job post of <strong>IOS Developer</strong></p>
</div>
</div>
<div class="activity-line">
<span class="activity-icon applicant">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file-plus"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="12" y1="18" x2="12" y2="12"/><line x1="9" y1="15" x2="15" y2="15"/></svg>
</span>
<div class="activity-text-wrapper">
<p class="activity-text">There are <strong>4 new applications</strong> for <strong>Front-End Developer</strong></p>
</div>
</div>
<div class="activity-line">
<span class="activity-icon applicant">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file-plus"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="12" y1="18" x2="12" y2="12"/><line x1="9" y1="15" x2="15" y2="15"/></svg>
</span>
<div class="activity-text-wrapper">
<p class="activity-text">There are <strong>2 new applications</strong> for <strong>Design Lead</strong></p>
</div>
</div>
<div class="activity-line">
<span class="activity-icon close">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x-circle"><circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/></svg>
</span>
<div class="activity-text-wrapper">
<p class="activity-text">Your teammate, <strong>Wade Wilson</strong> has closed the job post of <strong>Back-End Developer</strong></p>
</div>
</div>
<div class="activity-line">
<span class="activity-icon draft">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file-minus"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="9" y1="15" x2="15" y2="15"/></svg>
</span>
<div class="activity-text-wrapper">
<p class="activity-text">You have drafted a job post for <strong>HR Specialist</strong></p>
<a href="#" class="activity-link">Complete Now</a>
</div>
</div>
</div>
</div>
</div>
</div>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');
* {
box-sizing: border-box;
}
:root {
--app-bg-dark: #01081f;
--app-bg-before: linear-gradient(180deg, rgba(1,8,31,0) 0%, rgba(1,8,31,1) 100%);
--app-bg-before-2: linear-gradient(0deg, rgba(1,8,31,0) 0%, rgba(1,8,31,1) 100%);
--app-bg-light: #151c32;
--app-logo: #3d7eff;
--nav-link: #5e6a81;
--nav-link-active: #fff;
--list-item-hover: #0c1635;
--main-color: #fff;
--secondary-color: #5e6a81;
--color-light: rgba(52, 129, 210, .2);
--warning-bg: #ffe5e5;
--warning-icon: #ff8181;
--applicant-bg: #e3fff1;
--applicant-icon: #61e1a1;
--close-bg: #fff8e5;
--close-icon: #fdbc64;
--draft-bg: #fed8b3;
--draft-icon: #e9780e;
}
body {
height: 100vh;
width: 100%;
overflow: hidden;
display: flex;
justify-content: center;
font-family: 'Poppins', sans-serif;
background-color: #050e2d;
}
.app-container {
width: 100%;
height: 100%;
display: flex;
position: relative;
max-width: 1680px;
}
.app-left {
flex-basis: 240px;
background-color: var(--app-bg-dark);
height: 100%;
overflow-y: auto;
overflow-x: hidden;
padding: 24px 0;
transition: all .4s ease-in;
&.show {
right: 0;
opacity: 1;
}
}
.app-main {
flex: 1;
height: 100%;
overflow-y: auto;
overflow-x: hidden;
background-color: var(--app-bg-light);
padding: 24px;
background: radial-gradient(circle, rgba(5,19,64,1) 1%, rgba(4,15,50,1) 100%);
}
.app-right {
flex-basis: 320px;
width: 320px;
background-color: var(--app-bg-dark);
height: 100%;
padding: 64px 0 0 0;
display: flex;
flex-direction: column;
position: relative;
transition: all .4s ease-in;
&:before {
content: '';
position: absolute;
bottom: 0;
height: 48px;
width: 100%;
background-image: var(--app-bg-before);
z-index: 1;
}
&.show {
right: 0;
opacity: 1;
}
.close-right { display: none; }
}
.app-right-content {
flex: 1;
height: 100%;
overflow-y: auto;
overflow-x: hidden;
}
.app-logo {
display: flex;
align-items: center;
color: var(--app-logo);
margin-right: 16px;
padding: 0 24px;
span {
color: #fff;
display: inline-block;
line-height: 24px;
font-size: 16px;
margin-left: 16px;
}
}
ul {
list-style-type: none;
padding: 0;
}
a {
text-decoration: none;
cursor: pointer;
}
button { cursor: pointer; }
.nav-list {
margin-top: 40px;
}
.nav-list-item {
margin-bottom: 12px;
&:not(.active):hover {
background-color: var(--list-item-hover);
}
&.active {
.nav-list-link {
color: var(--nav-link-active);
&:after {
height: 100%;
opacity: 1;
}
}
svg {
stroke: var(--app-logo);
}
}
}
.nav-list-link {
font-weight: 300;
font-size: 14px;
line-height: 24px;
padding: 8px 24px;
color: var(--nav-link);
display: flex;
align-items: center;
position: relative;
svg {
margin-right: 12px;
}
&:after {
content: '';
height: 100%;
width: 2px;
background-color: var(--app-logo);
right: 0;
top: 0;
position: absolute;
border-radius: 2px;
opacity: 0;
height: 0;
}
}
.open-right-area {
display: none;
justify-content: center;
align-items: center;
border: none;
background-color: var(--app-bg-dark);
border-radius: 4px;
height: 40px;
width: 40px;
padding: 0;
}
.main-header-line {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
h1 {
color: var(--main-color);
margin: 0;
font-size: 24px;
line-height: 32px;
}
input {
border-radius: 4px;
background-color: var(--color-light);
border: none;
border: 1px solid var(--color-light);
color: var(--main-color);
height: 32px;
padding: 0 8px 0 32px;
font-size: 14px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233481d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-search'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
background-position: center left 10px;
background-repeat: no-repeat;
background-size: 16px;
outline: none;
transition: .2s;
width: 100%;
max-width: 400px;
margin-left: 16px;
&:placeholder {
font-size: 14px;
color: rgba(255,255,255, 0.6);
}
&:hover, &:focus {
border: 1px solid #3481d2;
box-shadow: 0 0 0 3px var(--color-light);
}
}
}
.chart-row {
display: flex;
justify-content: space-between;
margin: 0 -8px;
&.three .chart-container-wrapper {
width: 33.3%;
.chart-container { justify-content: space-between; }
}
&.two {
.big {
flex: 1;
max-width: 77.7%;
.chart-container {
flex-direction: column;
}
}
.small {
width: 33.3%;
.chart-container {
flex-direction: column;
+ .chart-container { margin-top: 16px; }
}
}
}
}
.line-chart {
width: 100%;
margin-top: 24px;
}
.chart-container {
width: 100%;
border-radius: 10px;
background-color: var(--app-bg-dark);
padding: 16px;
display: flex;
align-items: center;
&.applicants {
max-height: 336px;
overflow-y: auto;
}
}
.chart-container-wrapper {
padding: 8px;
}
.chart-info-wrapper {
flex-shrink: 0;
flex-basis: 120px;
h2 {
color: var(--secondary-color);
font-size: 12px;
line-height: 16px;
font-weight: 600;
text-transform: uppercase;
margin: 0 0 8px 0;
}
span {
color: var(--main-color);
font-size: 24px;
line-height: 32px;
font-weight: 500;
}
}
.chart-svg {
position: relative;
max-width: 90px;
min-width: 40px;
flex: 1;
}
.circle-bg {
fill: none;
stroke: #eee;
stroke-width: 1.2;
}
.circle {
fill: none;
stroke-width: 1.6;
stroke-linecap: round;
animation: progress 1s ease-out forwards;
}
.circular-chart {
&.orange {
.circle { stroke: #ff9f00; }
.circle-bg {stroke: #776547; }
}
&.blue {
.circle { stroke: #00cfde; }
.circle-bg { stroke: #557b88; }
}
&.pink {
.circle { stroke: #ff7dcb; }
.circle-bg { stroke: #6f5684; }
}
}
.percentage {
fill: #fff;
font-size: 0.5em;
text-anchor: middle;
font-weight: 400;
}
@keyframes progress {
0% {
stroke-dasharray: 0 100;
}
}
.chart-container-header {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
margin-bottom: 12px;
h2 {
margin: 0;
color: var(--main-color);
font-size: 12px;
line-height: 16px;
opacity: .8;
}
span {
color: var(--app-logo);
font-size: 12px;
line-height: 16px;
}
}
.acquisitions-bar {
width: 100%;
height: 4px;
border-radius: 4px;
margin-top: 16px;
margin-bottom: 8px;
display: flex;
}
.bar-progress {
height: 4px;
display: inline-block;
&.applications {
background-color: rgba(255,125,203,1);
}
&.shortlisted {
background-color: rgba(0,207,222,1);
}
&.on-hold {
background-color: rgba(253,172,66,1);
}
&.rejected {
background-color: rgba(255,92,92,1);
}
}
.progress-bar-info {
display: flex;
align-items: center;
margin-top: 8px;
width: 100%;
}
.progress-color {
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 8px;
&.applications {
background-color: rgba(255,125,203,1);
}
&.shortlisted {
background-color: rgba(0,207,222,1);
}
&.on-hold {
background-color: rgba(253,172,66,1);
}
&.rejected {
background-color: rgba(255,92,92,1);
}
}
.progress-type {
color: var(--secondary-color);
font-size: 12px;
line-height: 16px;
}
.progress-amount {
color: var(--secondary-color);
font-size: 12px;
line-height: 16px;
margin-left: auto;
}
.applicant-line {
display: flex;
align-items: center;
width: 100%;
margin-top: 12px;
img {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
margin-right: 10px;
flex-shrink: 0;
}
}
.applicant-info {
span {
color: var(--main-color);
font-size: 14px;
line-height: 16px;
}
p {
margin : 4px 0;
font-size: 12px;
line-height: 16px;
color: var(--secondary-color);
}
}
.profile-box {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
&:before {
content: '';
position: absolute;
top: 100%;
height: 48px;
width: 100%;
background-image: var(--app-bg-before-2);
z-index: 1;
}
}
.profile-photo-wrapper {
width: 80px;
height: 80px;
overflow: hidden;
border-radius: 50%;
margin-bottom: 16px;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.profile-text, .profile-subtext {
font-size: 12px;
line-height: 16px;
color: var(--secondary-color);
margin: 0 0 8px 0;
}
.profile-text { font-weight: 600; }
.app-right-section-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 16px;
margin-top: 16px;
h2 {
font-size: 14px;
line-height: 24px;
color: var(--secondary-color);
}
span {
display: inline-block;
color: var(--secondary-color);
position: relative;
&.notification-active:before {
content: '';
position: absolute;
width: 6px;
height: 6px;
border-radius: 50%;
background-color: var(--app-logo);
top: -1px;
right: -1px;
box-shadow: 0 0 0 2px var(--app-bg-dark);
}
}
}
.message-line {
display: flex;
align-items: center;
padding: 8px 16px;
margin-bottom: 8px;
&:hover {
background-color: var(--list-item-hover);
}
img {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
margin-right: 8px;
}
}
.message-text-wrapper {
max-width: calc(100% - 48px);
}
.message-text {
font-size: 14px;
line-height: 16px;
color: var(--main-color);
margin: 0;
opacity: .8;
width: 100%;
}
.message-subtext {
font-size: 12px;
line-height: 16px;
color: var(--secondary-color);
margin: 4px 0 0 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
.activity-line {
padding: 8px 16px;
display: flex;
align-items: flex-start;
margin-bottom: 8px;
}
.activity-link {
font-size: 12px;
line-height: 16px;
color: var(--app-logo);
text-decoration: underline;
}
.activity-text {
font-size: 12px;
line-height: 16px;
color: var(--secondary-color);
width: 100%;
margin: 0;
strong {
color: #fff;
opacity: .4;
font-weight: 500;
}
}
.activity-icon {
border-radius: 8px;
width: 32px;
height: 32px;
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
margin-right: 8px;
&.warning {
background-color: var(--warning-bg);
color: var(--warning-icon);
}
&.applicant {
background-color: var(--applicant-bg);
color: var(--applicant-icon);
}
&.close {
background-color: var(--close-bg);
color: var(--close-icon);
}
&.draft {
background-color: var(--draft-bg);
color: var(--draft-icon);
}
}
.action-buttons {
display: flex;
align-items: center;
}
.menu-button {
width: 40px;
height: 40px;
margin-left: 8px;
display: none;
justify-content: center;
align-items: center;
padding: 0;
background-color: var(--app-bg-dark);
border: none;
color: var(--main-color);
border-radius: 4px;
}
.close-menu {
position: absolute;
top: 16px;
right: 16px;
display: none;
align-items: center;
justify-content: center;
border: none;
background-color: transparent;
padding: 0;
color: var(--main-color);
cursor: pointer;
}
@media screen and (max-width: 1350px) {
.app-right {
flex-basis: 240px;
width: 240px;
}
.app-left {
flex-basis: 200px;
}
}
@media screen and (max-width: 1200px) {
.app-right {
position: absolute;
opacity: 0;
top: 0;
z-index: 2;
height: 100%;
width: 320px;
right: -100%;
box-shadow: 0 0 10px 5px rgba(1, 8, 31, .4);
.close-right {
position: absolute;
top: 16px;
right: 16px;
display: flex;
align-items: center;
justify-content: center;
border: none;
background-color: transparent;
padding: 0;
color: var(--main-color);
cursor: pointer;
}
}
.app-main .open-right-area {
display: flex;
color: var(--main-color);
}
}
@media screen and (max-width: 1180px) {
.chart-row.two {
flex-direction: column;
}
.chart-row.two .big {
max-width: 100%;
}
.chart-row.two .small {
display: flex;
justify-content: space-between;
width: 100%;
.chart-container {
width: calc(50% - 8px);
&.applicants {
margin-top: 0;
}
}
}
}
@media screen and (max-width: 920px) {
.menu-button {
display: flex;
}
.app-left {
position: absolute;
opacity: 0;
top: 0;
z-index: 2;
height: 100%;
width: 320px;
right: -100%;
box-shadow: 0 0 10px 5px rgba(1, 8, 31, .4);
}
.close-menu { display: flex;}
}
@media screen and (max-width: 650px) {
.chart-row.three {
flex-direction: column;
}
.chart-row.three .chart-container-wrapper {
width: 100%;
}
.chart-svg {
min-height: 60px;
min-width: 40px;
}
}
@media screen and (max-width: 520px) {
.chart-row.two .small {
flex-direction: column;
}
.chart-row.two .small .chart-container {
width: 100%;
&.applicants {
margin-top: 16px;
}
}
.main-header-line h1 {
font-size: 14px;
}
}
var chart = document.getElementById('chart').getContext('2d'),
gradient = chart.createLinearGradient(0, 0, 0, 450);
gradient.addColorStop(0, 'rgba(0, 199, 214, 0.32)');
gradient.addColorStop(0.3, 'rgba(0, 199, 214, 0.1)');
gradient.addColorStop(1, 'rgba(0, 199, 214, 0)');
var data = {
labels: [ 'January', 'February', 'March', 'April', 'May', 'June', 'July','August','September','October', 'November','December' ],
datasets: [{
label: 'Applications',
backgroundColor: gradient,
pointBackgroundColor: '#00c7d6',
borderWidth: 1,
borderColor: '#0e1a2f',
data: [60, 45, 80, 30, 35, 55,25,80,40,50,80,50]
}]
};
var options = {
responsive: true,
maintainAspectRatio: true,
animation: {
easing: 'easeInOutQuad',
duration: 520
},
scales: {
yAxes: [{
ticks: {
fontColor: '#5e6a81'
},
gridLines: {
color: 'rgba(200, 200, 200, 0.08)',
lineWidth: 1
}
}],
xAxes:[{
ticks: {
fontColor: '#5e6a81'
}
}]
},
elements: {
line: {
tension: 0.4
}
},
legend: {
display: false
},
point: {
backgroundColor: '#00c7d6'
},
tooltips: {
titleFontFamily: 'Poppins',
backgroundColor: 'rgba(0,0,0,0.4)',
titleFontColor: 'white',
caretSize: 5,
cornerRadius: 2,
xPadding: 10,
yPadding: 10
}
};
var chartInstance = new Chart(chart, {
type: 'line',
data: data,
options: options
});
document.querySelector('.open-right-area').addEventListener('click', function () {
document.querySelector('.app-right').classList.add('show');
});
document.querySelector('.close-right').addEventListener('click', function () {
document.querySelector('.app-right').classList.remove('show');
});
document.querySelector('.menu-button').addEventListener('click', function () {
document.querySelector('.app-left').classList.add('show');
});
document.querySelector('.close-menu').addEventListener('click', function () {
document.querySelector('.app-left').classList.remove('show');
});
Also see: Tab Triggers