feat: Adding logging solution + alert for mobile phones
This commit is contained in:
306
public/style.css
306
public/style.css
@@ -1,4 +1,13 @@
|
||||
.app {
|
||||
/* ── Reset & base ─────────────────────────────────────────────────────────── */
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial,
|
||||
"Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
|
||||
color: #e9eef6;
|
||||
@@ -6,8 +15,55 @@
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
body {
|
||||
/* ── Mobile / small-screen overlay ───────────────────────────────────────── */
|
||||
|
||||
.mobileOverlay {
|
||||
display: none; /* hidden on desktop — shown via media query below */
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 200;
|
||||
background: rgba(5, 8, 18, 0.97);
|
||||
backdrop-filter: blur(16px);
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.mobileOverlayCard {
|
||||
max-width: 360px;
|
||||
padding: 40px 28px;
|
||||
border-radius: 24px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
background: rgba(15, 22, 42, 0.9);
|
||||
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
.mobileOverlayIcon {
|
||||
font-size: 52px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.mobileOverlayTitle {
|
||||
margin: 0 0 12px;
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.2px;
|
||||
color: rgba(113, 199, 255, 0.95);
|
||||
}
|
||||
|
||||
.mobileOverlayText {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
color: rgba(233, 238, 246, 0.75);
|
||||
}
|
||||
|
||||
/* Show overlay on small / narrow screens */
|
||||
@media (max-width: 768px), (max-height: 500px) {
|
||||
.mobileOverlay {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Auth overlay ─────────────────────────────────────────────────────────── */
|
||||
@@ -272,8 +328,8 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 10px 20px;
|
||||
border-radius: 16px;
|
||||
padding: 10px 16px;
|
||||
border-radius: 14px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
font-size: 22px;
|
||||
@@ -319,79 +375,96 @@ body {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
/* ── Top bar ──────────────────────────────────────────────────────────────── */
|
||||
/* ── Main app layout ──────────────────────────────────────────────────────── */
|
||||
|
||||
.topbar {
|
||||
.app {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 18px 18px 12px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
background: rgba(7, 10, 20, 0.65);
|
||||
backdrop-filter: blur(8px);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
flex-direction: row;
|
||||
align-items: stretch;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.h1 {
|
||||
font-size: 18px;
|
||||
/* ── Left information column ──────────────────────────────────────────────── */
|
||||
|
||||
.infoColumn {
|
||||
flex: 1 1 0;
|
||||
min-width: 260px;
|
||||
max-width: 420px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
padding: 22px 18px 18px;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
background: rgba(7, 10, 20, 0.55);
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
/* Scrollbar styling for the info column */
|
||||
.infoColumn::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
}
|
||||
.infoColumn::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
.infoColumn::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.infoSection--title .h1 {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
|
||||
.sub {
|
||||
font-size: 12px;
|
||||
opacity: 0.75;
|
||||
margin-top: 3px;
|
||||
.infoSection--title .sub {
|
||||
font-size: 11px;
|
||||
opacity: 0.65;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
/* ── Top-right table ──────────────────────────────────────────────────────── */
|
||||
/* ── Info table (rows of key/value pairs) ─────────────────────────────────── */
|
||||
|
||||
.topRight {
|
||||
.infoTable {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 10px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.infoRow {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
min-height: 22px;
|
||||
}
|
||||
|
||||
.infoKey {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.topRightTable {
|
||||
display: table;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0 4px;
|
||||
}
|
||||
|
||||
.topRightRow {
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
.trKey {
|
||||
display: table-cell;
|
||||
font-size: 11px;
|
||||
opacity: 0.65;
|
||||
white-space: nowrap;
|
||||
min-width: 130px;
|
||||
text-align: right;
|
||||
padding-right: 8px;
|
||||
font-size: 11px;
|
||||
opacity: 0.7;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.trVal {
|
||||
display: table-cell;
|
||||
text-align: left;
|
||||
.infoVal {
|
||||
flex: 1;
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.trVal code {
|
||||
.infoVal code {
|
||||
font-size: 11px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 8px;
|
||||
padding: 2px 7px;
|
||||
border-radius: 7px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
word-break: break-all;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
/* Countdown row */
|
||||
@@ -410,14 +483,16 @@ body {
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: rgba(255, 193, 113, 0.9);
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.countdownVal {
|
||||
display: table-cell;
|
||||
font-size: 14px;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: rgba(255, 193, 113, 1);
|
||||
vertical-align: middle;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.countdown {
|
||||
@@ -429,7 +504,6 @@ body {
|
||||
.countdownUnit {
|
||||
font-size: 12px;
|
||||
opacity: 0.8;
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
/* User display */
|
||||
@@ -459,51 +533,86 @@ body {
|
||||
}
|
||||
|
||||
.muted {
|
||||
opacity: 0.7;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
/* ── Controls ──────────────────────────────────────────────────────────────── */
|
||||
|
||||
.controls {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px 12px;
|
||||
padding: 9px 14px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||||
background: rgba(113, 199, 255, 0.16);
|
||||
color: #e9eef6;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: rgba(113, 199, 255, 0.22);
|
||||
background: rgba(113, 199, 255, 0.24);
|
||||
}
|
||||
|
||||
.main {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 360px;
|
||||
gap: 14px;
|
||||
padding: 14px 18px 18px;
|
||||
}
|
||||
/* ── Selection panel ─────────────────────────────────────────────────────── */
|
||||
|
||||
.board {
|
||||
position: relative;
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.10);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
.panel {
|
||||
border-radius: 14px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.09);
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
overflow: hidden;
|
||||
flex: 1 1 auto;
|
||||
min-height: 80px;
|
||||
}
|
||||
|
||||
.panelTitle {
|
||||
padding: 10px 14px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
opacity: 0.7;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
.details {
|
||||
margin: 0;
|
||||
padding: 12px 14px 14px;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
color: rgba(233, 238, 246, 0.92);
|
||||
}
|
||||
|
||||
.details--hidden {
|
||||
color: rgba(233, 238, 246, 0.4);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* ── Galaxy: square, pinned to the right ──────────────────────────────────── */
|
||||
|
||||
.galaxyMain {
|
||||
/* Height fills the viewport; aspect-ratio keeps it perfectly square */
|
||||
flex: 0 0 auto;
|
||||
position: relative;
|
||||
height: 100vh;
|
||||
aspect-ratio: 1 / 1;
|
||||
/* Constrain width so the canvas never exceeds available space */
|
||||
max-width: calc(100vw - 260px);
|
||||
background: #000;
|
||||
overflow: hidden;
|
||||
min-height: 820px;
|
||||
}
|
||||
|
||||
canvas {
|
||||
display: block;
|
||||
width: min(820px, calc(100vw - 420px));
|
||||
height: min(820px, calc(100vw - 420px));
|
||||
max-width: 820px;
|
||||
max-height: 820px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
|
||||
@@ -515,46 +624,9 @@ canvas {
|
||||
font-size: 12px;
|
||||
opacity: 0.8;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.10);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
background: rgba(7, 10, 20, 0.65);
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
|
||||
.panel {
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.10);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
overflow: hidden;
|
||||
height: fit-content;
|
||||
}
|
||||
|
||||
.panelTitle {
|
||||
padding: 12px 14px;
|
||||
font-weight: 700;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.details {
|
||||
margin: 0;
|
||||
padding: 12px 14px 14px;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
color: rgba(233, 238, 246, 0.92);
|
||||
}
|
||||
|
||||
.details--hidden {
|
||||
color: rgba(233, 238, 246, 0.45);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.main {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
canvas {
|
||||
width: min(820px, calc(100vw - 36px));
|
||||
height: min(820px, calc(100vw - 36px));
|
||||
}
|
||||
max-width: calc(100% - 28px);
|
||||
pointer-events: none;
|
||||
}
|
||||
Reference in New Issue
Block a user