From 0209580d7dcb98a65e60ae40906d2e4c4daafd74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 6 Sep 2025 23:56:00 +0300 Subject: [PATCH] feat: :sparkles: writings and open letters sections --- assets/main.css | 36 ++++++++++++ src/home.rs | 13 ++--- src/lib.rs | 16 ++++-- src/links.rs | 2 + src/posts.rs | 27 ++------- src/posts/open_letters.rs | 113 ++++++++++++++++++++++++++++++++++++++ src/posts/writings.rs | 101 ++++++++++++++++++++++++++++++++++ 7 files changed, 275 insertions(+), 33 deletions(-) create mode 100644 src/posts/open_letters.rs create mode 100644 src/posts/writings.rs diff --git a/assets/main.css b/assets/main.css index 414b659..5662f70 100644 --- a/assets/main.css +++ b/assets/main.css @@ -4,6 +4,42 @@ font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } +.post { + margin: 1%; + + h1 { + color: azure; + } + + h3 { + margin-top: 1%; + color: aliceblue; + } + + h5 { + margin-bottom: 1%; + color: antiquewhite; + } + + div { + margin-top: 1%; + display: block; + color: antiquewhite; + + @media screen { + width: 50%; + } + + @media screen and (max-width:820px) { + width: 100%; + } + } + + p { + margin: 1%; + } +} + .project { margin: 1%; diff --git a/src/home.rs b/src/home.rs index 12dd068..78722ac 100644 --- a/src/home.rs +++ b/src/home.rs @@ -20,17 +20,14 @@ pub fn Home() -> Element { div { id: "main_about", - " - Hi, I'm Ahmet Kaan. I'm Turk. I was born in 2001. - I graduated from the computer engineering major at Erciyes University. + " + Hi, - I'm keen on understanding computers as deeply as possible. - I love open source philosophy and KISS principle. + I’m Ahmet Kaan. I’m Turkish and was born in 2001. I graduated with a degree in Computer Engineering from Erciyes University. I’m keen on understanding computers as deeply as possible and I love the open‑source philosophy and the KISS principle. - My passion is to create software that's able to live as long as possible. Developers should write versatile, bug free programs. Using software is impossible to ignore. World's leading with software and will be. We as developers must think as many possibility as possible to create robust and secure programs. +My passion is to create software that can stand the test of time. Developers should write versatile, bug‑free programs. It’s impossible to ignore the impact of software. Today’s world is led by it and will continue to be. As developers, we must consider as many possibilities as we can in order to build robust and secure applications. - I wish I will be able to create free and open source software that is widely used by people without even let them thinking about their privacy and robustness of my program. - " +I hope to create free and open‑source software that is widely used, allowing people to benefit from it without having to worry about privacy or the reliability of the program. " } } Footer {} diff --git a/src/lib.rs b/src/lib.rs index c649630..c08bca0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,10 @@ pub mod projects; use dioxus::prelude::*; use home::Home; use links::Links; -use posts::{Post, Posts}; +use posts::{ + open_letters::OpenLetter, open_letters::OpenLetters, writings::Writing, writings::Writings, + Posts, +}; use projects::{Project, Projects}; #[derive(Clone, Routable, Debug, PartialEq)] @@ -19,8 +22,14 @@ pub enum Route { Project { id: i32 }, #[route("/posts")] Posts {}, - #[route("/posts/:id")] - Post { id: i32 }, + #[route("/posts/writings")] + Writings {}, + #[route("/posts/writings/:id")] + Writing { id: i32 }, + #[route("/posts/open_letters")] + OpenLetters {}, + #[route("/posts/open_letters/:id")] + OpenLetter { id: i32 }, #[route("/links")] Links {}, } @@ -35,7 +44,6 @@ pub fn Header() -> Element { Link {to: Route::Projects{}, class:"main_nav_btn", "Projects"} Link {to: Route::Posts {}, class:"main_nav_btn", "Posts"} Link {to: Route::Links {}, class:"main_nav_btn", "Links"} - Link {to: "https://source.tahinli.com", class:"main_nav_btn", "Source"} } } div { id: "content", diff --git a/src/links.rs b/src/links.rs index 28acb8a..6bbc93d 100644 --- a/src/links.rs +++ b/src/links.rs @@ -9,6 +9,8 @@ pub fn Links() -> Element { div { class: "links_list", h1 {"Links"} + div {class: "links_link", Link {to: "https://linkedin/in/ahmetkaangumus", class: "links_link", "LinkedIn"} } + div {class: "links_link", Link {to: "https://github.com/Tahinli", class: "links_link", "GitHub"} } div {class: "links_link", Link {to: "https://source.tahinli.com/Tahinli", class: "links_link", "My Personal Git Website"} } } Footer {} diff --git a/src/posts.rs b/src/posts.rs index eb3a42d..81c5bc9 100644 --- a/src/posts.rs +++ b/src/posts.rs @@ -1,6 +1,8 @@ -use dioxus::prelude::*; +pub mod open_letters; +pub mod writings; -use crate::{Footer, Header}; +use crate::{Footer, Header, Route}; +use dioxus::prelude::*; #[component] pub fn Posts() -> Element { @@ -9,26 +11,9 @@ pub fn Posts() -> Element { div { class: "posts_list", h1 {"Posts"} + div { class: "post_link", Link {to: Route::Writings { }, class: "post_link", "Writings"} } + div { class: "post_link", Link {to: Route::OpenLetters { }, class: "post_link", "Open Letters"} } } Footer {} } } - -#[component] -pub fn Post(id: i32) -> Element { - let x = match id { - 1 => { - rsx! {} - } - _ => { - rsx! { - h1 {"You're not supposed to be here"} - } - } - }; - rsx! { - Header {} - {x} - Footer {} - } -} diff --git a/src/posts/open_letters.rs b/src/posts/open_letters.rs new file mode 100644 index 0000000..bb2dea4 --- /dev/null +++ b/src/posts/open_letters.rs @@ -0,0 +1,113 @@ +use dioxus::prelude::*; +use crate::{Footer, Header, Route}; + + +#[component] +pub fn OpenLetters() -> Element { + rsx! { + Header {} + div { + class: "posts_list", + h1 {"Open Letters"} + div { class: "post_link", Link {to: Route::OpenLetter { id: 1 },/* */class: "post_link", "16 February 2025"} } + div { class: "post_link", Link {to: Route::OpenLetter { id: 2 }, class: "post_link", "24 August 2025"} } + } + Footer {} + } +} + +#[component] +pub fn OpenLetter(id: i32) -> Element { + let x = match id { + 1 => { + rsx! { + div { + class:"post", + h1 {"16 February 2025"} + br { } + div { + "Hi," + br { } + "Since I'm an open-source developer and a person who relies on open source software, I realize there is a massive contradiction to my perspective and my life. It's GitHub, which is run by Microsoft. It took me a lot of time to understand what I'm doing after using it for many years and pushing thousands of commits for tens of projects." + br { } + "I don't want this situation to continue. From now on," + + br { } + br { } + p { "I have archived all of my repositories and plan to log in only for opening issues and pull requests for other projects." } + + br { } + p { "My new projects will not be hosted in there." } + + br { } + p { "If an existing project needs an update, or I want to add new things, it will not be in there." } + + br { } + "You can follow my projects and source codes from https://tahinli.com." + + br { } + br { } + "Best wishes," + + br { } + br { } + "Ahmet Kaan Gümüş" + } + } + } + }, + 2 => { + rsx! { + div { + class:"post", + h1 {"24 August 2025"} + br {} + div { + "Hi," + br { } + "It has been couple of months since I quit from GitHub. In this period I understand couple of things," + + br { } + br { } + p { "Only(or mostly) big open-source projects are capable of reaching others and maintaining themselves without using GitHub." } + + br { } + p{ "If you are a solo developer or a small team, you already lose your chance to reach others when you self-host." } + + br { } + p { "Data security, backup and recovery processes are more serious things than they seemed."} + + br { } + p { "CI/CD processes are not free." } + + br { } + p { "Even non technical people are familiar with GitHub, and it's an indicator for HR departments while applying a job." } + + br { } + br { } + "I'm still in the same position as in my 16 February 2025 letter. GitHub is still closed source and owned by Microsoft. I want to own my own code but still need to reach community, get better CI/CD and have reliable backup opportunities. So from now on," + br { } + br { } + p { "I will mirror my repos into different platforms, included GitHub." } + + br { } + "Best wishes," + br { } + br { } + "Ahmet Kaan Gümüş" + } + } + } + } + _ => { + rsx! { + h1 {"You're not supposed to be here"} + } + } + }; + rsx! { + Header {} + {x} + Footer {} + } +} diff --git a/src/posts/writings.rs b/src/posts/writings.rs new file mode 100644 index 0000000..02b85d0 --- /dev/null +++ b/src/posts/writings.rs @@ -0,0 +1,101 @@ +use crate::{Footer, Header, Route}; +use dioxus::prelude::*; + +#[component] +pub fn Writings() -> Element { + rsx! { + Header {} + div { + class: "posts_list", + h1 {"Writings"} + div { class: "post_link", Link {to: Route::Writing { id: 1 },class: "post_link", "Awaken"} } + } + Footer {} + } +} + +#[component] +pub fn Writing(id: i32) -> Element { + let x = match id { + 1 => { + rsx! { + div { + class:"post", + h1 {"Awaken"} + br { } + div { +"Does every word flies, if it's not written." +br { } +"A life goes by a word that is written." +br { } +"Word doesn't know what is written." +br { } +"Only feels why it's written." +br { } +br { } +"Things come and go with a light." +br { } +"A cry is woken by the light." +br { } +"Does ever the light's gone for a blind." +br { } +"Maybe awaken is blinded by the light." +br { } +br { } + +"Time goes with a paper and blood." +br { } +"The blood will end by the paper and a heart." +br { } +"The paper came with the blood and a knife." +br { } +"Hearts will die with the time and the blood." +br { } +br { } + +"Sirens are here to wake." +br { } +"The awaken is ready to take a break." +br { } +"Screams goes where, when a silence comes to take." +br { } +"Take the gap to get a moment to wake." +br { } +br { } + +"The awaken can't feel a thing what is real." +br { } +"Does ever be a thing that is not surreal." +br { } +"Real isn't the moment to be there to deal." +br { } +"Deal is ever be a thing in real." +br { } +br { } + +"Blooded writes these down with a blind mind." +br { } +"A mind came by the light to get a heart of a knife." +br { } +"The knife cuts the light in a written time." +br { } +"The written is the siren for the awaken to die." +br { } +br { } +"Ahmet Kaan Gümüş" + } + } + } + } + _ => { + rsx! { + h1 {"You're not supposed to be here"} + } + } + }; + rsx! { + Header {} + {x} + Footer {} + } +}