Skip to content

Commit

Permalink
update templating documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
naagaraa committed Jun 7, 2021
1 parent ee78026 commit 0814093
Show file tree
Hide file tree
Showing 9 changed files with 187 additions and 147 deletions.
Binary file modified README.md
Binary file not shown.
25 changes: 25 additions & 0 deletions apps/config/filesystem.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
*------------------------------------------------------------------------------------------------------
* FILE SYSTEM
* @author nagara
* @return function
*------------------------------------------------------------------------------------------------------
*
* on going
*
*/



# delete fite




# security file




# move file
20 changes: 20 additions & 0 deletions apps/view/auth/layout/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

<!--===============================================================================================-->
<script src="<?= asset("vendor/jquery/jquery-3.2.1.min.js") ?>"></script>
<!--===============================================================================================-->
<script src="<?= asset("vendor/animsition/js/animsition.min.js") ?>"></script>
<!--===============================================================================================-->
<script src="<?= asset("vendor/bootstrap/js/popper.js") ?>"></script>
<script src="<?= asset("vendor/bootstrap/js/bootstrap.min.js") ?>"></script>
<!--===============================================================================================-->
<script src="<?= asset("vendor/select2/select2.min.js") ?>"></script>
<!--===============================================================================================-->
<script src="<?= asset("vendor/daterangepicker/moment.min.js") ?>"></script>
<script src="<?= asset("vendor/daterangepicker/daterangepicker.js") ?>"></script>
<!--===============================================================================================-->
<script src="<?= asset("vendor/countdowntime/countdowntime.js") ?>"></script>
<!--===============================================================================================-->
<script src="<?= asset("js/main.js") ?>"></script>
</body>

</html>
32 changes: 32 additions & 0 deletions apps/view/auth/layout/header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en">

<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<head>
<title><?= title() ?></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="images/icons/favicon.ico"/>
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="<?= asset("vendor/bootstrap/css/bootstrap.min.css") ?>">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="<?= asset("fonts/font-awesome-4.7.0/css/font-awesome.min.css") ?>">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="<?= asset("fonts/Linearicons-Free-v1.0.0/icon-font.min.css") ?>">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="<?= asset("vendor/animate/animate.css") ?>">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="<?= asset("vendor/css-hamburgers/hamburgers.min.css") ?>">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="<?= asset("vendor/animsition/css/animsition.min.css") ?>">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="<?= asset("vendor/select2/select2.min.css") ?>">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="<?= asset("vendor/daterangepicker/daterangepicker.css") ?>">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="<?= asset("css/util.css") ?>">
<link rel="stylesheet" type="text/css" href="<?= asset("css/main.css") ?>">
<!--===============================================================================================-->
</head>
<body>
118 changes: 0 additions & 118 deletions apps/view/auth/login.php

This file was deleted.

68 changes: 68 additions & 0 deletions apps/view/auth/pages/login.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?php
# load controllernya
controller("loginController");
?>

<!-- # load template header -->
<?= view("auth/layout/header")?>
<div class="limiter">
<div class="container-login100">
<div class="wrap-login100 p-t-90 p-b-30">
<form class="login100-form validate-form">
<span class="login100-form-title p-b-40">
Login
</span>

<div>
<a href="#" class="btn-login-with bg1 m-b-10">
<i class="fa fa-facebook-official"></i>
Login with Facebook
</a>

<a href="#" class="btn-login-with bg2">
<i class="fa fa-twitter"></i>
Login with Twitter
</a>
</div>

<div class="text-center p-t-55 p-b-30">
<span class="txt1">
Login with email
</span>
</div>

<div class="wrap-input100 validate-input m-b-16" data-validate="Please enter email: ex@abc.xyz">
<input class="input100" type="text" name="email" placeholder="Email">
<span class="focus-input100"></span>
</div>

<div class="wrap-input100 validate-input m-b-20" data-validate = "Please enter password">
<span class="btn-show-pass">
<i class="fa fa fa-eye"></i>
</span>
<input class="input100" type="password" name="pass" placeholder="Password">
<span class="focus-input100"></span>
</div>

<div class="container-login100-form-btn">
<button class="login100-form-btn">
Login
</button>
</div>

<div class="flex-col-c p-t-224">
<span class="txt2 p-b-10">
Don’t have an account?
</span>

<a href="#" class="txt3 bo1 hov1">
Sign up now
</a>
</div>

</form>
</div>
</div>
</div>
<!-- # load template footer -->
<?= view("auth/layout/footer")?>
40 changes: 40 additions & 0 deletions boostrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

/**
*-----------------------------------------------------------------------------------------------
* composer autoload
* @return library
* @author miyuki nagara
*-----------------------------------------------------------------------------------------------
* Melakuka Required file bootstrap library package
*
*/

require_once "vendor/autoload.php";

/**
*-----------------------------------------------------------------------------------------------
* ENV Configuration
* @return env
* @author miyuki nagara
*-----------------------------------------------------------------------------------------------
* Melakuka Required autoload config enviroment variabel
*
*/

$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->safeLoad();


/**
*-----------------------------------------------------------------------------------------------
* Core Application
* @return config
* @author miyuki nagara
*-----------------------------------------------------------------------------------------------
* melakukan reuire file core
*
*/

require_once "apps/init.php";
require_once "routes/route.php";
29 changes: 1 addition & 28 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,4 @@
*
*/

require_once "vendor/autoload.php";

/**
*-----------------------------------------------------------------------------------------------
* ENV Configuration
* @return env
* @author miyuki nagara
*-----------------------------------------------------------------------------------------------
* Melakuka Required autoload config enviroment variabel
*
*/

$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->safeLoad();


/**
*-----------------------------------------------------------------------------------------------
* Core Application
* @return config
* @author miyuki nagara
*-----------------------------------------------------------------------------------------------
* melakukan reuire file core
*
*/

require_once "apps/init.php";
require_once "routes/route.php";
require_once "boostrap.php";
2 changes: 1 addition & 1 deletion routes/route.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
});

$router->get('login', function() {
view("auth/login");
view("auth/pages/login");
});


Expand Down

0 comments on commit 0814093

Please sign in to comment.