baseline: pre-deepseek-harness state
This commit is contained in:
@@ -0,0 +1,136 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Imgur Clone - Share Your World</title>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<header class="header">
|
||||
<div class="header-inner">
|
||||
<div class="logo" onclick="navigateHome()">
|
||||
<span class="logo-icon">📷</span>
|
||||
<span class="logo-text">Imgur Clone</span>
|
||||
</div>
|
||||
<div class="search-bar">
|
||||
<input type="text" id="searchInput" placeholder="Search images..." oninput="filterPosts()">
|
||||
<button onclick="filterPosts()">🔍</button>
|
||||
</div>
|
||||
<button class="btn-new-post" onclick="openUploadModal()">+ New Post</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Filter Bar -->
|
||||
<div class="filter-bar">
|
||||
<div class="filter-tabs">
|
||||
<button class="filter-tab active" data-sort="new" onclick="setSort('new')">🆕 New</button>
|
||||
<button class="filter-tab" data-sort="viral" onclick="setSort('viral')">🔥 Most Viral</button>
|
||||
<button class="filter-tab" data-sort="user" onclick="setSort('user')">👤 User Submitted</button>
|
||||
<button class="filter-tab" data-sort="top" onclick="setSort('top')">📈 Top Today</button>
|
||||
</div>
|
||||
<div class="post-count" id="postCount"></div>
|
||||
</div>
|
||||
|
||||
<!-- Main Gallery -->
|
||||
<main class="gallery-container">
|
||||
<div class="gallery-grid" id="gallery">
|
||||
<!-- Posts rendered here -->
|
||||
</div>
|
||||
<div class="loading" id="loading">
|
||||
<div class="spinner"></div>
|
||||
<p>Loading images...</p>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- Upload Modal -->
|
||||
<div class="modal-overlay" id="uploadModal">
|
||||
<div class="modal">
|
||||
<div class="modal-header">
|
||||
<h2>Create New Post</h2>
|
||||
<button class="modal-close" onclick="closeUploadModal()">✕</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="upload-zone" id="uploadZone">
|
||||
<div class="upload-prompt">
|
||||
<div class="upload-icon">📁</div>
|
||||
<p>Drag & drop an image here</p>
|
||||
<p class="upload-hint">or click to browse</p>
|
||||
<p class="upload-formats">JPEG, PNG, GIF, WebP (max 20MB)</p>
|
||||
</div>
|
||||
<input type="file" id="fileInput" accept="image/jpeg,image/png,image/gif,image/webp" hidden>
|
||||
<div class="upload-preview" id="uploadPreview" style="display:none;">
|
||||
<img id="previewImage" src="" alt="Preview">
|
||||
<button class="btn-remove" onclick="removePreview()">✕ Remove</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="postTitle">Title</label>
|
||||
<input type="text" id="postTitle" placeholder="Give your post a title..." maxlength="100">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="postTags">Tags (comma separated)</label>
|
||||
<input type="text" id="postTags" placeholder="e.g., nature, sunset, photography">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="postAuthor">Your Name</label>
|
||||
<input type="text" id="postAuthor" placeholder="Anonymous" maxlength="30">
|
||||
</div>
|
||||
<div id="uploadError" class="error-message" style="display:none;"></div>
|
||||
<button class="btn-submit" id="submitBtn" onclick="submitPost()">Upload Post</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Post Detail Modal -->
|
||||
<div class="modal-overlay" id="postModal">
|
||||
<div class="modal modal-large">
|
||||
<div class="modal-header">
|
||||
<h2 id="postModalTitle"></h2>
|
||||
<button class="modal-close" onclick="closePostModal()">✕</button>
|
||||
</div>
|
||||
<div class="modal-body post-detail">
|
||||
<div class="post-detail-grid">
|
||||
<div class="post-image-container">
|
||||
<img id="postModalImage" src="" alt="" onclick="openFullscreen()">
|
||||
</div>
|
||||
<div class="post-sidebar">
|
||||
<div class="vote-box">
|
||||
<button class="vote-btn upvote" onclick="votePost('up')">▲</button>
|
||||
<span class="vote-count" id="postModalVotes">0</span>
|
||||
<button class="vote-btn downvote" onclick="votePost('down')">▼</button>
|
||||
</div>
|
||||
<div class="post-meta">
|
||||
<span class="meta-item">👁️ <span id="postModalViews">0</span> views</span>
|
||||
<span class="meta-item">💬 <span id="postModalComments">0</span> comments</span>
|
||||
</div>
|
||||
<div class="post-tags" id="postModalTags"></div>
|
||||
<div class="post-author" id="postModalAuthor"></div>
|
||||
<div class="post-date" id="postModalDate"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="comments-section">
|
||||
<h3>Comments</h3>
|
||||
<div class="comment-form">
|
||||
<input type="text" id="commentInput" placeholder="Add a comment..." maxlength="500">
|
||||
<button class="btn-comment" onclick="postComment()">Post</button>
|
||||
</div>
|
||||
<div class="comments-list" id="commentsList"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Fullscreen Image -->
|
||||
<div class="fullscreen-overlay" id="fullscreenOverlay" onclick="closeFullscreen()">
|
||||
<img id="fullscreenImage" src="" alt="">
|
||||
</div>
|
||||
|
||||
<!-- Toast Notifications -->
|
||||
<div class="toast-container" id="toastContainer"></div>
|
||||
|
||||
<script src="/js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user