redesign screen-1 and screen-2, add pub status API and FAQ

- add hero video to screen-1 with local Dune Rise font replacing Google Fonts
- screen-2: replace cards with interactive FAQ accordion (6 questions + 5 nested)
- add SSB pub node status monitor with live API polling
- add Flask API (/api/status/ssb, /api/status/ecoind) proxied via nginx
- full responsive CSS rewrite (1024px, 768px, 480px breakpoints)
- strip all accent marks for Dune Rise font compatibility

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
CAPITANSITO 2026-04-04 03:01:27 +02:00
parent c9bf099c29
commit 48053b47ec
8 changed files with 648 additions and 219 deletions

View file

@ -1,12 +1,19 @@
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&family=Rajdhani:wght@400;700&display=swap');
@font-face {
font-family: "Dune Rise";
src: url("/fonts/Dune_Rise.otf") format("opentype"),
url("/fonts/Dune_Rise.ttf") format("truetype");
font-weight: normal;
font-style: normal;
font-display: swap;
}
:root {
--orange-neon: #FF5E00;
--yellow: #FFD700;
--black: #000000;
--highlight: #FF8C00;
--font-body: 'Rajdhani', sans-serif;
--font-display: 'Orbitron', sans-serif;
--font-body: "Dune Rise", sans-serif;
--font-display: "Dune Rise", sans-serif;
}
* {
@ -127,16 +134,16 @@ body {
/* === Tagline justo debajo y centrado === */
.screen-1 .intro-block {
position: relative;
margin-top: 8rem; /* separa del header */
margin-top: 0;
display: flex;
justify-content: center;
}
.screen-1 .intro-block h2 {
font-size: 3rem; /* más grande */
color: #42FF00; /* verde puro */
font-size: 2.2rem;
color: #42FF00;
text-shadow: 0 0 6px #42FF00;
margin-top: 14rem;
margin-top: 7rem;
text-align: center;
}
@ -185,7 +192,8 @@ body {
text-decoration: none;
transition: all 0.3s ease;
justify-content: center;
font-size: 2em;
font-size: 1.6rem;
padding: 0.5rem 1.4rem;
}
@ -379,217 +387,436 @@ body {
border-top: 1px solid var(--orange-neon);
}
/* === Hero video (screen-1) === */
.hero-video-wrap {
width: 100%;
max-width: 980px;
margin: 9rem auto 0;
border: 2px solid var(--orange-neon);
box-shadow: 0 0 20px rgba(255, 94, 0, 0.4);
border-radius: 6px;
overflow: hidden;
}
.hero-video {
width: 100%;
display: block;
}
/* === Screen-2 title === */
.screen2-title {
font-size: 3rem;
color: var(--orange-neon);
font-family: var(--font-display);
margin-bottom: 1.5rem;
text-shadow: 0 0 8px var(--orange-neon);
}
.screen2-subtitle {
font-size: 1.4rem;
color: var(--yellow);
text-shadow: none;
letter-spacing: 0.05em;
}
.btn-sm {
font-size: 0.85rem !important;
padding: 0.4rem 1rem;
}
.btn-overview {
display: inline-block;
background: var(--yellow);
color: #000;
font-family: var(--font-display);
font-size: 2rem;
font-weight: bold;
padding: 1rem 3rem;
border: 3px solid var(--yellow);
border-radius: 6px;
text-decoration: none;
letter-spacing: 0.08em;
box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
transition: all 0.3s ease;
}
.btn-overview:hover {
background: transparent;
color: var(--yellow);
box-shadow: 0 0 35px rgba(255, 215, 0, 0.7);
transform: scale(1.04);
}
/* === FAQ Accordion (screen-2) === */
.faq-section {
margin-top: 2rem;
display: flex;
flex-direction: column;
gap: 0.8rem;
}
.faq-item {
border: 1px solid var(--orange-neon);
border-radius: 6px;
overflow: hidden;
}
.faq-q {
width: 100%;
background: rgba(255, 94, 0, 0.08);
border: none;
color: var(--yellow);
font-family: var(--font-display);
font-size: 1.1rem;
text-align: left;
padding: 1rem 1.4rem;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: background 0.3s;
letter-spacing: 0.05em;
}
.faq-q:hover {
background: rgba(255, 94, 0, 0.18);
}
.faq-q .faq-arrow {
color: var(--orange-neon);
font-size: 1.2rem;
transition: transform 0.3s;
flex-shrink: 0;
}
.faq-item.open .faq-arrow {
transform: rotate(180deg);
}
.faq-a {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease, padding 0.3s ease;
padding: 0 1.4rem;
color: rgba(255, 215, 0, 0.8);
font-family: var(--font-body);
font-size: 0.95rem;
line-height: 1.7;
background: rgba(0, 0, 0, 0.5);
}
.faq-item.open > .faq-a {
max-height: 1200px;
padding: 1rem 1.4rem;
}
/* Nested FAQ */
.faq-a-nested {
padding: 0.5rem 0 !important;
background: transparent;
}
.faq-nested {
margin-top: 0;
gap: 0.5rem;
}
.faq-item-sub {
border-color: rgba(255, 94, 0, 0.3);
}
.faq-q-sub {
font-size: 0.9rem;
background: rgba(255, 94, 0, 0.04);
padding: 0.7rem 1rem;
}
.faq-item-sub.open > .faq-a {
max-height: 400px;
padding: 0.8rem 1rem;
}
/* === Pub terminal panel (screen-2) === */
@font-face {
font-family: "JetBrains Mono";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
}
@font-face {
font-family: "JetBrains Mono";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2");
}
.pub-terminal {
font-family: "JetBrains Mono", "Courier New", monospace;
font-size: 1rem;
border: 2px solid var(--orange-neon);
box-shadow: 0 0 25px rgba(255, 94, 0, 0.2);
position: relative;
overflow: hidden;
}
.pub-terminal::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
background: repeating-linear-gradient(0deg, rgba(0,0,0,0.08), rgba(0,0,0,0.08) 1px, transparent 1px, transparent 2px);
z-index: 0;
}
.pub-terminal > * { position: relative; z-index: 1; }
.term-header {
color: var(--orange-neon);
text-align: center;
font-size: 1.1rem;
letter-spacing: 0.2em;
margin-bottom: 1.5rem;
text-shadow: 0 0 10px var(--orange-neon);
border-bottom: 1px solid rgba(255, 94, 0, 0.3);
padding-bottom: 1rem;
}
.term-prompt { color: var(--yellow); margin-right: 0.5rem; }
.term-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.2rem;
margin-bottom: 1.5rem;
}
.term-card {
border: 1px solid rgba(255, 94, 0, 0.4);
padding: 1rem 1.2rem;
background: rgba(0, 0, 0, 0.6);
border-radius: 4px;
transition: border-color 0.3s, box-shadow 0.3s;
}
.term-card:hover {
border-color: var(--orange-neon);
box-shadow: 0 0 12px rgba(255, 94, 0, 0.3);
}
.term-card-head {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.8rem;
padding-bottom: 0.8rem;
border-bottom: 1px dashed rgba(255, 94, 0, 0.3);
}
.term-svc { color: var(--yellow); font-weight: bold; font-size: 0.95rem; }
.term-indicator { display: flex; align-items: center; gap: 6px; }
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.online { background: #42FF00; box-shadow: 0 0 8px #42FF00; animation: pulse-dot 2s infinite; }
.term-dot.offline { background: #ff3333; box-shadow: 0 0 8px #ff3333; }
.term-dot.checking{ background: var(--yellow); box-shadow: 0 0 8px var(--yellow); animation: pulse-dot 1s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.5} }
.term-status { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.term-status.online { color: #42FF00; }
.term-status.offline { color: #ff3333; }
.term-status.checking{ color: var(--yellow); }
.term-row {
display: flex;
justify-content: space-between;
font-size: 0.85rem;
color: rgba(255, 215, 0, 0.6);
margin: 0.3rem 0;
}
.term-row span { color: var(--orange-neon); font-weight: bold; }
.term-pubinfo {
border: 1px dashed rgba(255, 94, 0, 0.3);
padding: 0.8rem 1rem;
margin-bottom: 1rem;
background: rgba(0,0,0,0.4);
border-radius: 4px;
word-break: break-all;
}
.term-pubinfo-line {
display: flex;
gap: 1rem;
font-size: 0.78rem;
margin: 0.3rem 0;
flex-wrap: wrap;
}
.term-label { color: var(--orange-neon); min-width: 80px; flex-shrink: 0; }
.term-val { color: rgba(255, 215, 0, 0.7); font-family: "JetBrains Mono", monospace; }
.term-lastcheck {
text-align: center;
font-size: 0.75rem;
color: rgba(255, 215, 0, 0.4);
padding-top: 0.5rem;
border-top: 1px solid rgba(255, 94, 0, 0.15);
}
/* ===== TABLET GRANDE (≤1024px) ===== */
@media (max-width: 1024px) {
.screen-1 .header .logo {
left: 3rem;
top: 2rem;
height: 110px;
}
.screen-1 .header .main-title {
font-size: 7rem;
}
.hero-video-wrap {
margin-top: 6rem;
max-width: 720px;
}
.content {
font-size: 1.4rem;
padding: 2rem 1.5rem;
}
.btn_main {
font-size: 1.2rem;
}
.btn-overview {
font-size: 1.5rem;
padding: 0.8rem 2rem;
}
}
/* ===== TABLET / MÓVIL LANDSCAPE (≤768px) ===== */
@media (max-width: 768px) {
.header .main-title {
font-size: 5rem;
font-family: var(--font-display);
color: var(--orange-neon);
text-shadow: 0 0 10px var(--orange-neon);
}
.buttons {
margin-top: 2rem;
display: flex;
gap: 1.5rem;
flex-wrap: wrap;
text-align: center;
justify-content: center;
/* Fix background fixed — no funciona bien en iOS */
.screen {
background-attachment: scroll;
padding: 2.5rem 1.2rem;
}
.main-nav ul {
flex-direction: row;
flex-wrap: wrap;
gap: 1rem;
justify-content: center;
}
.main-nav a {
font-size: 0.8rem;
}
.intro-block {
/* Header screen-1: apilado vertical centrado */
.screen-1 .header {
position: absolute;
bottom: 30%;
text-align: center;
}
.logo-title-wrap {
top: 1.2rem;
left: 0; right: 0;
flex-direction: column;
margin-bottom: 8rem;
alighn: center;
align-items: center;
gap: 0;
}
.screen-1 .header .logo {
position: relative;
left: auto; top: auto;
height: 65px;
margin: 0 auto;
}
.screen-1 .header .main-title,
.header .main-title {
font-size: 4.5rem;
margin-top: 0.4rem;
}
.screen-1 .intro-block h2 {
font-size: 1.3rem;
margin-top: 2.5rem;
}
.card-group {
flex-direction: column;
}
.card-group .card {
flex: 1 1 100%;
.hero-video-wrap {
margin-top: 1.8rem;
max-width: 100%;
}
.card .btn {
display: block;
text-align: center;
}
.card .buttons {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
text-align: center;
gap: 1rem;
.buttons {
gap: 0.7rem;
margin-top: 1rem;
margin-bottom: 1rem;
}
.btn_main {
font-size: 0.95rem;
padding: 0.4rem 0.9rem;
}
.header .logo {
height: 60px;
}
.content h2 {
font-size: 2rem;
text-align: center;
}
.card h3 {
font-size: 1.2rem;
}
.card p {
.content {
font-size: 1rem;
padding: 1.5rem 1rem;
}
.content h2 { font-size: 1.7rem; }
.screen2-title { font-size: 1.8rem; }
.screen2-subtitle { font-size: 0.95rem; }
.btn-overview {
font-size: 1.1rem;
padding: 0.7rem 1.5rem;
width: 100%;
text-align: center;
box-sizing: border-box;
}
.card .extra-info {
max-height: 0;
overflow: hidden;
opacity: 0;
visibility: hidden;
.faq-q {
font-size: 0.85rem;
padding: 0.8rem 1rem;
}
.faq-a { font-size: 0.85rem; }
.term-grid { grid-template-columns: 1fr; }
.term-header { font-size: 0.9rem; letter-spacing: 0.1em; }
.card-group { flex-direction: column; }
.card-group .card { flex: 1 1 100%; max-width: 100%; }
.card h3 { font-size: 1.1rem; }
.card p { font-size: 0.9rem; }
.card .btn { display: block; text-align: center; }
.card .buttons { justify-content: center; gap: 0.8rem; margin-top: 0.8rem; }
.card .extra-info {
max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
margin-top: 0;
transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}
.card.expanded .extra-info,
.card:hover .extra-info {
max-height: 750px;
opacity: 1;
visibility: visible;
margin-top: 1rem;
max-height: 750px; opacity: 1; visibility: visible; margin-top: 1rem;
}
}
/* ===== MÓVIL PORTRAIT (≤480px) ===== */
@media (max-width: 480px) {
/* stack title → logo (instead of column-reverse) */
.header {
flex-direction: column;
align-items: center;
top: 4rem; /* pull the whole header down */
}
.screen { padding: 1.5rem 0.8rem; }
/* much smaller heading */
.screen-1 .header .logo {
height: 50px;
}
.screen-1 .header .main-title,
.header .main-title {
font-size: 5rem !important; /* force it */
margin: 2rem 0; /* some breathing room */
font-size: 3rem !important;
margin-top: 0.3rem;
line-height: 1.1;
}
/* Logo centrado y separado del título */
.header .logo {
order: 2;
margin: 5rem -2rem ; /* arriba, auto (centra), abajo */
height: 100px; /* ajusta a tu gusto */
display: block; /* para que margin-auto centre bien */
}
.main-nav ul {
gap: 0.5rem;
}
.main-nav a {
font-size: 0.7rem;
}
.intro-block {
position: absolute;
bottom: 30%;
text-align: center;
}
.intro-text h2 {
font-size: 1.5rem;
text-align: left;
}
.intro-text span {
font-size: 1.6rem;
}
.btn {
font-size: 1.2rem;
justify-content: center;
}
.buttons {
margin-top: 2rem;
display: flex;
gap: 1.5rem;
flex-wrap: wrap;
text-align: center;
justify-content: center;
}
.card h3 {
.screen-1 .intro-block h2 {
font-size: 1rem;
margin-top: 1.8rem;
}
.card-group {
flex-direction: column;
.hero-video-wrap { margin-top: 1.2rem; }
.buttons { gap: 0.5rem; margin-top: 0.8rem; margin-bottom: 0.8rem; }
.btn_main {
font-size: 0.8rem;
padding: 0.35rem 0.7rem;
}
.card-group .card {
flex: 1 1 100%;
max-width: 100%;
}
.content { font-size: 0.9rem; padding: 1rem 0.8rem; }
.content h2 { font-size: 1.3rem; }
.card p {
font-size: 0.9rem;
}
.screen2-title { font-size: 1.4rem; }
.screen2-subtitle { font-size: 0.8rem; display: block; margin-top: 0.3rem; }
.card .btn {
display: block;
text-align: center;
}
.card .buttons {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
text-align: center;
gap: 1rem;
margin-top: 1rem;
}
.content h2 {
font-size: 1.4rem;
.btn-overview {
font-size: 0.95rem;
padding: 0.6rem 1rem;
width: 100%;
text-align: center;
}
.faq-q { font-size: 0.78rem; padding: 0.7rem 0.8rem; }
.faq-a { font-size: 0.8rem; line-height: 1.6; }
.term-header { font-size: 0.8rem; }
.term-svc { font-size: 0.8rem; }
.term-row { font-size: 0.75rem; }
.term-pubinfo-line { font-size: 0.7rem; }
.card h3 { font-size: 1rem; }
.card p { font-size: 0.85rem; }
.card-group { flex-direction: column; }
.card-group .card { flex: 1 1 100%; max-width: 100%; }
.card .btn { display: block; text-align: center; }
.card .buttons { justify-content: center; gap: 0.7rem; margin-top: 0.8rem; }
.card .extra-info {
max-height: 0;
overflow: hidden;
opacity: 0;
visibility: hidden;
margin-top: 0;
max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; margin-top: 0;
transition: max-height 0.4s ease, opacity 0.4s ease;
}
.card:hover .extra-info,
.card.expanded .extra-info {
max-height: 750px;
opacity: 1;
visibility: visible;
margin-top: 1rem;
max-height: 750px; opacity: 1; visibility: visible; margin-top: 1rem;
}
}