Compare commits
3 Commits
27934c7fc9
...
d2108fa6fc
Author | SHA1 | Date | |
---|---|---|---|
d2108fa6fc
|
|||
44ba3d4d23
|
|||
5206fb13c8
|
@@ -10,7 +10,6 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta charset="UTF-8" />
|
||||
{style_include}
|
||||
{script_include}
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
|
@@ -91,15 +91,12 @@ fn app() -> Element {
|
||||
|
||||
if !SESSION.read().is_logged {
|
||||
login_coro.send(false);
|
||||
}
|
||||
|
||||
if SESSION.read().is_logged {
|
||||
rsx! {
|
||||
Conversations {}
|
||||
Login {}
|
||||
}
|
||||
} else {
|
||||
rsx! {
|
||||
Login {}
|
||||
Conversations {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -7,6 +7,11 @@ turf::style_sheet!("src/ui/components/wallpaper.scss");
|
||||
|
||||
#[component]
|
||||
pub fn Wallpaper(display_version: Option<bool>) -> Element {
|
||||
let background_image = format!(
|
||||
"url({})",
|
||||
manganis::mg!(file("public/images/wallpaper-pattern.svg"))
|
||||
);
|
||||
|
||||
let version = display_version.map(|flag| if flag { Some(GIT_VERSION) } else { None });
|
||||
|
||||
rsx! {
|
||||
@@ -17,6 +22,7 @@ pub fn Wallpaper(display_version: Option<bool>) -> Element {
|
||||
|
||||
div {
|
||||
class: ClassName::WALLPAPER_CONTENT,
|
||||
background_image: "{background_image}",
|
||||
}
|
||||
|
||||
div {
|
||||
|
@@ -12,7 +12,6 @@
|
||||
overflow: hidden;
|
||||
|
||||
&__content {
|
||||
background-image: url("./images/wallpaper-pattern.svg");
|
||||
background-position: center;
|
||||
|
||||
width: 150%;
|
||||
|
Reference in New Issue
Block a user