mirror of
https://github.com/dyzulk/dyzulk-apps.git
synced 2026-01-26 21:32:04 +07:00
pertama commit
This commit is contained in:
88
application/views/auth/change-password.php
Normal file
88
application/views/auth/change-password.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<!DOCTYPE html>
|
||||
<html :class="{ 'theme-dark': dark }" x-data="data()" lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link href="https://dyzulk.me/dist/img/favicon.png" rel="icon" sizes=”32×32″ type="image/png">
|
||||
<title><?=$title;?> - App Dashboard</title>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link rel="stylesheet" href="<?=base_url();?>src/css/tailwind.output.css" />
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js"
|
||||
defer
|
||||
></script>
|
||||
<script src="<?=base_url();?>src/js/init-alpine.js"></script>
|
||||
|
||||
<!-- Font Awesome Icons -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/dyzcdn/fas@main/css/all.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/gh/dyzcdn/fas@main/js/pro.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex items-center min-h-screen p-6 bg-gray-50 dark:bg-gray-900">
|
||||
<div
|
||||
class="flex-1 h-full max-w-4xl mx-auto overflow-hidden bg-white rounded-lg shadow-xl dark:bg-gray-800"
|
||||
>
|
||||
<div class="flex flex-col overflow-y-auto md:flex-row">
|
||||
<div class="h-32 md:h-auto md:w-1/2">
|
||||
<img
|
||||
aria-hidden="true"
|
||||
class="object-cover w-full h-full dark:hidden"
|
||||
src="<?=base_url();?>src/img/login-office.jpeg"
|
||||
alt="Office"
|
||||
/>
|
||||
<img
|
||||
aria-hidden="true"
|
||||
class="hidden object-cover w-full h-full dark:block"
|
||||
src="<?=base_url();?>src/img/login-office-dark.jpeg"
|
||||
alt="Office"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex items-center justify-center p-6 sm:p-12 md:w-1/2">
|
||||
<div class="w-full">
|
||||
<h1
|
||||
class="mb-4 text-xl font-semibold text-gray-700 dark:text-gray-200"
|
||||
>
|
||||
Change Password
|
||||
</h1>
|
||||
|
||||
<form action="<?=base_url('auth/changepassword');?>" method="post">
|
||||
<label class="block text-sm">
|
||||
<span class="text-gray-700 dark:text-gray-400">New Password</span>
|
||||
<input
|
||||
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
|
||||
placeholder="Enter new password" name="password1" value="<?=set_value('password1');?>"
|
||||
type="password"
|
||||
/>
|
||||
<?= form_error('password1', '<p><small class="text-danger text-xs"><strong>', '</strong></small></p>'); ?>
|
||||
</label>
|
||||
<label class="block mt-4 text-sm">
|
||||
<span class="text-gray-700 dark:text-gray-400">Confirm New Password</span>
|
||||
<input
|
||||
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
|
||||
placeholder="Enter new password again" name="password2"
|
||||
type="password"
|
||||
/>
|
||||
<?= form_error('password2', '<p><small class="text-danger text-xs"><strong>', '</strong></small></p>'); ?>
|
||||
</label>
|
||||
|
||||
<!-- You should use a button here, as the anchor is only used for the example -->
|
||||
<button
|
||||
type="submit" class="block w-full px-4 py-2 mt-4 text-sm font-medium leading-5 text-center text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple"
|
||||
>
|
||||
Change Password
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<hr class="my-8" />
|
||||
<div class="mb-0"><?= $this->session->flashdata('message'); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
71
application/views/auth/forgotpassword.php
Normal file
71
application/views/auth/forgotpassword.php
Normal file
@@ -0,0 +1,71 @@
|
||||
<!DOCTYPE html>
|
||||
<html :class="{ 'theme-dark': dark }" x-data="data()" lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link href="https://dyzulk.me/dist/img/favicon.png" rel="icon" sizes=”32×32″ type="image/png">
|
||||
<title><?=$title;?> - App Dashboard</title>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link rel="stylesheet" href="<?=base_url();?>src/css/tailwind.output.css" />
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js"
|
||||
defer
|
||||
></script>
|
||||
<script src="<?=base_url();?>src/js/init-alpine.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex items-center min-h-screen p-6 bg-gray-50 dark:bg-gray-900">
|
||||
<div
|
||||
class="flex-1 h-full max-w-4xl mx-auto overflow-hidden bg-white rounded-lg shadow-xl dark:bg-gray-800"
|
||||
>
|
||||
<div class="flex flex-col overflow-y-auto md:flex-row">
|
||||
<div class="h-32 md:h-auto md:w-1/2">
|
||||
<img
|
||||
aria-hidden="true"
|
||||
class="object-cover w-full h-full dark:hidden"
|
||||
src="<?=base_url();?>src/img/forgot-password-office.jpeg"
|
||||
alt="Office"
|
||||
/>
|
||||
<img
|
||||
aria-hidden="true"
|
||||
class="hidden object-cover w-full h-full dark:block"
|
||||
src="<?=base_url();?>src/img/forgot-password-office-dark.jpeg"
|
||||
alt="Office"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex items-center justify-center p-6 sm:p-12 md:w-1/2">
|
||||
<div class="w-full">
|
||||
<h1
|
||||
class="mb-4 text-xl font-semibold text-gray-700 dark:text-gray-200"
|
||||
>
|
||||
Forgot password
|
||||
</h1>
|
||||
<form action="<?=base_url('auth/forgotpassword');?>" method="post">
|
||||
<label class="block text-sm">
|
||||
<span class="text-gray-700 dark:text-gray-400">Email</span>
|
||||
<input
|
||||
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
|
||||
placeholder="your@mail.com" name="email" value="<?=set_value('email');?>"
|
||||
type="email"
|
||||
/>
|
||||
</label>
|
||||
|
||||
<!-- You should use a button here, as the anchor is only used for the example -->
|
||||
<button
|
||||
class="block w-full px-4 py-2 mt-4 text-sm font-medium leading-5 text-center text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple"
|
||||
type="submit"
|
||||
>
|
||||
Recover password
|
||||
</button>
|
||||
</form>
|
||||
<div class="mb-0"><?= $this->session->flashdata('message'); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
89
application/views/auth/login.php
Normal file
89
application/views/auth/login.php
Normal file
@@ -0,0 +1,89 @@
|
||||
<!DOCTYPE html>
|
||||
<html :class="{ 'theme-dark': dark }" x-data="data()" lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link href="https://dyzulk.me/dist/img/favicon.png" rel="icon" sizes=”32×32″ type="image/png">
|
||||
<title>Login - App Dashboard</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
|
||||
rel="stylesheet" />
|
||||
<link rel="stylesheet" href="<?=base_url();?>src/css/tailwind.output.css" />
|
||||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
|
||||
<script src="<?=base_url();?>src/js/init-alpine.js"></script>
|
||||
|
||||
<!-- Font Awesome Icons -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/dyzcdn/fas@main/css/all.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/gh/dyzcdn/fas@main/js/pro.min.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="flex items-center min-h-screen p-6 bg-gray-50 dark:bg-gray-900">
|
||||
<div class="flex-1 h-full max-w-4xl mx-auto overflow-hidden bg-white rounded-lg shadow-xl dark:bg-gray-800">
|
||||
<div class="flex flex-col overflow-y-auto md:flex-row">
|
||||
<div class="h-32 md:h-auto md:w-1/2">
|
||||
<img aria-hidden="true" class="object-cover w-full h-full dark:hidden"
|
||||
src="<?=base_url();?>src/img/login-office.jpeg" alt="Office" />
|
||||
<img aria-hidden="true" class="hidden object-cover w-full h-full dark:block"
|
||||
src="<?=base_url();?>src/img/login-office-dark.jpeg" alt="Office" />
|
||||
</div>
|
||||
<div class="flex items-center justify-center p-6 sm:p-12 md:w-1/2">
|
||||
<div class="w-full">
|
||||
<h1 class="mb-4 text-xl font-semibold text-gray-700 dark:text-gray-200">
|
||||
Login
|
||||
</h1>
|
||||
|
||||
<form action="<?=base_url('auth');?>" method="post">
|
||||
<label class="block text-sm">
|
||||
<span class="text-gray-700 dark:text-gray-400">Email</span>
|
||||
<input
|
||||
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
|
||||
placeholder="your@mail.com" name="email" value="<?=set_value('email');?>" />
|
||||
<?= form_error('email', '<p><small style="color: #DE5154;"><strong>', '</strong></small></p>'); ?>
|
||||
</label>
|
||||
<label class="block mt-4 text-sm">
|
||||
<span class="text-gray-700 dark:text-gray-400">Password</span>
|
||||
<input
|
||||
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
|
||||
placeholder="Password" name="password" type="password" />
|
||||
<?= form_error('password', '<p><small style="color: #DE5154;"><strong>', '</strong></small></p>'); ?>
|
||||
</label>
|
||||
|
||||
<!-- You should use a button here, as the anchor is only used for the example -->
|
||||
<button type="submit"
|
||||
class="block w-full px-4 py-2 mt-4 text-sm font-medium leading-5 text-center text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple">
|
||||
Log in
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div style="margin-top: 9px"><?= $this->session->flashdata('message'); ?></div>
|
||||
|
||||
<hr class="my-8" />
|
||||
|
||||
<button
|
||||
class="flex items-center justify-center w-full px-4 py-2 text-sm font-medium leading-5 text-white text-gray-700 transition-colors duration-150 border border-gray-300 rounded-lg dark:text-gray-400 active:bg-transparent hover:border-gray-500 focus:border-gray-500 active:text-gray-500 focus:outline-none focus:shadow-outline-gray">
|
||||
<i class="fab fa-google mr-2"></i>
|
||||
With Google
|
||||
</button>
|
||||
|
||||
<p class="mt-4">
|
||||
<a class="text-sm font-medium text-purple-600 dark:text-purple-400 hover:underline"
|
||||
href="<?=base_url('auth/forgotpassword');?>">
|
||||
Forgot your password?
|
||||
</a>
|
||||
</p>
|
||||
<p class="mt-1">
|
||||
<a class="text-sm font-medium text-purple-600 dark:text-purple-400 hover:underline"
|
||||
href="<?=base_url('auth/signup');?>">
|
||||
Create account
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
137
application/views/auth/signup.php
Normal file
137
application/views/auth/signup.php
Normal file
@@ -0,0 +1,137 @@
|
||||
<!DOCTYPE html>
|
||||
<html :class="{ 'theme-dark': dark }" x-data="data()" lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link href="https://dyzulk.me/dist/img/favicon.png" rel="icon" sizes=”32×32″ type="image/png">
|
||||
<title>Create account - Windmill Dashboard</title>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link rel="stylesheet" href="<?=base_url();?>src/css/tailwind.output.css" />
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js"
|
||||
defer
|
||||
></script>
|
||||
<script src="<?=base_url();?>src/js/init-alpine.js"></script>
|
||||
|
||||
<!-- Font Awesome Icons -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/dyzcdn/fas@main/css/all.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/gh/dyzcdn/fas@main/js/pro.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex items-center min-h-screen p-6 bg-gray-50 dark:bg-gray-900">
|
||||
<div
|
||||
class="flex-1 h-full max-w-4xl mx-auto overflow-hidden bg-white rounded-lg shadow-xl dark:bg-gray-800"
|
||||
>
|
||||
<div class="flex flex-col overflow-y-auto md:flex-row">
|
||||
<div class="h-32 md:h-auto md:w-1/2">
|
||||
<img
|
||||
aria-hidden="true"
|
||||
class="object-cover w-full h-full dark:hidden"
|
||||
src="<?=base_url();?>src/img/create-account-office.jpeg"
|
||||
alt="Office"
|
||||
/>
|
||||
<img
|
||||
aria-hidden="true"
|
||||
class="hidden object-cover w-full h-full dark:block"
|
||||
src="<?=base_url();?>src/img/create-account-office-dark.jpeg"
|
||||
alt="Office"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex items-center justify-center p-6 sm:p-12 md:w-1/2">
|
||||
<div class="w-full">
|
||||
<h1
|
||||
class="mb-4 text-xl font-semibold text-gray-700 dark:text-gray-200"
|
||||
>
|
||||
Create account
|
||||
</h1>
|
||||
<form action="<?=base_url('auth/signup');?>" method="post">
|
||||
<label class="block text-sm">
|
||||
<span class="text-gray-700 dark:text-gray-400">Full name</span>
|
||||
<input
|
||||
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
|
||||
placeholder="Jane Doe"
|
||||
type="text"
|
||||
name="nama" value="<?=set_value('nama');?>"
|
||||
/>
|
||||
</label>
|
||||
<label class="block text-sm">
|
||||
<span class="text-gray-700 dark:text-gray-400">Email</span>
|
||||
<input
|
||||
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
|
||||
placeholder="your@mail.com"
|
||||
type="email"
|
||||
name="email" value="<?=set_value('email');?>"
|
||||
/>
|
||||
</label>
|
||||
<label class="block mt-4 text-sm">
|
||||
<span class="text-gray-700 dark:text-gray-400">Password</span>
|
||||
<input
|
||||
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
|
||||
placeholder="Type your password"
|
||||
type="password"
|
||||
name="password1"
|
||||
/>
|
||||
</label>
|
||||
<label class="block mt-4 text-sm">
|
||||
<span class="text-gray-700 dark:text-gray-400">
|
||||
Confirm password
|
||||
</span>
|
||||
<input
|
||||
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
|
||||
placeholder="Type your password again"
|
||||
type="password"
|
||||
name="password2"
|
||||
/>
|
||||
</label>
|
||||
|
||||
<div class="flex mt-6 text-sm">
|
||||
<label class="flex items-center dark:text-gray-400">
|
||||
<input
|
||||
type="checkbox"
|
||||
class="text-purple-600 form-checkbox focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:focus:shadow-outline-gray"
|
||||
/>
|
||||
<span class="ml-2">
|
||||
I agree to the
|
||||
<span class="underline">privacy policy</span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<!-- You should use a button here, as the anchor is only used for the example -->
|
||||
<button
|
||||
class="block w-full px-4 py-2 mt-4 text-sm font-medium leading-5 text-center text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple"
|
||||
type="submit"
|
||||
>
|
||||
Create account
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div style="margin-top: 9px"><?= $this->session->flashdata('message'); ?></div>
|
||||
|
||||
<hr class="my-8" />
|
||||
|
||||
<button
|
||||
class="flex items-center justify-center w-full px-4 py-2 text-sm font-medium leading-5 text-white text-gray-700 transition-colors duration-150 border border-gray-300 rounded-lg dark:text-gray-400 active:bg-transparent hover:border-gray-500 focus:border-gray-500 active:text-gray-500 focus:outline-none focus:shadow-outline-gray"
|
||||
>
|
||||
<i class="fab fa-google mr-2"></i>
|
||||
With Google
|
||||
</button>
|
||||
|
||||
<p class="mt-4">
|
||||
<a
|
||||
class="text-sm font-medium text-purple-600 dark:text-purple-400 hover:underline"
|
||||
href="<?=base_url('auth');?>"
|
||||
>
|
||||
Already have an account? Login
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user