Init
This commit is contained in:
10
app/modules/Front/BaseFrontPresenter.php
Normal file
10
app/modules/Front/BaseFrontPresenter.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php declare(strict_types = 1);
|
||||
|
||||
namespace App\Modules\Front;
|
||||
|
||||
use App\Modules\Base\UnsecuredPresenter;
|
||||
|
||||
abstract class BaseFrontPresenter extends UnsecuredPresenter
|
||||
{
|
||||
|
||||
}
|
||||
10
app/modules/Front/Error/ErrorPresenter.php
Normal file
10
app/modules/Front/Error/ErrorPresenter.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php declare(strict_types = 1);
|
||||
|
||||
namespace App\Modules\Front\Error;
|
||||
|
||||
use App\Modules\Base\BaseErrorPresenter;
|
||||
|
||||
final class ErrorPresenter extends BaseErrorPresenter
|
||||
{
|
||||
|
||||
}
|
||||
10
app/modules/Front/Error4xx/Error4xxPresenter.php
Normal file
10
app/modules/Front/Error4xx/Error4xxPresenter.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php declare(strict_types = 1);
|
||||
|
||||
namespace App\Modules\Front\Error4xx;
|
||||
|
||||
use App\Modules\Base\BaseError4xxPresenter;
|
||||
|
||||
final class Error4xxPresenter extends BaseError4xxPresenter
|
||||
{
|
||||
|
||||
}
|
||||
7
app/modules/Front/Error4xx/templates/403.latte
Normal file
7
app/modules/Front/Error4xx/templates/403.latte
Normal file
@@ -0,0 +1,7 @@
|
||||
{block #content}
|
||||
<h1 n:block=title>Access Denied</h1>
|
||||
|
||||
<p>You do not have permission to view this page. Please try contact the web
|
||||
site administrator if you believe you should be able to view this page.</p>
|
||||
|
||||
<p><small>error 403</small></p>
|
||||
8
app/modules/Front/Error4xx/templates/404.latte
Normal file
8
app/modules/Front/Error4xx/templates/404.latte
Normal file
@@ -0,0 +1,8 @@
|
||||
{block #content}
|
||||
<h1 n:block=title>Page Not Found</h1>
|
||||
|
||||
<p>The page you requested could not be found. It is possible that the address is
|
||||
incorrect, or that the page no longer exists. Please use a search engine to find
|
||||
what you are looking for.</p>
|
||||
|
||||
<p><small>error 404</small></p>
|
||||
6
app/modules/Front/Error4xx/templates/405.latte
Normal file
6
app/modules/Front/Error4xx/templates/405.latte
Normal file
@@ -0,0 +1,6 @@
|
||||
{block #content}
|
||||
<h1 n:block=title>Method Not Allowed</h1>
|
||||
|
||||
<p>The requested method is not allowed for the URL.</p>
|
||||
|
||||
<p><small>error 405</small></p>
|
||||
6
app/modules/Front/Error4xx/templates/410.latte
Normal file
6
app/modules/Front/Error4xx/templates/410.latte
Normal file
@@ -0,0 +1,6 @@
|
||||
{block #content}
|
||||
<h1 n:block=title>Page Not Found</h1>
|
||||
|
||||
<p>The page you requested has been taken off the site. We apologize for the inconvenience.</p>
|
||||
|
||||
<p><small>error 410</small></p>
|
||||
4
app/modules/Front/Error4xx/templates/4xx.latte
Normal file
4
app/modules/Front/Error4xx/templates/4xx.latte
Normal file
@@ -0,0 +1,4 @@
|
||||
{block #content}
|
||||
<h1 n:block=title>Oops...</h1>
|
||||
|
||||
<p>Your browser sent a request that this server could not understand or process.</p>
|
||||
10
app/modules/Front/Home/HomePresenter.php
Normal file
10
app/modules/Front/Home/HomePresenter.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php declare(strict_types = 1);
|
||||
|
||||
namespace App\Modules\Front\Home;
|
||||
|
||||
use App\Modules\Front\BaseFrontPresenter;
|
||||
|
||||
final class HomePresenter extends BaseFrontPresenter
|
||||
{
|
||||
|
||||
}
|
||||
2
app/modules/Front/Home/templates/default.latte
Normal file
2
app/modules/Front/Home/templates/default.latte
Normal file
@@ -0,0 +1,2 @@
|
||||
{block #content}
|
||||
Welcome
|
||||
38
app/modules/Front/templates/@layout.latte
Normal file
38
app/modules/Front/templates/@layout.latte
Normal file
@@ -0,0 +1,38 @@
|
||||
{layout '../../Base/templates/@layout.latte'}
|
||||
|
||||
{block #head}
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css" defer/>
|
||||
<link rel="stylesheet" href="{$basePath}/assets/front.css" defer/>
|
||||
<script src="{$basePath}/assets/front.js" defer></script>
|
||||
{/}
|
||||
|
||||
{block #main}
|
||||
<div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column">
|
||||
<header class="masthead mb-auto">
|
||||
<div class="inner">
|
||||
<h3 class="masthead-brand">Webapp</h3>
|
||||
<nav class="nav nav-masthead justify-content-center">
|
||||
<a n:class="$presenter->isLinkCurrent(':Front:Home:') ? active, nav-link" n:href=":Front:Home:">Home</a>
|
||||
<a n:class="$presenter->isLinkCurrent(':Admin:Home:') ? active, nav-link" n:href=":Admin:Home:">Admin</a>
|
||||
<a n:class="$presenter->isLinkCurrent(':Pdf:Home:') ? active, nav-link" n:href=":Pdf:Home:">PDF example</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main role="main" class="inner cover">
|
||||
<h1 class="cover-heading">Webapp skeleton.</h1>
|
||||
<p class="lead">This is example project based on <a href="https://nette.org">Nette Framework</a></p>
|
||||
<p class="lead">And also many <a href="https://contributte.org">Contributte + Nettrine</a> packages.</p>
|
||||
<div class="lead">
|
||||
<a href="https://github.com/contributte/webapp-skeleton" class="btn btn-lg btn-secondary">Learn more in docs</a>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="mastfoot mt-auto">
|
||||
<div class="inner">
|
||||
<p>Cover template for <a href="https://getbootstrap.com/">Bootstrap</a>, by
|
||||
<a href="https://twitter.com/mdo">@mdo</a>.</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
{/}
|
||||
Reference in New Issue
Block a user