chore: initialize orderPRO with docs, i18n and scss asset pipeline
This commit is contained in:
46
resources/views/auth/login.php
Normal file
46
resources/views/auth/login.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<section class="login-card" aria-labelledby="login-title">
|
||||
<header class="login-header">
|
||||
<p class="login-badge"><?= $e($t('brand.name_full')) ?></p>
|
||||
<h1 id="login-title"><?= $e($t('auth.login.heading')) ?></h1>
|
||||
<p class="login-subtitle"><?= $e($t('auth.login.subtitle')) ?></p>
|
||||
</header>
|
||||
|
||||
<?php if (!empty($errorMessage)): ?>
|
||||
<div class="alert-error" role="alert">
|
||||
<?= $e($errorMessage) ?>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="alert-error alert-error-placeholder" aria-hidden="true">
|
||||
<?= $e($t('auth.login.error_placeholder')) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form class="login-form" action="/login" method="post" novalidate>
|
||||
<input type="hidden" name="_token" value="<?= $e($csrfToken ?? '') ?>">
|
||||
|
||||
<label class="form-field">
|
||||
<span class="field-label"><?= $e($t('auth.login.email_label')) ?></span>
|
||||
<input
|
||||
type="email"
|
||||
name="email"
|
||||
autocomplete="email"
|
||||
required
|
||||
placeholder="<?= $e($t('auth.login.email_placeholder')) ?>"
|
||||
value="<?= $e($oldEmail ?? '') ?>"
|
||||
>
|
||||
</label>
|
||||
|
||||
<label class="form-field">
|
||||
<span class="field-label"><?= $e($t('auth.login.password_label')) ?></span>
|
||||
<input
|
||||
type="password"
|
||||
name="password"
|
||||
autocomplete="current-password"
|
||||
required
|
||||
placeholder="<?= $e($t('auth.login.password_placeholder')) ?>"
|
||||
>
|
||||
</label>
|
||||
|
||||
<button type="submit" class="submit-btn"><?= $e($t('actions.login')) ?></button>
|
||||
</form>
|
||||
</section>
|
||||
7
resources/views/dashboard/index.php
Normal file
7
resources/views/dashboard/index.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<section class="card">
|
||||
<h1><?= $e($t('dashboard.title')) ?></h1>
|
||||
<p class="muted"><?= $e($t('dashboard.description')) ?></p>
|
||||
<?php if (!empty($user['email'])): ?>
|
||||
<p><?= $e($t('dashboard.active_user_label')) ?> <span class="accent"><?= $e($user['email']) ?></span></p>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
25
resources/views/layouts/app.php
Normal file
25
resources/views/layouts/app.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<!doctype html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?= $e($t('meta.title_pattern', ['title' => (string) ($title ?? $t('meta.default_panel_title'))])) ?></title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/assets/css/app.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="topbar">
|
||||
<div class="brand"><?= $e($t('brand.name_prefix')) ?><strong><?= $e($t('brand.name_suffix')) ?></strong></div>
|
||||
<form action="/logout" method="post">
|
||||
<input type="hidden" name="_token" value="<?= $e($csrfToken ?? '') ?>">
|
||||
<button type="submit" class="logout-btn"><?= $e($t('actions.logout')) ?></button>
|
||||
</form>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
<?= $content ?>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
20
resources/views/layouts/auth.php
Normal file
20
resources/views/layouts/auth.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<!doctype html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?= $e($t('meta.title_pattern', ['title' => (string) ($title ?? $t('meta.default_login_title'))])) ?></title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/assets/css/login.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="bg-orb bg-orb-left" aria-hidden="true"></div>
|
||||
<div class="bg-orb bg-orb-right" aria-hidden="true"></div>
|
||||
|
||||
<main class="login-page">
|
||||
<?= $content ?>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user