✨ links page
Browse files at this commit29c9c847ac29c04768a6e3a9a5417cb7d57c5007Parent: feac397- feat
- ✨ links page
5 changed files +67 -15
- README.md +1 -0
- assets/main.css +39 -4
- src/home.rs +0 -7
- src/lib.rs +9 -4
- src/links.rs +18 -0
README.mdmodified+1 -0
| @@ -3,3 +3,4 @@ | ||
| 3 | 3 | My personal website |
| 4 | 4 | |
| 5 | 5 | [](https://ci.codeberg.org/repos/14212) |
| 6 | + |
assets/main.cssmodified+39 -4
| @@ -39,15 +39,50 @@ | ||
| 39 | 39 | color: coral; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | -.projects_list { | |
| 42 | +.links_list { | |
| 43 | 43 | font-size: large; |
| 44 | 44 | color: white; |
| 45 | 45 | margin: 1%; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | -.projects_list h1 { | |
| 49 | - margin-top: 1%; | |
| 50 | - margin-bottom: 1%; | |
| 48 | +.links{ | |
| 49 | + margin: 1%; | |
| 50 | + h1 { | |
| 51 | + color: azure; | |
| 52 | + } | |
| 53 | + h3 { | |
| 54 | + margin-top: 1%; | |
| 55 | + color: aliceblue; | |
| 56 | + } | |
| 57 | + h5 { | |
| 58 | + margin-bottom: 1%; | |
| 59 | + color: antiquewhite; | |
| 60 | + } | |
| 61 | + div { | |
| 62 | + margin-top: 1%; | |
| 63 | + display:block; | |
| 64 | + @media screen { | |
| 65 | + width: 50%; | |
| 66 | + } | |
| 67 | + | |
| 68 | + @media screen and (max-width:820px){ | |
| 69 | + width: 100%; | |
| 70 | + } | |
| 71 | + } | |
| 72 | +} | |
| 73 | + | |
| 74 | +.links_link { | |
| 75 | + text-decoration: underline; | |
| 76 | + font-size: x-large; | |
| 77 | + color: azure; | |
| 78 | + margin: 1%; | |
| 79 | +} | |
| 80 | + | |
| 81 | + | |
| 82 | +.projects_list { | |
| 83 | + font-size: large; | |
| 84 | + color: white; | |
| 85 | + margin: 1%; | |
| 51 | 86 | } |
| 52 | 87 | |
| 53 | 88 | .project_link { |
src/home.rsmodified+0 -7
| @@ -18,13 +18,6 @@ pub fn Home() -> Element { | ||
| 18 | 18 | id: "title", |
| 19 | 19 | "System && Back End Developer"} |
| 20 | 20 | |
| 21 | - div { | |
| 22 | - id: "social_links", | |
| 23 | - Link {id:"codeberg",to: "https://codeberg.org/Tahinli", "Codeberg"} | |
| 24 | - | |
| 25 | - Link {id:"linkedin",to: "https://linkedin.com/in/ahmetkaangumus", "LinkedIn"} | |
| 26 | - } | |
| 27 | - | |
| 28 | 21 | div { |
| 29 | 22 | id: "main_about", |
| 30 | 23 | " |
src/lib.rsmodified+9 -4
| @@ -1,12 +1,14 @@ | ||
| 1 | +pub mod home; | |
| 2 | +pub mod links; | |
| 3 | +pub mod posts; | |
| 4 | +pub mod projects; | |
| 5 | + | |
| 1 | 6 | use dioxus::prelude::*; |
| 2 | 7 | use home::Home; |
| 8 | +use links::Links; | |
| 3 | 9 | use posts::{Post, Posts}; |
| 4 | 10 | use projects::{Project, Projects}; |
| 5 | 11 | |
| 6 | -pub mod home; | |
| 7 | -pub mod posts; | |
| 8 | -pub mod projects; | |
| 9 | - | |
| 10 | 12 | #[derive(Clone, Routable, Debug, PartialEq)] |
| 11 | 13 | pub enum Route { |
| 12 | 14 | #[route("/")] |
| @@ -19,6 +21,8 @@ pub enum Route { | ||
| 19 | 21 | Posts {}, |
| 20 | 22 | #[route("/posts/:id")] |
| 21 | 23 | Post { id: i32 }, |
| 24 | + #[route("/links")] | |
| 25 | + Links {}, | |
| 22 | 26 | } |
| 23 | 27 | |
| 24 | 28 | #[component] |
| @@ -30,6 +34,7 @@ pub fn Header() -> Element { | ||
| 30 | 34 | Link {to: Route::Home{}, class:"main_nav_btn", "Home"} |
| 31 | 35 | Link {to: Route::Projects{}, class:"main_nav_btn", "Projects"} |
| 32 | 36 | Link {to: Route::Posts {}, class:"main_nav_btn", "Posts"} |
| 37 | + Link {to: Route::Links {}, class:"main_nav_btn", "Links"} | |
| 33 | 38 | } |
| 34 | 39 | } |
| 35 | 40 | div { id: "content", |
src/links.rsadded+18 -0
| @@ -0,0 +1,18 @@ | ||
| 1 | +use dioxus::prelude::*; | |
| 2 | + | |
| 3 | +use crate::{Footer, Header}; | |
| 4 | + | |
| 5 | +#[component] | |
| 6 | +pub fn Links() -> Element { | |
| 7 | + rsx! { | |
| 8 | + Header {} | |
| 9 | + div { | |
| 10 | + class: "links_list", | |
| 11 | + h1 {"Links"} | |
| 12 | + div {class: "links_link", Link {to: "https://codeberg.org/Tahinli", class: "links_link", "Codeberg"} } | |
| 13 | + div {class: "links_link", Link {to: "https://github.com/Tahinli", class: "links_link", "GitHub"} } | |
| 14 | + div {class: "links_link", Link {to: "https://linkedin.com/in/ahmetkaangumus", class: "links_link", "LinkedIn"} } | |
| 15 | + } | |
| 16 | + Footer {} | |
| 17 | + } | |
| 18 | +} |