Skip to content

Commit a33c4c0

Browse files
committed
feat: add overleash in header
1 parent a495636 commit a33c4c0

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

server/features.templ

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ templ layout(name string, colorScheme string, isMac bool, base string) {
3232
templ header() {
3333
<header>
3434
<div class="header">
35-
<div><img class="logo" src="static/overleash.svg" alt="Overleash"/></div>
35+
<div class="overleash">
36+
<img class="logo" src="static/overleash.svg" alt="Overleash"/>
37+
<div>Overleash</div>
38+
</div>
3639
<div class="header-actions">
3740
<div class="header-action">
3841
<button class="theme-btn" title="Toggle theme">

server/static/style.css

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
}
5151

5252
:root {
53+
--header-background: rgba(255,255,255,0.9);
54+
5355
--background: #ffffff;
5456
--foreground: #0a0a0a;
5557
--card: #ffffff;
@@ -84,6 +86,8 @@
8486
}
8587

8688
[data-theme="dark"] {
89+
--header-background: rgba(23,23,23,0.9);
90+
8791
--background: #0a0a0a;
8892
--foreground: #fafafa;
8993
--card: #171717;
@@ -114,6 +118,7 @@
114118

115119
@media (prefers-color-scheme: dark) {
116120
:root:not([data-theme='light']) {
121+
--header-background: rgba(23,23,23,0.9);
117122
--background: #0a0a0a;
118123
--foreground: #fafafa;
119124
--card: #171717;
@@ -162,12 +167,24 @@ body {
162167
/* Header */
163168
header {
164169
border-bottom: 1px solid var(--border);
165-
background: var(--card);
170+
background: var(--header-background);
171+
backdrop-filter: blur(20px);
166172
position: sticky;
167173
top: 0;
168174
z-index: 50;
169175
}
170176

177+
.overleash {
178+
gap: 1rem;
179+
display: flex;
180+
align-items: center;
181+
182+
div {
183+
font-weight: 500;
184+
color: var(--foreground);
185+
}
186+
}
187+
171188
.header {
172189
display: flex;
173190
align-items: center;

0 commit comments

Comments
 (0)