Files
glm-id-card-generator/glm-card-qr/src/screen/EmployeeCard.css
T

87 lines
1.3 KiB
CSS

body {
margin: 0;
background: #f5f5f5;
font-family: Arial, sans-serif;
}
.page {
min-height: 10vh;
display: flex;
align-items: center;
justify-content: center;
padding: 40px;
}
.page.loading,
.page.not-found {
min-height: 10vh;
text-align: center;
}
.page.loading h2,
.page.not-found h1 {
margin: 0;
color: #333;
}
.page.not-found h1 {
color: #ef4444;
}
.employee-card {
width: 350px;
max-width: 100%;
margin: auto;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}
.header {
color: white;
text-align: center;
padding: 20px;
font-size: 28px;
font-weight: bold;
}
.content {
padding: 30px;
text-align: center;
}
.label {
margin-top: 16px;
color: #666;
font-size: 14px;
}
.value {
font-size: 18px;
font-weight: bold;
}
.employee-photo {
width: 170px;
height: 170px;
border-radius: 50%;
object-fit: cover;
display: block;
margin: 0 auto 25px;
border: 4px solid #e5e5e5;
}
.employee-photo-placeholder {
width: 170px;
height: 170px;
border-radius: 50%;
margin: 0 auto 25px;
background: #f0f0f0;
color: #777;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
border: 4px solid #e5e5e5;
}