frontend: main page content
This commit is contained in:
parent
6d0842f910
commit
6468d0e9f9
@ -418,7 +418,7 @@ fn create_config(props: &GenerateProps) -> Html {
|
||||
fn switch(routes: Route) -> Html {
|
||||
match routes.clone() {
|
||||
Route::Home => html! {
|
||||
<div>
|
||||
<>
|
||||
<Navbar currrent_route={routes} />
|
||||
|
||||
<section class="bg-white dark:bg-gray-900">
|
||||
@ -427,7 +427,15 @@ fn switch(routes: Route) -> Html {
|
||||
<p class="mb-8 text-lg font-normal text-gray-500 lg:text-xl sm:px-16 lg:px-48 dark:text-gray-400">{"Ваши файлы конфигурации OpenVPN у вас под рукой!"}</p>
|
||||
</div>
|
||||
</section>
|
||||
</div> },
|
||||
<div class="mt-2 pt-1 ml-2 pl-2 mb-2 pb-2 grid place-items-center text-2xl inline-flex items-center font-medium text-blue-700 hover:underline"><Link<Route> to={Route::Directories}>{ "Начать" }</Link<Route>></div>
|
||||
|
||||
<div class="mt-4 pt-4 ml-2 pl-2"><h2 class="mb-2 text-lg font-semibold">{"Исходники"}</h2>
|
||||
<ul class="max-w-md space-y-1 list-disc list-inside">
|
||||
<li><a class="inline-flex items-center font-medium text-blue-700 hover:underline" target="_blank" href="https://gitea.b4tman.ru/b4tman/peazyweb">{"Интерфейс"}</a></li>
|
||||
<li><a class="inline-flex items-center font-medium text-blue-700 hover:underline" target="_blank" href="https://gitea.b4tman.ru/b4tman/peazyrsa">{"Генератор конфигов"}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</> },
|
||||
Route::Directories => html! {
|
||||
<div>
|
||||
<Navbar currrent_route={routes} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user