91 lines
3.0 KiB
HTML
91 lines
3.0 KiB
HTML
<!doctype html>
|
||
<html lang="tr">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
<title>Admin Panel | Blog Yönetimi</title>
|
||
<meta name="description" content="Blog yazıları için admin paneli." />
|
||
<link rel="stylesheet" href="admin.css" />
|
||
</head>
|
||
<body>
|
||
<main class="panel">
|
||
<section class="login-card" id="login-card">
|
||
<div class="card-header">
|
||
<h1>Admin Girişi</h1>
|
||
<p>Blog yazılarını eklemek için giriş yapın.</p>
|
||
</div>
|
||
<form class="card-form" id="login-form">
|
||
<label>
|
||
E-posta
|
||
<input type="email" name="email" placeholder="ornek@mail.com" required />
|
||
</label>
|
||
<label>
|
||
Şifre
|
||
<input type="password" name="password" placeholder="••••••••" required />
|
||
</label>
|
||
<button type="submit">Giriş Yap</button>
|
||
<p class="hint">Firebase Authentication e-posta/şifre.</p>
|
||
</form>
|
||
</section>
|
||
|
||
<section class="panel-card hidden" id="admin-panel">
|
||
<div class="card-header">
|
||
<div>
|
||
<h1>Blog Yönetimi</h1>
|
||
<p>Yeni yazı ekleyin ve mevcut yazıları yönetin.</p>
|
||
</div>
|
||
<button class="ghost" id="logout-btn" type="button">Çıkış</button>
|
||
</div>
|
||
|
||
<form class="card-form" id="blog-form">
|
||
<div class="grid two">
|
||
<label>
|
||
Başlık
|
||
<input type="text" name="title" placeholder="Başlık girin" required />
|
||
</label>
|
||
<label>
|
||
Etiketler
|
||
<div class="tag-input" id="tag-input">
|
||
<div class="tags" id="tags-list" aria-live="polite"></div>
|
||
<input
|
||
type="text"
|
||
name="tags"
|
||
id="tags-input"
|
||
placeholder="Etiket yazıp Enter'a basın"
|
||
autocomplete="off"
|
||
/>
|
||
</div>
|
||
</label>
|
||
</div>
|
||
<label>
|
||
Kısa Açıklama
|
||
<input type="text" name="summary" placeholder="Özet metni" required />
|
||
</label>
|
||
<label>
|
||
İçerik
|
||
<textarea name="content" rows="6" placeholder="Yazı içeriği" required></textarea>
|
||
</label>
|
||
<div class="grid two">
|
||
<label>
|
||
Tarih
|
||
<input type="date" name="date" required />
|
||
</label>
|
||
<label>
|
||
Kapak Görseli (URL)
|
||
<input type="url" name="image" placeholder="https://..." />
|
||
</label>
|
||
</div>
|
||
<button type="submit">Yazıyı Kaydet</button>
|
||
</form>
|
||
|
||
<div class="posts">
|
||
<h2>Mevcut Yazılar</h2>
|
||
<div id="posts-list" class="posts-list"></div>
|
||
</div>
|
||
</section>
|
||
</main>
|
||
|
||
<script type="module" src="admin.js"></script>
|
||
</body>
|
||
</html>
|