Flight-booking app scaffolded from the source running on the GCP host, plus the four-screen frontend and three OWASP attack endpoints (SQLi, reflected XSS, path traversal) built and locally verified against a live uvicorn/vite dev pair. Includes deploy.sh (local build -> ship over ssh -> swap on host) and docs/ carried over from the handoff.
149 lines
2.4 KiB
CSS
149 lines
2.4 KiB
CSS
:root {
|
|
--bg: #0b1020;
|
|
--panel: #131a2e;
|
|
--border: #232c47;
|
|
--text: #e6e9f2;
|
|
--muted: #8a92b2;
|
|
--accent: #5b8cff;
|
|
--accent-2: #7c5bff;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
background: linear-gradient(160deg, var(--bg), #050810);
|
|
color: var(--text);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
#app { min-height: 100vh; }
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1rem 1.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.brand {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
background: linear-gradient(90deg, var(--accent), var(--accent-2));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
|
|
nav.tabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
nav.tabs button {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--muted);
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
nav.tabs button.active {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
main {
|
|
max-width: 860px;
|
|
margin: 0 auto;
|
|
padding: 2rem 1.5rem;
|
|
}
|
|
|
|
.panel {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.panel h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.field-row {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"] {
|
|
flex: 1;
|
|
background: #0d1326;
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
padding: 0.6rem 0.8rem;
|
|
border-radius: 8px;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
button.primary {
|
|
background: var(--accent);
|
|
border: none;
|
|
color: white;
|
|
padding: 0.6rem 1.2rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
button.primary:hover { opacity: 0.9; }
|
|
|
|
.echo {
|
|
color: var(--muted);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th, td {
|
|
text-align: left;
|
|
padding: 0.5rem 0.6rem;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
th { color: var(--muted); font-weight: 600; }
|
|
|
|
pre.result {
|
|
background: #0d1326;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.status {
|
|
margin-top: 0.75rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.status.error { color: #ff6b6b; }
|
|
.status.ok { color: #63e6be; }
|
|
|
|
.hint {
|
|
color: var(--muted);
|
|
font-size: 0.85rem;
|
|
margin-top: 1.5rem;
|
|
}
|