mirror of
https://github.com/kristoferssolo/kristofersxyz-rs.git
synced 2025-10-21 20:10:36 +00:00
feat: add about page
This commit is contained in:
parent
1f64283998
commit
1bc371e893
10
app/src/components/hero.rs
Normal file
10
app/src/components/hero.rs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
use leptos::prelude::*;
|
||||||
|
|
||||||
|
#[component]
|
||||||
|
pub fn hero() -> impl IntoView {
|
||||||
|
view! {
|
||||||
|
<section id="hero">
|
||||||
|
<h1 class="text-4xl font-bold">"Hi, I'm [Your Name]."</h1>
|
||||||
|
</section>
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,5 +1,4 @@
|
|||||||
use leptos::prelude::*;
|
use leptos::prelude::*;
|
||||||
|
|
||||||
/// Renders the home page of your application.
|
/// Renders the home page of your application.
|
||||||
#[component]
|
#[component]
|
||||||
pub fn HomePage() -> impl IntoView {
|
pub fn HomePage() -> impl IntoView {
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
pub mod app;
|
mod app;
|
||||||
|
mod hero;
|
||||||
mod home_page;
|
mod home_page;
|
||||||
|
|
||||||
pub use app::App;
|
pub use app::App;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user