Compare commits
10
Commits
7806b41305
...
787842fb07
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
787842fb07 | ||
|
|
89bcb0d035 | ||
|
|
43f2eac8bd | ||
|
|
2778664685 | ||
|
|
a07e4af651 | ||
|
|
d7d2c95927 | ||
|
|
dee3beabdc | ||
|
|
d04c63f69d | ||
|
|
790f69c3b8 | ||
|
|
b1d9e96c81 |
@@ -0,0 +1,17 @@
|
|||||||
|
name: Primera prueba del runner de Gitea en daw_newber
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
prueba:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Comprobar ejecución
|
||||||
|
run: 'echo "Equipo: $(hostname) - Fecha: $(date)"'
|
||||||
|
|
||||||
|
- name: Mostrar usuario y repositorio en Gitea
|
||||||
|
run: |
|
||||||
|
echo "Usuario: $GITHUB_ACTOR"
|
||||||
|
echo "Repositorio: $GITHUB_REPOSITORY"
|
||||||
+20
-4
@@ -27,10 +27,19 @@ body {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-links {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
.nav-links a {
|
.nav-links a {
|
||||||
color: white;
|
color: white;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
margin-left: 25px;
|
}
|
||||||
|
|
||||||
|
.nav-links a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero {
|
.hero {
|
||||||
@@ -99,6 +108,12 @@ button:hover {
|
|||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#results article {
|
||||||
|
padding: 15px;
|
||||||
|
background: #f5f7fa;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.info-section {
|
.info-section {
|
||||||
padding: 40px 8%;
|
padding: 40px 8%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -135,11 +150,12 @@ footer {
|
|||||||
gap: 15px;
|
gap: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-links a {
|
.nav-links {
|
||||||
margin: 0 8px;
|
justify-content: center;
|
||||||
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero h1 {
|
.hero h1 {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+6
-7
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="es">
|
<html lang="es">
|
||||||
<head>
|
<head>
|
||||||
@@ -9,14 +8,15 @@
|
|||||||
<script src="js/app.js" defer></script>
|
<script src="js/app.js" defer></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<nav class="navbar">
|
<nav class="navbar">
|
||||||
<a href="#" class="logo">newber</a>
|
<a href="/" class="logo">newber</a>
|
||||||
|
|
||||||
<div class="nav-links">
|
<div class="nav-links">
|
||||||
<a href="#buscar">Buscar trayecto</a>
|
<a href="#buscar">Buscar trayecto</a>
|
||||||
<a href="#como-funciona">Cómo funciona</a>
|
<a href="#como-funciona">Cómo funciona</a>
|
||||||
<a href="#contacto">Contacto</a>
|
<a href="http://newber.mmz.abrdns.com/minewber/">Mi Newber</a>
|
||||||
|
<a href="http://newber.mmz.abrdns.com/admin/">Gestión Newber</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
@@ -76,9 +76,8 @@
|
|||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer id="contacto">
|
<footer>
|
||||||
<p>© 2026 Newber. Comparte tu camino.</p>
|
<p>© 2026 Newber. Comparte tu camino.</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
|
||||||
|
const form = document.getElementById("search-form");
|
||||||
|
const results = document.getElementById("results");
|
||||||
|
|
||||||
|
form.addEventListener("submit", function(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
const origin = document.getElementById("origin").value.trim();
|
||||||
|
const destination = document.getElementById("destination").value.trim();
|
||||||
|
const date = document.getElementById("date").value;
|
||||||
|
|
||||||
|
results.replaceChildren();
|
||||||
|
|
||||||
|
if (!origin || !destination || !date) {
|
||||||
|
results.textContent = "Completa todos los campos.";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (origin.toLowerCase() === destination.toLowerCase()) {
|
||||||
|
results.textContent = "El origen y el destino deben ser diferentes.";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const article = document.createElement("article");
|
||||||
|
|
||||||
|
const title = document.createElement("h3");
|
||||||
|
title.textContent = "Trayecto de demostración";
|
||||||
|
|
||||||
|
const route = document.createElement("p");
|
||||||
|
route.textContent = `${origin} → ${destination}`;
|
||||||
|
|
||||||
|
const travelDate = document.createElement("p");
|
||||||
|
travelDate.textContent = `Fecha: ${date}`;
|
||||||
|
|
||||||
|
const message = document.createElement("p");
|
||||||
|
message.textContent =
|
||||||
|
"Este es un resultado ficticio. Próximamente podrás reservar tu plaza.";
|
||||||
|
|
||||||
|
article.append(title, route, travelDate, message);
|
||||||
|
results.appendChild(article);
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user