Skip to content

Commit 4045ad5

Browse files
committed
Simplify banner to single-line with dark text for better contrast
- Made banner single-line by combining label and message - Changed text color to dark (#1a1a1a) for better contrast on light backgrounds - Reduced banner height from 48px to 40px (36px tablet, 32px mobile) - Removed unused label styles and simplified layout - Updated link hover effect to use border-bottom instead of opacity - Adjusted taskbar position to match new banner height (top: 40px) - Improved visual hierarchy with bold 'PROOF OF CONCEPT:' prefix
1 parent 5ced2a2 commit 4045ad5

File tree

3 files changed

+28
-56
lines changed

3 files changed

+28
-56
lines changed

frontend/src/components/ProofOfConceptBanner.css

Lines changed: 25 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
right: 0;
77
z-index: 9999;
88
background: linear-gradient(135deg, #87CEEB, #4682B4);
9-
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
9+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
1010
display: flex;
1111
align-items: center;
1212
justify-content: space-between;
13-
padding: 10px 24px;
14-
height: 48px;
13+
padding: 8px 24px;
14+
height: 40px;
1515
box-sizing: border-box;
1616
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
1717
animation: slideDown 0.3s ease-out;
@@ -36,7 +36,7 @@
3636
}
3737

3838
.poc-banner-icon {
39-
color: #ffffff;
39+
color: #1a1a1a;
4040
display: flex;
4141
align-items: center;
4242
justify-content: center;
@@ -47,42 +47,34 @@
4747

4848
.poc-banner-text {
4949
display: flex;
50-
flex-direction: column;
51-
gap: 2px;
52-
color: #ffffff;
53-
}
54-
55-
.poc-banner-label {
56-
font-size: 12px;
57-
font-weight: 700;
58-
letter-spacing: 1px;
59-
text-transform: uppercase;
60-
line-height: 1;
50+
align-items: center;
51+
color: #1a1a1a;
52+
flex: 1;
6153
}
6254

6355
.poc-banner-message {
64-
font-size: 13px;
56+
font-size: 14px;
6557
font-weight: 400;
66-
line-height: 1.3;
67-
opacity: 0.95;
58+
line-height: 1;
6859
}
6960

7061
.poc-banner-message a {
71-
color: #ffffff;
72-
text-decoration: underline;
73-
font-weight: 500;
74-
margin-left: 8px;
62+
color: #1a1a1a;
63+
text-decoration: none;
64+
font-weight: 600;
65+
margin-left: 12px;
7566
transition: opacity 0.2s ease;
67+
border-bottom: 1px solid transparent;
7668
}
7769

7870
.poc-banner-message a:hover {
79-
opacity: 0.8;
71+
border-bottom: 1px solid #1a1a1a;
8072
}
8173

8274
.poc-banner-close {
8375
background: transparent;
8476
border: none;
85-
color: #ffffff;
77+
color: #1a1a1a;
8678
cursor: pointer;
8779
padding: 4px;
8880
border-radius: 4px;
@@ -91,40 +83,32 @@
9183
justify-content: center;
9284
transition: all 0.2s ease;
9385
flex-shrink: 0;
94-
opacity: 0.8;
86+
opacity: 0.7;
9587
}
9688

9789
.poc-banner-close:hover {
98-
background: rgba(255, 255, 255, 0.1);
90+
background: rgba(0, 0, 0, 0.1);
9991
opacity: 1;
10092
}
10193

10294
.poc-banner-close:focus {
103-
outline: 2px solid rgba(255, 255, 255, 0.3);
95+
outline: 2px solid rgba(0, 0, 0, 0.2);
10496
outline-offset: 2px;
10597
}
10698

10799
/* Mobile Responsive */
108100
@media (max-width: 768px) {
109101
.poc-banner {
110-
padding: 8px 16px;
111-
height: 44px;
102+
padding: 6px 16px;
103+
height: 36px;
112104
}
113105

114106
.poc-banner-content {
115107
gap: 8px;
116108
}
117109

118-
.poc-banner-text {
119-
gap: 1px;
120-
}
121-
122-
.poc-banner-label {
123-
font-size: 11px;
124-
}
125-
126110
.poc-banner-message {
127-
font-size: 12px;
111+
font-size: 13px;
128112
}
129113

130114
.poc-banner-message a {
@@ -134,23 +118,12 @@
134118

135119
@media (max-width: 480px) {
136120
.poc-banner {
137-
padding: 6px 12px;
138-
height: 40px;
139-
}
140-
141-
.poc-banner-text {
142-
flex-direction: row;
143-
align-items: center;
144-
gap: 8px;
145-
flex-wrap: wrap;
146-
}
147-
148-
.poc-banner-label {
149-
font-size: 10px;
121+
padding: 5px 12px;
122+
height: 32px;
150123
}
151124

152125
.poc-banner-message {
153-
font-size: 11px;
126+
font-size: 12px;
154127
}
155128
}
156129

frontend/src/components/ProofOfConceptBanner.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ const ProofOfConceptBanner: React.FC = () => {
1717
</svg>
1818
</div>
1919
<div className="poc-banner-text">
20-
<span className="poc-banner-label">PROOF OF CONCEPT</span>
2120
<span className="poc-banner-message">
22-
This is a demonstration version. Features are under active development.
21+
<strong>PROOF OF CONCEPT:</strong> This is a demonstration version. Features are under active development.
2322
<a href="https://github.com/bitcoin-apps-suite/bitcoin-spreadsheet" target="_blank" rel="noopener noreferrer">
24-
Contribute on GitHub
23+
Contribute on GitHub
2524
</a>
2625
</span>
2726
</div>

frontend/src/components/SpreadsheetTaskbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ const SpreadsheetTaskbar: React.FC<TaskbarProps> = ({
533533
color: '#ffffff',
534534
userSelect: 'none',
535535
position: 'fixed',
536-
top: 48, // Account for proof of concept banner
536+
top: 40, // Account for proof of concept banner
537537
left: 0,
538538
right: 0,
539539
zIndex: 10000

0 commit comments

Comments
 (0)