Refined Discover and Transport UI, added shuttle categorization and descriptions
This commit is contained in:
@ -16,6 +16,8 @@ const shuttleForm = ref({
|
||||
origin: 'Boquete',
|
||||
destination: 'Santa Catalina',
|
||||
vehicle_type: 'Mini Van Compartida',
|
||||
category: 'local',
|
||||
description: '',
|
||||
price_per_person: 35,
|
||||
price_private_trip: 180,
|
||||
estimated_duration: '4.5 horas',
|
||||
@ -66,6 +68,8 @@ async function saveShuttle() {
|
||||
origin: shuttleForm.value.origin,
|
||||
destination: shuttleForm.value.destination,
|
||||
vehicle_type: shuttleForm.value.vehicle_type,
|
||||
category: shuttleForm.value.category,
|
||||
description: shuttleForm.value.description,
|
||||
company_name: shuttleForm.value.company_name,
|
||||
price_per_person: shuttleForm.value.price_per_person,
|
||||
price_private_trip: shuttleForm.value.price_private_trip,
|
||||
@ -144,9 +148,28 @@ async function saveShuttle() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group grid-row">
|
||||
<div class="input-box">
|
||||
<label>Tipo de Vehículo</label>
|
||||
<input v-model="shuttleForm.vehicle_type" type="text" placeholder="Mini Van Compartida">
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<label>Categoría</label>
|
||||
<select v-model="shuttleForm.category" class="nexus-select">
|
||||
<option value="local">Evento Local / Interno</option>
|
||||
<option value="interprovincial">Interprovincial (Fuera de provincia)</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Tipo de Vehículo</label>
|
||||
<input v-model="shuttleForm.vehicle_type" type="text" placeholder="Mini Van Compartida">
|
||||
<label>Descripción del Viaje</label>
|
||||
<textarea
|
||||
v-model="shuttleForm.description"
|
||||
placeholder="Añade detalles sobre el itinerario, paradas, o qué incluye el viaje..."
|
||||
rows="3"
|
||||
class="nexus-textarea"
|
||||
></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group grid-row">
|
||||
@ -276,6 +299,11 @@ async function saveShuttle() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- NUEVA DESCRIPCIÓN EN PREVIEW -->
|
||||
<div class="shuttle-description-preview" v-if="shuttleForm.description">
|
||||
<p>{{ shuttleForm.description }}</p>
|
||||
</div>
|
||||
|
||||
<!-- Precios prominentes -->
|
||||
<div class="price-block">
|
||||
<div class="price-row-main">
|
||||
@ -339,6 +367,7 @@ async function saveShuttle() {
|
||||
font-weight: 800;
|
||||
margin: 0;
|
||||
background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
|
||||
background-clip: text;
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
@ -409,7 +438,7 @@ async function saveShuttle() {
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.form-group input {
|
||||
.form-group input, .nexus-select, .nexus-textarea {
|
||||
background: rgba(15, 23, 42, 0.5);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
padding: 14px 16px;
|
||||
@ -420,11 +449,34 @@ async function saveShuttle() {
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.form-group input:focus {
|
||||
.nexus-select {
|
||||
cursor: pointer;
|
||||
appearance: none;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 1rem center;
|
||||
background-size: 1.5em;
|
||||
padding-right: 3rem;
|
||||
}
|
||||
|
||||
.nexus-textarea {
|
||||
resize: vertical;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
.form-group input:focus, .nexus-select:focus, .nexus-textarea:focus {
|
||||
border-color: #fee715;
|
||||
box-shadow: 0 0 0 4px rgba(254, 231, 21, 0.1);
|
||||
}
|
||||
|
||||
.shuttle-description-preview {
|
||||
padding: 0 20px 14px;
|
||||
color: rgba(255,255,255,0.7);
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.5;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.file-upload-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user