Redesign page + Webhook notifications #43
2 changed files with 11 additions and 3 deletions
Add gradient background on overview page
commit
285a432777
|
|
@ -35,11 +35,12 @@ pub(crate) async fn send_new_offer_message(
|
||||||
let client = Client::builder().connector(connector).finish();
|
let client = Client::builder().connector(connector).finish();
|
||||||
let request_result = client.post(webhook_url).send_json(&msg).await;
|
let request_result = client.post(webhook_url).send_json(&msg).await;
|
||||||
let success = match request_result {
|
let success = match request_result {
|
||||||
Ok(mut response) => {
|
Ok(response) => {
|
||||||
debug!(
|
debug!(
|
||||||
"Webhook request succeeded!\nStatus: {}\nResponse: {}",
|
"Webhook request succeeded with status: {}",
|
||||||
response.status(),
|
response.status(),
|
||||||
String::from_utf8(response.body().await.unwrap().to_vec()).unwrap()
|
// make response mutable when uncommenting this
|
||||||
|
// String::from_utf8(response.body().await.unwrap().to_vec()).unwrap()
|
||||||
);
|
);
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -140,6 +140,12 @@ body main {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Gradient background, but only on the overview page (and when choosing expired entries to delete) */
|
||||||
|
.header-main:has(.joboffer-index) {
|
||||||
|
background: linear-gradient(45deg, var(--blue) 0%, var(--yellow) 100%);
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
.centered {
|
.centered {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
@ -313,6 +319,7 @@ body main {
|
||||||
-moz-border-radius: var(--default-padding);
|
-moz-border-radius: var(--default-padding);
|
||||||
-ms-border-radius: var(--default-padding);
|
-ms-border-radius: var(--default-padding);
|
||||||
-o-border-radius: var(--default-padding);
|
-o-border-radius: var(--default-padding);
|
||||||
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.joboffer-index-entry.AwaitingReview, .joboffer-index-entry.UnPublished {
|
.joboffer-index-entry.AwaitingReview, .joboffer-index-entry.UnPublished {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue