Skip to content

Commit 33eea2b

Browse files
committed
header/footer tweaks
1 parent f0a4034 commit 33eea2b

4 files changed

Lines changed: 125 additions & 22 deletions

File tree

assets/app.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,36 @@ const App = (() => {
492492
showMainContent();
493493
};
494494

495+
// Footer Management
496+
const initializeFooter = () => {
497+
const footer = document.querySelector('.dashboard-footer');
498+
const closeBtn = document.getElementById('footerCloseBtn');
499+
500+
// Check localStorage for footer state
501+
const footerHidden = localStorage.getItem('footerHidden') === 'true';
502+
if (footerHidden && footer) {
503+
footer.classList.add('hidden');
504+
}
505+
506+
// Add close button event listener
507+
if (closeBtn) {
508+
closeBtn.addEventListener('click', () => {
509+
if (footer) {
510+
footer.classList.add('hidden');
511+
localStorage.setItem('footerHidden', 'true');
512+
}
513+
});
514+
}
515+
};
516+
495517
// Initialize
496518
const init = async () => {
497519
const urlParams = new URLSearchParams(window.location.search);
498520
const demo = urlParams.get("demo");
499521
const urlContext = parseURL();
522+
523+
// Initialize footer
524+
initializeFooter();
500525

501526
// Handle stats page routing
502527
if (urlContext && urlContext.isStats) {

assets/styles.css

Lines changed: 93 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
--color-danger: #ef4444;
2727

2828
/* Gradients */
29-
--gradient-mesh: linear-gradient(to bottom right, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
29+
--gradient-mesh: linear-gradient(
30+
to bottom right,
31+
rgba(99, 102, 241, 0.05),
32+
rgba(168, 85, 247, 0.05)
33+
);
3034
--gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
3135
--gradient-card: linear-gradient(
3236
to bottom right,
@@ -42,8 +46,8 @@
4246
--text-xs: 0.875rem;
4347
--text-sm: 0.9375rem;
4448
--text-base: 1rem;
45-
--text-lg: 1.125rem;
46-
--text-xl: 1.25rem;
49+
--text-lg: 1.115rem;
50+
--text-xl: 1.175rem;
4751

4852
--leading-tight: 1.25;
4953
--leading-normal: 1.5;
@@ -375,11 +379,40 @@ a {
375379
.header-title {
376380
font-size: var(--text-xl);
377381
font-weight: 700;
382+
margin: 0;
383+
white-space: nowrap;
384+
display: flex;
385+
align-items: center;
386+
gap: 0.5rem;
387+
}
388+
389+
.gradient-text {
378390
background: var(--gradient-primary);
379391
-webkit-background-clip: text;
380392
-webkit-text-fill-color: transparent;
381393
background-clip: text;
382-
margin: 0;
394+
letter-spacing: -0.01em;
395+
}
396+
397+
.header-beta-badge {
398+
display: inline-flex;
399+
align-items: center;
400+
padding: 0.125rem 0.5rem;
401+
background: rgba(99, 102, 241, 0.1);
402+
border: 1px solid rgba(99, 102, 241, 0.2);
403+
border-radius: 9999px;
404+
font-size: 0.625rem;
405+
font-weight: 600;
406+
text-transform: uppercase;
407+
letter-spacing: 0.05em;
408+
color: #6366f1;
409+
line-height: 1.2;
410+
transition: all 0.2s ease;
411+
}
412+
413+
.header-title:hover .header-beta-badge {
414+
background: rgba(99, 102, 241, 0.15);
415+
border-color: rgba(99, 102, 241, 0.3);
383416
}
384417

385418
.controls {
@@ -407,7 +440,7 @@ a {
407440

408441
.search-input {
409442
flex: 1;
410-
max-width: 20rem;
443+
max-width: 10rem;
411444
}
412445

413446
.org-select:hover,
@@ -804,7 +837,7 @@ a {
804837
/* Size badges */
805838
.badge-size {
806839
font-weight: 700;
807-
840+
}
808841

809842
.badge-size-xxs {
810843
background: rgb(236 252 203 / 0.5);
@@ -875,7 +908,12 @@ a {
875908
left: 0;
876909
right: 0;
877910
bottom: 0;
878-
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
911+
background: linear-gradient(
912+
90deg,
913+
transparent 0%,
914+
rgba(255, 255, 255, 0.4) 50%,
915+
transparent 100%
916+
);
879917
transform: translateX(-100%);
880918
}
881919

@@ -2471,6 +2509,22 @@ a {
24712509
}
24722510

24732511
/* Responsive */
2512+
@media (max-width: 1050px) {
2513+
.header-title {
2514+
font-size: calc(var(--text-xl) * 0.9);
2515+
}
2516+
.header-beta-badge {
2517+
font-size: 0.5625rem;
2518+
padding: 0.1rem 0.375rem;
2519+
}
2520+
.header-left {
2521+
gap: var(--space-4);
2522+
}
2523+
.controls {
2524+
gap: var(--space-3);
2525+
}
2526+
}
2527+
24742528
@media (max-width: 768px) {
24752529
/* Slightly reduce font sizes on mobile for better fit */
24762530
:root {
@@ -2777,10 +2831,11 @@ a {
27772831
align-items: center;
27782832
justify-content: center;
27792833
gap: var(--space-3);
2780-
padding: var(--space-3) var(--space-4);
2834+
padding: 2px;
27812835
color: white;
27822836
font-size: var(--text-sm);
2783-
font-weight: 500;
2837+
font-weight: 400;
2838+
position: relative;
27842839
}
27852840

27862841
.notification-icon {
@@ -2829,3 +2884,32 @@ a {
28292884
}
28302885

28312886
/* Removed pulse animation for performance */
2887+
2888+
.footer-close-btn {
2889+
position: absolute;
2890+
right: var(--space-3);
2891+
top: 50%;
2892+
transform: translateY(-50%);
2893+
background: transparent;
2894+
border: none;
2895+
padding: 0;
2896+
width: 20px;
2897+
height: 20px;
2898+
display: flex;
2899+
align-items: center;
2900+
justify-content: center;
2901+
cursor: pointer;
2902+
transition: opacity 0.2s ease;
2903+
color: rgba(0, 0, 0, 0.5);
2904+
font-size: 18px;
2905+
font-weight: 400;
2906+
line-height: 1;
2907+
}
2908+
2909+
.footer-close-btn:hover {
2910+
opacity: 0.7;
2911+
}
2912+
2913+
.dashboard-footer.hidden {
2914+
display: none;
2915+
}

assets/user.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// User PR Dashboard Module for Ready To Review
2-
import { $, $$, show, hide, escapeHtml } from './utils.js';\n\n// Request deduplication cache\nconst pendingRequests = new Map();
2+
import { $, $$, show, hide, escapeHtml } from './utils.js';
3+
4+
// Request deduplication cache
5+
const pendingRequests = new Map();
36

47
export const User = (() => {
58
"use strict";

index.html

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,8 @@ <h1 class="header-title">
4242
text-decoration: none;
4343
color: inherit;
4444
"
45-
>🚀 Ready To Review
46-
<span
47-
style="
48-
font-size: 11px;
49-
color: #dc2626;
50-
font-weight: 500;
51-
vertical-align: super;
52-
margin-left: 2px;
53-
"
54-
>beta</span
55-
></a
45+
>🚀 <span class="gradient-text">Ready To Review</span>
46+
<span class="header-beta-badge">Beta</span></a
5647
>
5748
</h1>
5849
<div class="controls">
@@ -1080,9 +1071,9 @@ <h3>Export Robot Configuration</h3>
10801071
class="notification-link"
10811072
>Ready to Review.app</a
10821073
>
1083-
<span class="beta-badge">beta</span>
10841074
</span>
10851075
<span class="notification-icon"></span>
1076+
<button id="footerCloseBtn" class="footer-close-btn" aria-label="Close notification">×</button>
10861077
</div>
10871078
</footer>
10881079
</div>

0 commit comments

Comments
 (0)