Skip to content

Commit 77ad843

Browse files
committed
feat(a11y)
1 parent a298067 commit 77ad843

File tree

2 files changed

+41
-46
lines changed

2 files changed

+41
-46
lines changed

apps/web/src/App.css

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
display: flex;
3030
align-items: center;
3131
gap: 1rem;
32+
background: rgba(0, 20, 45, 0.85);
33+
border: 1px solid rgba(59, 126, 161, 0.6);
34+
border-radius: 12px;
35+
padding: 0.75rem 1.1rem;
36+
box-shadow: 0 12px 24px rgba(0, 14, 32, 0.55);
3237
}
3338

3439
.brand-logo {
@@ -41,29 +46,14 @@
4146
box-shadow: 0 12px 26px rgba(255, 198, 70, 0.22);
4247
}
4348

44-
.brand-copy {
45-
display: flex;
46-
flex-direction: column;
47-
gap: 0.2rem;
48-
}
49-
5049
.brand-title {
51-
font-size: 1.65rem;
52-
font-weight: 700;
53-
letter-spacing: 0.01em;
54-
color: var(--text-primary);
55-
text-shadow: 0 2px 6px rgba(0, 8, 18, 0.35);
56-
}
57-
58-
.brand-subtitle {
59-
font-size: 0.95rem;
60-
color: var(--text-primary);
61-
letter-spacing: 0.05em;
62-
text-transform: uppercase;
63-
opacity: 0.9;
50+
display: flex;
51+
flex-wrap: wrap;
52+
align-items: baseline;
53+
gap: 0.75rem;
6454
}
6555

66-
.header-code {
56+
.brand-code {
6757
font-family: 'Source Code Pro', 'Courier New', Courier, monospace;
6858
font-size: 1rem;
6959
font-weight: 600;
@@ -74,6 +64,14 @@
7464
border: 1px solid rgba(255, 198, 70, 0.65);
7565
}
7666

67+
.brand-name {
68+
font-size: 1.05rem;
69+
font-weight: 700;
70+
letter-spacing: 0.01em;
71+
color: #fefefe;
72+
text-shadow: none;
73+
}
74+
7775
.current-example {
7876
font-size: 0.85rem;
7977
color: var(--text-primary);
@@ -114,14 +112,16 @@
114112
}
115113

116114
.share-button {
117-
background: rgba(12, 61, 115, 0.7);
118-
border: 1px solid rgba(59, 126, 161, 0.65);
119-
color: var(--text-primary);
115+
background: linear-gradient(135deg, rgba(6, 48, 96, 0.92), rgba(3, 35, 72, 0.92));
116+
border: 1px solid rgba(138, 198, 255, 0.65);
117+
color: #f4fbff;
118+
box-shadow: 0 10px 20px rgba(0, 18, 40, 0.5);
120119
}
121120

122121
.share-button:hover:not(:disabled) {
123-
background: rgba(18, 72, 124, 0.82);
124-
border-color: rgba(255, 198, 70, 0.6);
122+
background: linear-gradient(135deg, rgba(14, 72, 136, 0.95), rgba(6, 48, 96, 0.95));
123+
border-color: rgba(191, 229, 255, 0.8);
124+
color: #f4fbff;
125125
}
126126

127127
.share-button:disabled {
@@ -156,31 +156,31 @@
156156

157157
.status {
158158
font-size: 0.875rem;
159-
color: var(--text-primary);
159+
color: #e9f7ff;
160160
font-weight: 600;
161-
background: #0b2f5c;
162-
border: 1px solid rgba(59, 126, 161, 0.65);
161+
background: rgba(4, 30, 64, 0.92);
162+
border: 1px solid rgba(126, 196, 255, 0.68);
163163
padding: 0.45rem 0.95rem;
164164
border-radius: 999px;
165-
backdrop-filter: blur(4px);
165+
box-shadow: 0 12px 22px rgba(0, 16, 36, 0.45);
166166
}
167167

168168
.status.ready {
169-
color: #d0f6ff;
170-
background: rgba(48, 124, 170, 0.55);
171-
border-color: rgba(185, 242, 255, 0.5);
169+
color: #ebfaff;
170+
background: rgba(7, 60, 108, 0.94);
171+
border-color: rgba(146, 216, 255, 0.75);
172172
}
173173

174174
.status.error {
175-
color: #ffd0cf;
176-
background: rgba(147, 35, 35, 0.42);
177-
border-color: rgba(220, 82, 82, 0.58);
175+
color: #ffe8e6;
176+
background: rgba(119, 23, 27, 0.88);
177+
border-color: rgba(240, 118, 118, 0.7);
178178
}
179179

180180
.status.loading {
181-
color: var(--california-gold);
182-
background: rgba(255, 198, 70, 0.2);
183-
border-color: rgba(255, 198, 70, 0.6);
181+
color: #1f1300;
182+
background: linear-gradient(135deg, rgba(255, 198, 70, 0.95), rgba(196, 130, 14, 0.9));
183+
border-color: rgba(255, 214, 118, 0.8);
184184
}
185185

186186
.main-content {

apps/web/src/App.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ print("\\nNames and ages:")
3333
names_ages.show()
3434
`;
3535

36-
const data8Logo = '/logo.png';
37-
3836
type PyodideStatus = 'loading' | 'ready' | 'error';
3937

4038
function App() {
@@ -263,12 +261,9 @@ function App() {
263261
<header className="header">
264262
<div className="header-left">
265263
<div className="brand">
266-
<img src={data8Logo} alt="Data 8 logo" className="brand-logo" />
267-
<div className="brand-copy">
268-
<span className="brand-title">Data 8 Table Tutor</span>
269-
<span className="brand-subtitle">
270-
Powered by <code className="header-code">datascience</code>
271-
</span>
264+
<div className="brand-title">
265+
<code className="brand-code">datascience</code>
266+
<span className="brand-name">Table Tutor</span>
272267
</div>
273268
</div>
274269
{currentExample && (

0 commit comments

Comments
 (0)