You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

223 lines
4.8 KiB
Vue

2 months ago
<!-- components/process/ProcessSection.vue -->
<template>
2 months ago
<section class="process-section" aria-labelledby="process-title">
2 months ago
<div class="section-container">
<div class="section-header">
2 months ago
<h2 id="process-title" class="section-title">Proceso de Admisión 2026</h2>
2 months ago
<p class="section-subtitle">
Sigue estos pasos para postular al Examen General 2026-I
</p>
</div>
2 months ago
<div class="process-card">
<a-steps
:current="currentStep"
:direction="isMobile ? 'vertical' : 'horizontal'"
:responsive="false"
class="modern-steps"
>
2 months ago
<a-step title="Preinscripción Virtual" description="20 Oct - 30 Nov" />
<a-step title="Inscripción Presencial" description="1 - 5 Dic" />
<a-step title="Examen" description="15 Diciembre" />
<a-step title="Resultados" description="20 Diciembre" />
<a-step title="Control Biométrico Ingresantes" description="8 - 12 Ene" />
</a-steps>
2 months ago
<div class="process-note">
<span class="dot" />
<span>Fechas referenciales. Verifica el cronograma oficial de la Dirección de Admisión</span>
</div>
</div>
2 months ago
</div>
</section>
</template>
2 months ago
<script setup>
import { ref, onMounted, onUnmounted } from "vue"
/**
* Si quieres mantenerlo fijo como antes, deja 2.
* Si luego quieres automático por fecha, te lo ajusto con tu cronograma real.
*/
const currentStep = 2
const isMobile = ref(false)
const checkScreen = () => {
isMobile.value = window.innerWidth < 768
}
onMounted(() => {
checkScreen()
window.addEventListener("resize", checkScreen)
})
onUnmounted(() => {
window.removeEventListener("resize", checkScreen)
})
</script>
2 months ago
<style scoped>
.process-section {
2 months ago
padding: 30px 0;
background: #ffffff;
2 months ago
font-family: "Times New Roman", Times, serif;
}
.section-container {
max-width: 1100px;
margin: 0 auto;
padding: 0 20px;
}
.section-header {
text-align: center;
2 months ago
margin-bottom: 18px;
2 months ago
}
.section-title {
font-size: 2.1rem;
2 months ago
font-weight: 700;
2 months ago
color: #2c3e50;
2 months ago
margin: 0 0 6px 0;
2 months ago
line-height: 1.2;
}
.section-subtitle {
font-size: 1rem;
color: #777;
margin: 0;
line-height: 1.4;
}
2 months ago
/* Card contenedora (se ve moderno sin fondo gris) */
.process-card {
border: 1px solid #e5e7eb;
border-radius: 14px;
padding: 16px 14px 12px;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
background: #fff;
2 months ago
}
2 months ago
/* Steps compactos */
2 months ago
.modern-steps {
2 months ago
padding: 8px 8px;
}
/* ====== IMPORTANTE: evitar que se corten letras (sin "…") ====== */
.modern-steps :deep(.ant-steps-item-title) {
white-space: normal !important; /* permite salto de línea */
overflow: visible !important; /* no ocultar texto */
text-overflow: clip !important; /* sin "..." */
max-width: none !important;
}
.modern-steps :deep(.ant-steps-item-content) {
min-width: 0; /* clave para que wrap funcione en flex */
width: 100%;
}
.modern-steps :deep(.ant-steps-item-container) {
align-items: flex-start; /* título de 2 líneas se alinea bien */
2 months ago
}
.modern-steps :deep(.ant-steps-item) {
2 months ago
flex: 1 1 0; /* reparte espacio */
2 months ago
}
2 months ago
/* Tipografías de steps */
2 months ago
.modern-steps :deep(.ant-steps-item-title) {
2 months ago
font-size: 0.95rem;
font-weight: 700;
2 months ago
color: #34495e;
2 months ago
line-height: 1.15;
2 months ago
}
.modern-steps :deep(.ant-steps-item-description) {
2 months ago
font-size: 0.82rem;
2 months ago
color: #888;
margin-top: 2px;
2 months ago
line-height: 1.25;
2 months ago
}
2 months ago
/* Iconos */
2 months ago
.modern-steps :deep(.ant-steps-item-icon) {
2 months ago
width: 30px;
height: 30px;
line-height: 30px;
2 months ago
font-size: 13px;
}
2 months ago
/* Línea */
2 months ago
.modern-steps :deep(.ant-steps-item-tail::after) {
height: 2px;
background: #dfe6e9;
}
/* Step activo */
.modern-steps :deep(.ant-steps-item-process .ant-steps-item-icon) {
2 months ago
background-color: #1e3a8a;
border-color: #1e3a8a;
2 months ago
}
2 months ago
/* Step terminado (mejor look) */
.modern-steps :deep(.ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon) {
color: #1e3a8a;
}
.modern-steps :deep(.ant-steps-item-finish .ant-steps-item-icon) {
border-color: #1e3a8a;
2 months ago
}
2 months ago
/* Nota inferior */
.process-note {
display: flex;
align-items: center;
gap: 10px;
margin-top: 10px;
font-size: 0.86rem;
color: #6b7280;
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #1e3a8a;
flex-shrink: 0;
}
2 months ago
2 months ago
/* Tablet */
@media (max-width: 992px) {
.section-title {
font-size: 1.85rem;
}
.modern-steps :deep(.ant-steps-item-title) {
font-size: 0.92rem;
}
}
/* Mobile */
@media (max-width: 768px) {
.process-section {
padding: 24px 0;
}
.section-title {
font-size: 1.55rem;
}
.process-card {
padding: 12px 10px 10px;
}
.modern-steps {
padding: 4px 4px;
}
/* en vertical se ve mejor con un poquito más de alto */
.modern-steps :deep(.ant-steps-item-icon) {
width: 28px;
height: 28px;
line-height: 28px;
}
}
</style>