Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kutluhanazafli committed Jun 22, 2024
0 parents commit fdd5c79
Show file tree
Hide file tree
Showing 2,069 changed files with 789,087 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.vscode
.idea
3 changes: 3 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?route=$1 [QSA]
Empty file added Controller/categories.php
Empty file.
11 changes: 11 additions & 0 deletions Controller/home.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

if (route(0) == 'home') {

view('home/home', [
'name' => 'Kutluhan',
'surname' => 'Azaflı',
]);

}

11 changes: 11 additions & 0 deletions Controller/login.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

if (route(0) == 'login') {
if (isset($_POST['submit'])) {
$email = post('email');
$password = post('password');

}

view('auth/login');
}
Empty file added README.MD
Empty file.
78 changes: 78 additions & 0 deletions View/auth/login.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?php view('static/header') ?>

<div class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href="#"><b>ToDo</b>App</a>
</div>
<!-- /.login-logo -->
<div class="card">
<div class="card-body login-card-body">
<p class="login-box-msg"> <?= lang('login') ?> </p>

<form action="<?= URL . 'login' ?>" method="post">
<div class="input-group mb-3">
<input type="email" class="form-control" name="email" placeholder=" <?= lang('email') ?> ">
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-envelope"></span>
</div>
</div>
</div>
<div class="input-group mb-3">
<input type="password" class="form-control" name="password" placeholder=" <?= lang('password') ?> ">
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-lock"></span>
</div>
</div>
</div>
<div class="row">
<div class="col-8">
<div class="icheck-primary">
<input type="checkbox" id="remember">
<label for="remember">
<?= lang('remember') ?>
</label>
</div>
</div>
<!-- /.col -->
<div class="col-4">
<button type="submit" class="btn btn-primary btn-block" name="submit" value="1"> <?= lang('signin') ?> </button>
</div>
<!-- /.col -->
</div>
</form>

<div class="social-auth-links text-center mb-3">
<p>- OR -</p>
<a href="#" class="btn btn-block btn-primary">
<i class="fab fa-facebook mr-2"></i> Sign in using Facebook
</a>
<a href="#" class="btn btn-block btn-danger">
<i class="fab fa-google-plus mr-2"></i> Sign in using Google+
</a>
</div>
<!-- /.social-auth-links -->

<p class="mb-1">
<a href="forgot-password.html">I forgot my password</a>
</p>
<p class="mb-0">
<a href="register.html" class="text-center">Register a new membership</a>
</p>
</div>
<!-- /.login-card-body -->
</div>
</div>
<!-- /.login-box -->

<!-- jQuery -->
<script src="<?= assets('plugins/jquery/jquery.min.js') ?>"></script>
<!-- Bootstrap 4 -->
<script src="<?= assets('plugins/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
<!-- AdminLTE App -->
<script src="<?= assets('dist/js/adminlte.min.js') ?>"></script>
</body>
</html>

Loading

0 comments on commit fdd5c79

Please sign in to comment.