Skip to content

Commit

Permalink
Update web login screen to show frosted minimal chat UI in background
Browse files Browse the repository at this point in the history
  • Loading branch information
debanjum committed Feb 23, 2024
1 parent 1b03185 commit e10b260
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/khoj/interface/web/assets/khoj.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--primary-focus: rgba(255, 179, 0, 0.125);
--primary-inverse: rgba(0, 0, 0, 0.75);
--background-color: #f5f4f3;
--frosted-background-color: rgba(245, 244, 243, 0.75);
--main-text-color: #475569;
--summer-sun: #fcc50b;
--water: #44b9da;
Expand All @@ -26,6 +27,7 @@
--primary-focus: rgba(255, 179, 0, 0.25);
--primary-inverse: rgba(0, 0, 0, 0.75);
--background-color: #f5f4f3;
--frosted-background-color: rgba(245, 244, 243, 0.75);
--main-text-color: #475569;
--summer-sun: #fcc50b;
--water: #44b9da;
Expand All @@ -42,6 +44,7 @@
--primary-focus: rgba(255, 179, 0, 0.25);
--primary-inverse: rgba(0, 0, 0, 0.75);
--background-color: #f5f4f3;
--frosted-background-color: rgba(245, 244, 243, 0.75);
--main-text-color: #475569;
--summer-sun: #fcc50b;
--water: #44b9da;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 18 additions & 2 deletions src/khoj/interface/web/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,24 @@
padding: 0px;
margin: 0px;
height: 100%;
background: var(--background-color);
background: url('/static/assets/samples/desktop-plain-chat-sample.png') no-repeat center center fixed;
background-size: contain;
color: var(--main-text-color);
font-family: var(--font-family);
font-size: 20px;
font-weight: 300;
line-height: 1.5em;
}
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--frosted-background-color);
backdrop-filter: blur(10px);
}
body > * {
padding: 10px;
margin: 10px;
Expand Down Expand Up @@ -100,9 +111,9 @@
grid-template-rows: 1fr auto auto 1fr;
gap: 32px;
min-height: 300px;
background: var(--background-color);
margin-left: 25%;
margin-right: 25%;
z-index: 1;
}

div.g_id_signin {
Expand All @@ -118,9 +129,14 @@
}

@media only screen and (max-width: 700px) {
body{
background: url('/static/assets/samples/phone-plain-chat-sample.png') no-repeat center center fixed;
background-size: contain;
}
div#login-modal {
margin-left: 10%;
margin-right: 10%;
z-index: 1;
}
}

Expand Down

0 comments on commit e10b260

Please sign in to comment.