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
51 changes: 31 additions & 20 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,38 @@
<link rel="stylesheet" href="style.css?v=10">
</head>
<body>
<button id="themeToggle" class="theme-toggle" aria-label="Switch to light mode" title="Toggle light/dark mode">
<svg class="icon-sun" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
<svg class="icon-moon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button>

<div class="container">
<header>
<h1>Course Materials Assistant</h1>
<p class="subtitle">Ask questions about courses, instructors, and content</p>
<header class="site-header">
<div class="header-brand">
<div class="header-logo" aria-hidden="true">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path>
<path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>
</svg>
</div>
<div class="header-title">
<h1>Course Materials Assistant</h1>
<p class="subtitle">Ask questions about courses, instructors, and content</p>
</div>
</div>
<div class="header-controls">
<button id="themeToggle" class="theme-toggle" aria-label="Switch to light mode" title="Toggle light/dark mode">
<svg class="icon-sun" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
<svg class="icon-moon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button>
</div>
</header>

<div class="main-content">
Expand Down
78 changes: 61 additions & 17 deletions frontend/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,17 @@ body {

/* Theme Toggle Button */
.theme-toggle {
position: fixed;
top: 1rem;
right: 1rem;
width: 40px;
height: 40px;
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--surface);
background: transparent;
border: 1px solid var(--border-color);
color: var(--text-secondary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
z-index: 200;
flex-shrink: 0;
transition: background 0.3s ease, color 0.2s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

Expand Down Expand Up @@ -149,25 +146,65 @@ body {
padding: 0;
}

/* Header - Hidden */
header {
display: none;
/* Site Header */
.site-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 1.5rem;
height: 60px;
background: var(--surface);
border-bottom: 1px solid var(--border-color);
flex-shrink: 0;
transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-brand {
display: flex;
align-items: center;
gap: 0.75rem;
}

.header-logo {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 8px;
color: white;
flex-shrink: 0;
}

.header-title {
display: flex;
flex-direction: column;
gap: 0.1rem;
}

.header-controls {
display: flex;
align-items: center;
gap: 0.75rem;
}

header h1 {
font-size: 1.75rem;
font-size: 1.05rem;
font-weight: 700;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin: 0;
line-height: 1.2;
}

.subtitle {
font-size: 0.95rem;
font-size: 0.75rem;
color: var(--text-secondary);
margin-top: 0.5rem;
margin: 0;
line-height: 1;
}

/* Main Content Area with Sidebar */
Expand All @@ -179,6 +216,8 @@ header h1 {
}

/* Smooth transitions for theme switch on key elements */
.site-header,
.header-logo,
.sidebar,
.chat-main,
.chat-container,
Expand Down Expand Up @@ -823,12 +862,17 @@ details[open] .suggested-header::before {
order: 1;
}

header {
padding: 1rem;
.site-header {
padding: 0 1rem;
height: 52px;
}


.subtitle {
display: none;
}

header h1 {
font-size: 1.5rem;
font-size: 0.95rem;
}

.chat-messages {
Expand Down
Loading