Skip to content

Commit

Permalink
feat(guide): add a new guide page.
Browse files Browse the repository at this point in the history
  • Loading branch information
alardev committed Feb 14, 2024
1 parent 6329d6c commit 4c3ca20
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 165 deletions.
6 changes: 5 additions & 1 deletion site/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use leptos_tw_ui::components::{
};

use crate::{
pages::{about::AboutPage, transliterator::Transliterator},
pages::{about::AboutPage, guide::GuidePage, transliterator::Transliterator},
theme::{
default_page_class, ButtonVariant, MenuBarVariant, MenuHeaderVariant,
ToggleSwitchClassVariant,
Expand All @@ -37,6 +37,7 @@ pub fn App() -> impl IntoView {
<Routes>
<Route path="/" view=move || view! { <Transliterator/> }/>
<Route path="/about" view=move || view! { <AboutPage/> }/>
<Route path="/guide" view=move || view! { <GuidePage/> }/>
</Routes>
</Router>
</Layout>
Expand Down Expand Up @@ -97,6 +98,9 @@ fn Menu() -> impl IntoView {
<LinkButton href="/" variant=ButtonVariant::Ghost.get()>
Транслітерація
</LinkButton>
<LinkButton href="/guide" variant=ButtonVariant::Ghost.get()>
Посібник
</LinkButton>
<LinkButton href="/about" variant=ButtonVariant::Ghost.get()>
Про Коваль
</LinkButton>
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/about.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ fn AboutTextBlock() -> impl IntoView {
target="_blank"
href="https://github.com/alardev/wana_kana_rust"
>
Модифікація наведеної бібліотеки
Модифікація наведеної бібліотеки
</a>
допомогла створити транслітерацію хірагани/катакани українською мовою за використання
<a
Expand Down Expand Up @@ -225,7 +225,7 @@ fn AboutTextBlock() -> impl IntoView {
<a
class="font-semibold dark:text-violet-400"
href="https://www.instagram.com/stoka100k/"
target="_blank"
target="_blank"
>
Сашко
</a> - За створення чудового логотипу для сайту.
Expand Down
Loading

0 comments on commit 4c3ca20

Please sign in to comment.