mirror of
https://codeberg.org/Tahinli/personality.git
synced 2025-07-08 00:37:08 +00:00
feat: ✨ links page
This commit is contained in:
parent
a53e66e99f
commit
c04acb416e
5 changed files with 68 additions and 16 deletions
|
@ -3,3 +3,4 @@
|
||||||
My personal website
|
My personal website
|
||||||
|
|
||||||
[](https://ci.codeberg.org/repos/14212)
|
[](https://ci.codeberg.org/repos/14212)
|
||||||
|
|
||||||
|
|
|
@ -39,15 +39,50 @@
|
||||||
color: coral;
|
color: coral;
|
||||||
}
|
}
|
||||||
|
|
||||||
.projects_list {
|
.links_list {
|
||||||
font-size: large;
|
font-size: large;
|
||||||
color: white;
|
color: white;
|
||||||
margin: 1%;
|
margin: 1%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.projects_list h1 {
|
.links{
|
||||||
margin-top: 1%;
|
margin: 1%;
|
||||||
margin-bottom: 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 {
|
.project_link {
|
||||||
|
|
|
@ -18,13 +18,6 @@ pub fn Home() -> Element {
|
||||||
id: "title",
|
id: "title",
|
||||||
"System && Back End Developer"}
|
"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 {
|
div {
|
||||||
id: "main_about",
|
id: "main_about",
|
||||||
"
|
"
|
||||||
|
|
15
src/lib.rs
15
src/lib.rs
|
@ -1,12 +1,14 @@
|
||||||
use dioxus::prelude::*;
|
|
||||||
use home::Home;
|
|
||||||
use posts::{Post, Posts};
|
|
||||||
use projects::{Project, Projects};
|
|
||||||
|
|
||||||
pub mod home;
|
pub mod home;
|
||||||
|
pub mod links;
|
||||||
pub mod posts;
|
pub mod posts;
|
||||||
pub mod projects;
|
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)]
|
#[derive(Clone, Routable, Debug, PartialEq)]
|
||||||
pub enum Route {
|
pub enum Route {
|
||||||
#[route("/")]
|
#[route("/")]
|
||||||
|
@ -19,6 +21,8 @@ pub enum Route {
|
||||||
Posts {},
|
Posts {},
|
||||||
#[route("/posts/:id")]
|
#[route("/posts/:id")]
|
||||||
Post { id: i32 },
|
Post { id: i32 },
|
||||||
|
#[route("/links")]
|
||||||
|
Links {},
|
||||||
}
|
}
|
||||||
|
|
||||||
#[component]
|
#[component]
|
||||||
|
@ -30,6 +34,7 @@ pub fn Header() -> Element {
|
||||||
Link {to: Route::Home{}, class:"main_nav_btn", "Home"}
|
Link {to: Route::Home{}, class:"main_nav_btn", "Home"}
|
||||||
Link {to: Route::Projects{}, class:"main_nav_btn", "Projects"}
|
Link {to: Route::Projects{}, class:"main_nav_btn", "Projects"}
|
||||||
Link {to: Route::Posts {}, class:"main_nav_btn", "Posts"}
|
Link {to: Route::Posts {}, class:"main_nav_btn", "Posts"}
|
||||||
|
Link {to: Route::Links {}, class:"main_nav_btn", "Links"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
div { id: "content",
|
div { id: "content",
|
||||||
|
|
18
src/links.rs
Normal file
18
src/links.rs
Normal 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 {}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue