feat(blog): done with ui, just need to deploy backend and hookup
This commit is contained in:
parent
9bc7175e5b
commit
2806d654a7
@ -132,6 +132,7 @@ pub fn Blogs(page_num: u32) -> Element {
|
|||||||
.await
|
.await
|
||||||
.unwrap_or_else(|_| vec![])
|
.unwrap_or_else(|_| vec![])
|
||||||
}));
|
}));
|
||||||
|
|
||||||
rsx! {
|
rsx! {
|
||||||
document::Stylesheet { href: asset!("/assets/styling/blog.css") }
|
document::Stylesheet { href: asset!("/assets/styling/blog.css") }
|
||||||
div { id: "blogs",
|
div { id: "blogs",
|
||||||
|
@ -92,7 +92,7 @@ async fn send_message(name: String, email: String, message: String, mut recived:
|
|||||||
});
|
});
|
||||||
|
|
||||||
let client = Client::new();
|
let client = Client::new();
|
||||||
let res = client.post("https://discord.com/api/webhooks/1374798951475187732/zOL9aD1wWn9rCywjqVAy3oUMnzPu25SVIMCDaLD4N8C_V9OqPK8Hj2Wmm-7Ts5QHTbzN").json(&json_to_send).send().await;
|
let res = client.post("").json(&json_to_send).send().await;
|
||||||
match res {
|
match res {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
recived.set("Sent Sucessfully, I will be in contact with you soon".to_string());
|
recived.set("Sent Sucessfully, I will be in contact with you soon".to_string());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user