Initial commit: Cloud Control Panel
This commit is contained in:
26
resources/views/headers/dashboard.php
Normal file
26
resources/views/headers/dashboard.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/** @var Din9xtrCloud\ViewModels\Dashboard\DashboardViewModel $page */
|
||||
?>
|
||||
<header class="dashboard-header">
|
||||
<div class="welcome-section">
|
||||
<h1 class="welcome-title">Welcome to your cloud storage
|
||||
<?= htmlspecialchars($page->username) ?> 👋</h1>
|
||||
<p class="welcome-subtitle">Manage your cloud storage efficiently</p>
|
||||
</div>
|
||||
<div class="header-actions">
|
||||
<form action="/" method="GET" style="display: inline;">
|
||||
|
||||
<button class="btn btn-primary" id="refresh-dashboard">
|
||||
<span class="btn-icon">💨</span>Refresh
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<form action="/logout" method="POST" style="display: inline;">
|
||||
<button type="submit" class="btn btn-secondary" id="logout-btn">
|
||||
<span class="btn-icon">🚪</span> Logout
|
||||
</button>
|
||||
<input type="hidden" name="_csrf"
|
||||
value="<?= htmlspecialchars($page->csrf) ?>">
|
||||
</form>
|
||||
</div>
|
||||
</header>
|
||||
32
resources/views/headers/folder.php
Normal file
32
resources/views/headers/folder.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php /** @var Din9xtrCloud\ViewModels\Folder\FolderViewModel $page */
|
||||
?>
|
||||
<header class="folder-header">
|
||||
<div class="folder-info">
|
||||
<h1 class="folder-title">
|
||||
<span class="folder-icon">📁</span>
|
||||
<?= htmlspecialchars($page->title) ?>
|
||||
</h1>
|
||||
<div class="folder-stats">
|
||||
<span class="stat-item"><?= count($page->files) ?> files</span>
|
||||
<span class="stat-separator">•</span>
|
||||
<span class="stat-item"><?= $page->totalSize ?></span>
|
||||
<span class="stat-separator">•</span>
|
||||
<span class="stat-item">Last updated: <?= $page->lastModified ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="folder-actions">
|
||||
<?php if ($page->title !== 'documents' && $page->title !== 'media'): ?>
|
||||
<form method="POST" action="/storage/folders/<?= urlencode($page->title) ?>/delete" style="display:inline;">
|
||||
<input type="hidden" name="_csrf" value="<?= htmlspecialchars($page->csrf) ?>">
|
||||
<button type="submit" class="btn btn-danger"
|
||||
onclick="return confirm('Delete folder <?= htmlspecialchars($page->title) ?>?');">
|
||||
<span class="btn-icon">🗑️</span>Delete Folder
|
||||
</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
|
||||
<a href="/" class="btn btn-secondary">
|
||||
<span class="btn-icon">👈</span>Back to Dashboard
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
Reference in New Issue
Block a user