mirror of
https://github.com/kristoferssolo/kristofersxyz-rs.git
synced 2026-02-04 06:42:06 +00:00
feat: add about page
This commit is contained in:
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user