feat: implement responsive tab plugin and new hover card v3 component, and add admin controllers for price and recruiting tables.
This commit is contained in:
@@ -0,0 +1,247 @@
|
||||
<!doctype html>
|
||||
<html lang="vi">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Cơ Hội Nghề Nghiệp - S.I.S</title>
|
||||
<style>
|
||||
/* ===================================================
|
||||
1. RESET & VARIABLES
|
||||
=================================================== */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #f8fafc;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* ===================================================
|
||||
2. HERO SECTION LAYOUT
|
||||
=================================================== */
|
||||
.career-hero {
|
||||
position: relative;
|
||||
padding: 40px 0;
|
||||
min-height: 500px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Lớp phủ Background Gradient */
|
||||
.hero-bg-1 {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(360deg, #f0faff 65.38%, rgba(253, 254, 255, 0) 100%);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.hero-bg-2 {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(360deg, #b7eaff 29.33%, rgba(253, 254, 255, 0) 100%);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* Container chứa nội dung chính */
|
||||
.hero-container {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 0 40px;
|
||||
}
|
||||
|
||||
/* Tiêu đề H1 chính */
|
||||
.hero-title {
|
||||
font-size: 42px;
|
||||
font-weight: 700;
|
||||
color: #0d71ba; /* Màu xanh y tế chuẩn */
|
||||
line-height: 1.2;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
/* Khung chứa hình chứng nhận và các danh hiệu */
|
||||
.awards-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
/* Hình Bằng khen / Chứng nhận */
|
||||
.certificate-box {
|
||||
position: relative;
|
||||
width: 313px;
|
||||
aspect-ratio: 2 / 3;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.certificate-box img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
/* Danh sách giải thưởng */
|
||||
.awards-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
.award-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.award-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.trophy-icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.award-badge {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: #0d68aa;
|
||||
border-bottom: 2px solid #0d68aa;
|
||||
display: inline-block;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.award-desc {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #0d68aa;
|
||||
line-height: 1.4;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* Hình ảnh Bác sĩ bên phải */
|
||||
.doctor-image-box {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 32px;
|
||||
width: 630px;
|
||||
aspect-ratio: 630 / 480;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.doctor-image-box img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
/* ===================================================
|
||||
3. RESPONSIVE DESIGN (Cho Mobile & Tablet)
|
||||
=================================================== */
|
||||
@media (max-width: 1200px) {
|
||||
.hero-title {
|
||||
font-size: 34px;
|
||||
}
|
||||
.certificate-box {
|
||||
width: 220px;
|
||||
}
|
||||
.doctor-image-box {
|
||||
width: 450px;
|
||||
}
|
||||
.award-badge {
|
||||
font-size: 20px;
|
||||
}
|
||||
.award-desc {
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 992px) {
|
||||
.doctor-image-box {
|
||||
width: 350px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.hero-container {
|
||||
padding: 0 20px;
|
||||
}
|
||||
.hero-title {
|
||||
font-size: 28px;
|
||||
}
|
||||
/* Ẩn hình ảnh bác sĩ lớn trên điện thoại */
|
||||
.doctor-image-box {
|
||||
display: none;
|
||||
}
|
||||
.certificate-box {
|
||||
width: 140px;
|
||||
}
|
||||
.trophy-icon {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
.award-badge {
|
||||
font-size: 16px;
|
||||
}
|
||||
.award-desc {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section class="career-hero">
|
||||
<!-- Lớp phủ Gradient mờ -->
|
||||
<div class="hero-bg-1"></div>
|
||||
<div class="hero-bg-2"></div>
|
||||
|
||||
<!-- Nội dung chính Banner -->
|
||||
<div class="hero-container">
|
||||
<!-- Tiêu đề -->
|
||||
<h1 class="hero-title">Cơ hội nghề nghiệp</h1>
|
||||
|
||||
<!-- Cột Nội dung Bằng khen & Cúp danh hiệu -->
|
||||
<div class="awards-wrapper">
|
||||
<!-- Ảnh Chứng nhận/Bằng khen bên trái -->
|
||||
<div class="certificate-box">
|
||||
<img src="/_next/image?url=%2Fimages%2Fcareer%2Fcertificate.webp&w=1200&q=80" alt="Bằng khen S.I.S" />
|
||||
</div>
|
||||
|
||||
<!-- Khối danh hiệu Top 10 & Top 50 -->
|
||||
<div class="awards-list">
|
||||
<!-- TOP 10 -->
|
||||
<div class="award-item">
|
||||
<div class="award-header">
|
||||
<img src="/_next/image?url=%2Fimages%2Fcareer%2Ftrophy.png&w=640&q=80" alt="Cúp danh hiệu" class="trophy-icon" />
|
||||
<span class="award-badge">TOP 10</span>
|
||||
</div>
|
||||
<p class="award-desc">NƠI LÀM VIỆC TỐT NHẤT NGÀNH Y DƯỢC - CHĂM SÓC SỨC KHOẺ</p>
|
||||
</div>
|
||||
|
||||
<!-- TOP 50 -->
|
||||
<div class="award-item">
|
||||
<div class="award-header">
|
||||
<img src="/_next/image?url=%2Fimages%2Fcareer%2Ftrophy.png&w=640&q=80" alt="Cúp danh hiệu" class="trophy-icon" />
|
||||
<span class="award-badge">TOP 50</span>
|
||||
</div>
|
||||
<p class="award-desc">NƠI LÀM VIỆC TỐT NHẤT VIỆT NAM</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Ảnh Bác sĩ định vị góc phải (Tự động ẩn trên Mobile) -->
|
||||
<div class="doctor-image-box">
|
||||
<img src="/_next/image?url=%2Fimages%2Fcareer%2Fhero-doctor.webp&w=1200&q=80" alt="Đội ngũ Y Bác sĩ S.I.S" />
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user