fix layout, update colors

This commit is contained in:
marlon-erler
2024-07-20 15:18:11 +02:00
parent df39c75b33
commit a18acbae10
5 changed files with 77 additions and 39 deletions
+23 -7
View File
@@ -1,4 +1,5 @@
/* src/base.css */ /* src/base.css */
@media (display-mode: browser) {
#home-page { #home-page {
--background-transparent: hsla(0, 0%, 100%, 40%); --background-transparent: hsla(0, 0%, 100%, 40%);
--surface: hsla(0, 0%, 100%, 40%); --surface: hsla(0, 0%, 100%, 40%);
@@ -13,17 +14,21 @@
--surface-active: hsla(0, 0%, 44%, 30%); --surface-active: hsla(0, 0%, 44%, 30%);
} }
} }
}
#background { #background {
position: fixed; position: fixed;
top: -120px; top: -120px;
left: -120px; left: -120px;
right: -120px; right: -120px;
bottom: -120px; bottom: -120px;
z-index: -1; z-index: 1;
pointer-events: none; pointer-events: none;
filter: blur(60px); filter: blur(60px);
opacity: 0.2; opacity: 0.2;
} }
main {
z-index: 2;
}
#background::after, #background::after,
#background::before { #background::before {
content: ""; content: "";
@@ -36,9 +41,21 @@
background-image: background-image:
linear-gradient( linear-gradient(
120deg, 120deg,
hsla(210, 100%, 50%, 50%), hsla(210, 100%, 50%, 60%),
hsla(210, 100%, 50%, 35%), hsla(210, 100%, 50%, 55%),
transparent 40%); transparent 60%);
}
}
@media (display-mode: standalone) {
@media (prefers-color-scheme: dark) {
#background {
background-image:
linear-gradient(
120deg,
hsla(210, 100%, 50%, 80%),
hsla(210, 100%, 50%, 75%),
transparent 60%);
}
} }
} }
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
@@ -98,9 +115,7 @@
scroll-behavior: smooth; scroll-behavior: smooth;
overflow: hidden; overflow: hidden;
overflow-x: scroll; overflow-x: scroll;
padding-left: 0px; padding: 0px;
padding-right: 0px;
padding-bottom: 0px;
} }
#home-page > div > div { #home-page > div > div {
display: flex; display: flex;
@@ -108,6 +123,7 @@
justify-content: start; justify-content: start;
gap: var(--gap-between-tiles); gap: var(--gap-between-tiles);
padding: var(--content-padding); padding: var(--content-padding);
padding-top: calc(var(--header-height) + var(--content-margin));
width: 100%; width: 100%;
min-width: 100%; min-width: 100%;
height: 100%; height: 100%;
+1 -1
View File
@@ -584,7 +584,7 @@
// src/View/chatPage.tsx // src/View/chatPage.tsx
function ChatPage(chatViewModel) { function ChatPage(chatViewModel) {
return /* @__PURE__ */ createElement("article", { id: "chat-page" }, /* @__PURE__ */ createElement("header", null, /* @__PURE__ */ createElement("span", { "subscribe:innerText": chatViewModel.primaryChannel })), /* @__PURE__ */ createElement("div", null)); return /* @__PURE__ */ createElement("article", { id: "chat-page" }, /* @__PURE__ */ createElement("header", null, /* @__PURE__ */ createElement("span", { "subscribe:innerText": chatViewModel.primaryChannel })), /* @__PURE__ */ createElement("div", null, /* @__PURE__ */ createElement("div", { class: "ribbon" }), /* @__PURE__ */ createElement("div", { class: "toolbar" }), /* @__PURE__ */ createElement("div", { class: "main" })));
} }
// src/View/chatPageWrapper.tsx // src/View/chatPageWrapper.tsx
+5 -1
View File
@@ -11,7 +11,11 @@ export function ChatPage(chatViewModel: ChatViewModel) {
<header> <header>
<span subscribe:innerText={chatViewModel.primaryChannel}></span> <span subscribe:innerText={chatViewModel.primaryChannel}></span>
</header> </header>
<div></div> <div>
<div class="ribbon"></div>
<div class="toolbar"></div>
<div class="main"></div>
</div>
</article> </article>
); );
} }
+2 -3
View File
@@ -9,9 +9,7 @@
overflow: hidden; overflow: hidden;
overflow-x: scroll; overflow-x: scroll;
padding-left: 0px; padding: 0px;
padding-right: 0px;
padding-bottom: 0px;
} }
#home-page > div > div { #home-page > div > div {
@@ -21,6 +19,7 @@
gap: var(--gap-between-tiles); gap: var(--gap-between-tiles);
padding: var(--content-padding); padding: var(--content-padding);
padding-top: calc(var(--header-height) + var(--content-margin));
width: 100%; width: 100%;
min-width: 100%; min-width: 100%;
+23 -4
View File
@@ -1,3 +1,4 @@
@media (display-mode: browser) {
#home-page { #home-page {
--background-transparent: hsla(0, 0%, 100%, 40%); --background-transparent: hsla(0, 0%, 100%, 40%);
--surface: hsla(0, 0%, 100%, 40%); --surface: hsla(0, 0%, 100%, 40%);
@@ -13,6 +14,7 @@
--surface-active: hsla(0, 0%, 44%, 30%); --surface-active: hsla(0, 0%, 44%, 30%);
} }
} }
}
#background { #background {
position: fixed; position: fixed;
@@ -22,13 +24,17 @@
right: -120px; right: -120px;
bottom: -120px; bottom: -120px;
z-index: -1; z-index: 1;
pointer-events: none; pointer-events: none;
filter: blur(60px); filter: blur(60px);
opacity: 0.2; opacity: 0.2;
} }
main {
z-index: 2;
}
#background::after, #background::after,
#background::before { #background::before {
content: ""; content: "";
@@ -43,13 +49,26 @@
#background { #background {
background-image: linear-gradient( background-image: linear-gradient(
120deg, 120deg,
hsla(210, 100%, 50%, 50%), hsla(210, 100%, 50%, 60%),
hsla(210, 100%, 50%, 35%), hsla(210, 100%, 50%, 55%),
transparent 40% transparent 60%
); );
} }
} }
@media (display-mode: standalone) {
@media (prefers-color-scheme: dark) {
#background {
background-image: linear-gradient(
120deg,
hsla(210, 100%, 50%, 80%),
hsla(210, 100%, 50%, 75%),
transparent 60%
);
}
}
}
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
#background { #background {
background-image: linear-gradient( background-image: linear-gradient(