This template provides a complete solution for professionals needing both a web presence and printable resume, with all content thoughtfully constrained to brief, impactful statements that respect the reader's time while effectively showcasing qualifications.
/* Base Styles */
:root {
--primary-color: #3498db;
--secondary-color: #2c3e50;
--light-gray: #ecf0f1;
--dark-gray: #7f8c8d;
--text-color: #333;
--resume-width: 210mm; /* A4 width */
--resume-height: 297mm; /* A4 height */
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: #f5f5f5;
padding: 20px;
}
/* Resume Container */
.resume-container {
max-width: var(--resume-width);
min-height: var(--resume-height);
margin: 0 auto;
background: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 30px;
position: relative;
}
/* Header Section */
.header {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 30px;
text-align: center;
}
.header h1 {
font-size: 2.5rem;
color: var(--secondary-color);
margin-bottom: 5px;
}
.header .title {
font-size: 1.2rem;
color: var(--primary-color);
margin-bottom: 15px;
font-weight: 500;
}
.contact-info {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 15px;
margin-bottom: 20px;
}
.contact-item {
display: flex;
align-items: center;
gap: 5px;
color: var(--dark-gray);
}
/* Main Content */
.resume-content {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 30px;
}
/* Left Column */
.left-column {
display: flex;
flex-direction: column;
gap: 30px;
}
/* Right Column */
.right-column {
display: flex;
flex-direction: column;
gap: 30px;
}
/* Section Styles */
.section {
margin-bottom: 20px;
}
.section-title {
font-size: 1.3rem;
color: var(--primary-color);
border-bottom: 2px solid var(--primary-color);
padding-bottom: 5px;
margin-bottom: 15px;
text-transform: uppercase;
}
/* Experience & Education Items */
.item {
margin-bottom: 20px;
}
.item-header {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
}
.item-title {
font-weight: 600;
font-size: 1.1rem;
}
.item-subtitle {
font-style: italic;
color: var(--dark-gray);
margin-bottom: 5px;
}
.item-date {
color: var(--dark-gray);
}
.item-description {
margin-top: 5px;
}
/* Skills */
.skills-list {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.skill-item {
display: flex;
align-items: center;
}
.skill-name {
width: 120px;
}
.skill-bar {
flex-grow: 1;
height: 8px;
background-color: var(--light-gray);
border-radius: 4px;
overflow: hidden;
}
.skill-level {
height: 100%;
background-color: var(--primary-color);
}
/* Responsive Adjustments */
@media (max-width: 768px) {
.resume-content {
grid-template-columns: 1fr;
}
.header h1 {
font-size: 2rem;
}
.contact-info {
flex-direction: column;
align-items: center;
gap: 8px;
}
.skills-list {
grid-template-columns: 1fr;
}
}
@media print {
body {
background: none;
padding: 0;
}
.resume-container {
box-shadow: none;
padding: 20px;
width: var(--resume-width);
height: var(--resume-height);
}
@page {
size: A4;
margin: 0;
}
}
/* Download Button */
.download-btn {
position: fixed;
bottom: 20px;
right: 20px;
background-color: var(--primary-color);
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
z-index: 100;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.download-btn:hover {
background-color: #2980b9;
}
document.getElementById('downloadBtn').addEventListener('click', function() {
window.print();
});
// Add responsive adjustments for printing
window.addEventListener('beforeprint', function() {
// You can add any pre-print adjustments here
console.log('Preparing for print...');
});
window.addEventListener('afterprint', function() {
// You can add any post-print adjustments here
console.log('Print completed or canceled');
});
Post a Comment
Thank you
Learning robo team