Updated Admin & Login Page design, also finally disabled mouse & touch controls for bg effect for Mrxikaiba
This commit is contained in:
1 parent
0907f0b66b
commit
f9e0eb32db
11 files changed
+88
-35
No files matched your search
@@ -5,17 +5,25 @@
|
||||
<div class="admin-actions">
|
||||
<button (click)="createArticle()">Create Article</button>
|
||||
<button (click)="viewArticles()">View Articles</button>
|
||||
<button (click)="logout()">Logout</button>
|
||||
<button (click)="editArticle()">Edit Article</button>
|
||||
<button (click)="deleteArticle()">Delete Article</button>
|
||||
</div>
|
||||
|
||||
<div *ngIf="articles && articles.length > 0">
|
||||
<h3>Articles</h3>
|
||||
<div class="articles-list">
|
||||
<div *ngFor="let article of articles" class="article">
|
||||
<h4>{{ article.title }}</h4>
|
||||
<p>{{ article.content }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="noArticles">
|
||||
<p>No articles available.</p> <!-- Show message if no articles -->
|
||||
</div>
|
||||
|
||||
<div *ngIf="!noArticles">
|
||||
<ul>
|
||||
<li *ngFor="let article of articles">
|
||||
<!-- Display article details here -->
|
||||
{{ article.title }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="logout">
|
||||
<button (click)="logout()">Logout</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user