forge
Explore
Log in

Don't you dare go Hollow

29c9c847ac29c04768a6e3a9a5417cb7d57c5007Ahmet Kaan GümüşParent: feac397
  • feat
    • ✨ links page
Show full message
feat: ✨ links page
README.mdmodified+1 -0
@@ -3,3 +3,4 @@
33 My personal website
44
55 [![status-badge](https://ci.codeberg.org/api/badges/14212/status.svg)](https://ci.codeberg.org/repos/14212)
6+
assets/main.cssmodified+39 -4
@@ -39,15 +39,50 @@
3939 color: coral;
4040 }
4141
42-.projects_list {
42+.links_list {
4343 font-size: large;
4444 color: white;
4545 margin: 1%;
4646 }
4747
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%;
5186 }
5287
5388 .project_link {
src/home.rsmodified+0 -7
@@ -18,13 +18,6 @@ pub fn Home() -> Element {
1818 id: "title",
1919 "System && Back End Developer"}
2020
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-
2821 div {
2922 id: "main_about",
3023 "
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+
16 use dioxus::prelude::*;
27 use home::Home;
8+use links::Links;
39 use posts::{Post, Posts};
410 use projects::{Project, Projects};
511
6-pub mod home;
7-pub mod posts;
8-pub mod projects;
9-
1012 #[derive(Clone, Routable, Debug, PartialEq)]
1113 pub enum Route {
1214 #[route("/")]
@@ -19,6 +21,8 @@ pub enum Route {
1921 Posts {},
2022 #[route("/posts/:id")]
2123 Post { id: i32 },
24+ #[route("/links")]
25+ Links {},
2226 }
2327
2428 #[component]
@@ -30,6 +34,7 @@ pub fn Header() -> Element {
3034 Link {to: Route::Home{}, class:"main_nav_btn", "Home"}
3135 Link {to: Route::Projects{}, class:"main_nav_btn", "Projects"}
3236 Link {to: Route::Posts {}, class:"main_nav_btn", "Posts"}
37+ Link {to: Route::Links {}, class:"main_nav_btn", "Links"}
3338 }
3439 }
3540 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+}