| 1 | use crate::{Footer, Header, Route}; |
| 2 | use dioxus::prelude::*; |
| 3 | |
| 4 | #[component] |
| 5 | pub fn Writings() -> Element { |
| 6 | rsx! { |
| 7 | Header {} |
| 8 | div { |
| 9 | class: "posts_list", |
| 10 | h1 {"Writings"} |
| 11 | div { class: "post_link", Link {to: Route::Writing { id: 1 },class: "post_link", "Awaken"} } |
| 12 | } |
| 13 | Footer {} |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | #[component] |
| 18 | pub fn Writing(id: i32) -> Element { |
| 19 | let x = match id { |
| 20 | 1 => { |
| 21 | rsx! { |
| 22 | div { |
| 23 | class:"post", |
| 24 | h1 {"Awaken"} |
| 25 | br { } |
| 26 | div { |
| 27 | "Does every word flies, if it's not written." |
| 28 | br { } |
| 29 | "A life goes by a word that is written." |
| 30 | br { } |
| 31 | "Word doesn't know what is written." |
| 32 | br { } |
| 33 | "Only feels why it's written." |
| 34 | br { } |
| 35 | br { } |
| 36 | "Things come and go with a light." |
| 37 | br { } |
| 38 | "A cry is woken by the light." |
| 39 | br { } |
| 40 | "Does ever the light's gone for a blind." |
| 41 | br { } |
| 42 | "Maybe awaken is blinded by the light." |
| 43 | br { } |
| 44 | br { } |
| 45 | |
| 46 | "Time goes with a paper and blood." |
| 47 | br { } |
| 48 | "The blood will end by the paper and a heart." |
| 49 | br { } |
| 50 | "The paper came with the blood and a knife." |
| 51 | br { } |
| 52 | "Hearts will die with the time and the blood." |
| 53 | br { } |
| 54 | br { } |
| 55 | |
| 56 | "Sirens are here to wake." |
| 57 | br { } |
| 58 | "The awaken is ready to take a break." |
| 59 | br { } |
| 60 | "Screams goes where, when a silence comes to take." |
| 61 | br { } |
| 62 | "Take the gap to get a moment to wake." |
| 63 | br { } |
| 64 | br { } |
| 65 | |
| 66 | "The awaken can't feel a thing what is real." |
| 67 | br { } |
| 68 | "Does ever be a thing that is not surreal." |
| 69 | br { } |
| 70 | "Real isn't the moment to be there to deal." |
| 71 | br { } |
| 72 | "Deal is ever be a thing in real." |
| 73 | br { } |
| 74 | br { } |
| 75 | |
| 76 | "Blooded writes these down with a blind mind." |
| 77 | br { } |
| 78 | "A mind came by the light to get a heart of a knife." |
| 79 | br { } |
| 80 | "The knife cuts the light in a written time." |
| 81 | br { } |
| 82 | "The written is the siren for the awaken to die." |
| 83 | br { } |
| 84 | br { } |
| 85 | "Ahmet Kaan Gümüş" |
| 86 | } |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | _ => { |
| 91 | rsx! { |
| 92 | h1 {"You're not supposed to be here"} |
| 93 | } |
| 94 | } |
| 95 | }; |
| 96 | rsx! { |
| 97 | Header {} |
| 98 | {x} |
| 99 | Footer {} |
| 100 | } |
| 101 | } |