feat: links page

This commit is contained in:
Ahmet Kaan Gümüş 2025-02-15 08:01:15 +03:00
parent a53e66e99f
commit c04acb416e
5 changed files with 68 additions and 16 deletions

View file

@ -3,3 +3,4 @@
My personal website
[![status-badge](https://ci.codeberg.org/api/badges/14212/status.svg)](https://ci.codeberg.org/repos/14212)

View file

@ -39,15 +39,50 @@
color: coral;
}
.projects_list {
.links_list {
font-size: large;
color: white;
margin: 1%;
}
.projects_list h1 {
margin-top: 1%;
margin-bottom: 1%;
.links{
margin: 1%;
h1 {
color: azure;
}
h3 {
margin-top: 1%;
color: aliceblue;
}
h5 {
margin-bottom: 1%;
color: antiquewhite;
}
div {
margin-top: 1%;
display:block;
@media screen {
width: 50%;
}
@media screen and (max-width:820px){
width: 100%;
}
}
}
.links_link {
text-decoration: underline;
font-size: x-large;
color: azure;
margin: 1%;
}
.projects_list {
font-size: large;
color: white;
margin: 1%;
}
.project_link {

View file

@ -18,13 +18,6 @@ pub fn Home() -> Element {
id: "title",
"System && Back End Developer"}
div {
id: "social_links",
Link {id:"codeberg",to: "https://codeberg.org/Tahinli", "Codeberg"}
Link {id:"linkedin",to: "https://linkedin.com/in/ahmetkaangumus", "LinkedIn"}
}
div {
id: "main_about",
"

View file

@ -1,12 +1,14 @@
use dioxus::prelude::*;
use home::Home;
use posts::{Post, Posts};
use projects::{Project, Projects};
pub mod home;
pub mod links;
pub mod posts;
pub mod projects;
use dioxus::prelude::*;
use home::Home;
use links::Links;
use posts::{Post, Posts};
use projects::{Project, Projects};
#[derive(Clone, Routable, Debug, PartialEq)]
pub enum Route {
#[route("/")]
@ -19,6 +21,8 @@ pub enum Route {
Posts {},
#[route("/posts/:id")]
Post { id: i32 },
#[route("/links")]
Links {},
}
#[component]
@ -30,6 +34,7 @@ pub fn Header() -> Element {
Link {to: Route::Home{}, class:"main_nav_btn", "Home"}
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"}
}
}
div { id: "content",

18
src/links.rs Normal file
View file

@ -0,0 +1,18 @@
use dioxus::prelude::*;
use crate::{Footer, Header};
#[component]
pub fn Links() -> Element {
rsx! {
Header {}
div {
class: "links_list",
h1 {"Links"}
div {class: "links_link", Link {to: "https://codeberg.org/Tahinli", class: "links_link", "Codeberg"} }
div {class: "links_link", Link {to: "https://github.com/Tahinli", class: "links_link", "GitHub"} }
div {class: "links_link", Link {to: "https://linkedin.com/in/ahmetkaangumus", class: "links_link", "LinkedIn"} }
}
Footer {}
}
}