Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 138 additions & 5 deletions packages/app/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,146 @@ body {
}

/* Header Styles */
header {
background-color: var(--card-background);
box-shadow: var(--shadow);
header,
.header {
background: #f8fafc;
color: #64748b;
border-bottom: 1px solid #e2e8f0;
backdrop-filter: blur(10px);
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
padding: 16px 0;
z-index: 1000;
padding: 20px 0;
}

.header h1 {
color: #1e293b;
}

.header p {
margin: 8px 0 0;
color: #64748b;
font-size: 1rem;
}

.header-content {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
position: relative;
}

.logo {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
color: #1e293b;
}

.logo img {
width: 40px;
height: 40px;
}

.logo h1 {
margin: 0;
font-size: 24px;
font-weight: 700;
}

.nav-toggle {
display: none;
background: none;
border: none;
color: #64748b;
font-size: 24px;
cursor: pointer;
padding: 8px;
}

.header-nav,
.nav-links {
display: flex;
gap: 20px;
}

.header-nav a,
.nav-links a,
.nav-link {
text-decoration: none;
color: #64748b;
font-weight: 500;
padding: 8px 16px;
border-radius: 8px;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 8px;
}

.header-nav a:hover,
.nav-links a:hover,
.nav-link:hover {
background: #f1f5f9;
color: #1e293b;
}

.header-nav a.active,
.nav-links a.active,
.nav-link.active {
background: #f1f5f9;
color: #1e293b;
font-weight: 600;
}

@media (max-width: 768px) {
.nav-toggle {
display: block;
}

.header-nav,
.nav-links {
position: absolute;
top: 100%;
right: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
flex-direction: column;
gap: 0;
min-width: 200px;
display: none;
margin-top: 10px;
}

.header-nav.open,
.nav-links.open {
display: flex;
}

.header-nav a,
.nav-links a,
.nav-link {
border-radius: 0;
padding: 12px 20px;
}

.header-nav a:first-child,
.nav-links a:first-child,
.nav-link:first-child {
border-radius: 8px 8px 0 0;
}

.header-nav a:last-child,
.nav-links a:last-child,
.nav-link:last-child {
border-radius: 0 0 8px 8px;
}
}

/* SAML Warning Banner */
Expand Down
31 changes: 31 additions & 0 deletions packages/app/css/templates.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,31 @@
margin-top: 16px;
}

/* Empty State */
.empty-state {
grid-column: 1 / -1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 80px 20px;
text-align: center;
}

.empty-state i {
font-size: 120px;
color: #e2e8f0;
margin-bottom: 24px;
}

.empty-state p {
font-size: 18px;
color: #94a3b8;
margin: 0;
max-width: 500px;
line-height: 1.6;
}

/* Ruleset Badges */
.ruleset-badge {
display: inline-block;
Expand All @@ -43,13 +68,19 @@
color: white;
}

.docs-badge {
background-color: #00a4ef;
color: white;
}

.custom-badge {
background-color: #5c2d91;
color: white;
}

.partner-badge,
.dod-badge,
.docs-badge,
.custom-badge {
padding: 2px 8px;
border-radius: 8px;
Expand Down
29 changes: 21 additions & 8 deletions packages/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,19 @@
<script src="https://d3js.org/d3.v7.min.js"></script>
</head>
<body>
<header>
<div class="container header-content">
<div class="logo">
<header class="header">
<div class="header-content">
<a href="/" class="logo">
<img src="assets/images/templatedoctor.svg" alt="Template Doctor Logo" />
<h1>Template Doctor</h1>
</div>
<nav class="header-nav">
<a href="/" class="nav-link active">Dashboard</a>
<a href="/leaderboards" class="nav-link">🏆 Leaderboards</a>
<a href="/setup" class="nav-link">⚙️ Setup</a>
</a>
<button class="nav-toggle" onclick="toggleNav()" aria-label="Toggle navigation">
<i class="fas fa-bars"></i>
</button>
<nav class="nav-links" id="main-nav">
<a href="/" class="active"><i class="fas fa-home"></i> Dashboard</a>
<a href="/leaderboards"><i class="fas fa-trophy"></i> Leaderboards</a>
<a href="/setup"><i class="fas fa-cog"></i> Setup</a>
</nav>
<div id="user-info" class="user-info">
<button id="login-button" class="login-button">
Expand Down Expand Up @@ -329,6 +332,16 @@ <h3>Error</h3>
</div>
</footer>

<!-- Toggle navigation menu on mobile -->
<script>
function toggleNav() {
const nav = document.getElementById('main-nav');
if (nav) {
nav.classList.toggle('open');
}
}
</script>

<!-- Vite unified entry -->
<script type="module" src="/src/main.ts"></script>
</body>
Expand Down
95 changes: 87 additions & 8 deletions packages/app/leaderboards.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
}

.header {
background: rgba(255, 255, 255, 0.95);
background: #f8fafc;
color: #64748b;
border-bottom: 1px solid #e2e8f0;
backdrop-filter: blur(10px);
padding: 20px 0;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
Expand All @@ -26,13 +28,34 @@
z-index: 1000;
}

.header h1 {
color: #1e293b;
}

.header p {
margin: 8px 0 0;
color: #64748b;
font-size: 1rem;
}

.nav-toggle {
display: none;
background: none;
border: none;
color: #64748b;
font-size: 24px;
cursor: pointer;
padding: 8px;
}

.header-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}

.logo {
Expand Down Expand Up @@ -66,11 +89,56 @@
padding: 8px 16px;
border-radius: 8px;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 8px;
}

.nav-links a:hover, .nav-links a.active {
background: #3b82f6;
color: white;
.nav-links a:hover {
background: #f1f5f9;
color: #1e293b;
}

.nav-links a.active {
background: #f1f5f9;
color: #1e293b;
font-weight: 600;
}

@media (max-width: 768px) {
.nav-toggle {
display: block;
}

.nav-links {
position: absolute;
top: 100%;
right: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
flex-direction: column;
gap: 0;
min-width: 200px;
display: none;
}

.nav-links.open {
display: flex;
}

.nav-links a {
border-radius: 0;
padding: 12px 20px;
}

.nav-links a:first-child {
border-radius: 8px 8px 0 0;
}

.nav-links a:last-child {
border-radius: 0 0 8px 8px;
}
}

.container {
Expand Down Expand Up @@ -512,10 +580,13 @@
<img src="assets/images/templatedoctor.svg" alt="Template Doctor">
<h1>Template Doctor</h1>
</a>
<nav class="nav-links">
<a href="/">Dashboard</a>
<a href="/leaderboards" class="active">Leaderboards</a>
<a href="/setup">Setup</a>
<button class="nav-toggle" onclick="toggleNav()" aria-label="Toggle navigation">
<i class="fas fa-bars"></i>
</button>
<nav class="nav-links" id="main-nav">
<a href="/"><i class="fas fa-home"></i> Dashboard</a>
<a href="/leaderboards" class="active"><i class="fas fa-trophy"></i> Leaderboards</a>
<a href="/setup"><i class="fas fa-cog"></i> Setup</a>
</nav>
</div>
</header>
Expand Down Expand Up @@ -1285,6 +1356,14 @@ <h2 class="stats-section-title">🌍 Global Impact</h2>
document.addEventListener('DOMContentLoaded', function() {
loadLeaderboards();
});

// Toggle navigation menu on mobile
function toggleNav() {
const nav = document.getElementById('main-nav');
if (nav) {
nav.classList.toggle('open');
}
}
</script>

<!-- Footer -->
Expand Down
Loading