Here's a simplified list site with Rule34-style tagging and search features. This example uses HTML/JS with local storage for demo purposes:
<!DOCTYPE html>
<html>
<head>
<title>Image List Site</title>
<style>
body {
font-family: 'Segoe UI', sans-serif;
margin: 20px;
background: #f0f2f5;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
padding: 20px;
}
.card {
background: white;
border-radius: 10px;
padding: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.tag {
display: inline-block;
background: #e0e0e0;
padding: 3px 8px;
margin: 3px;
border-radius: 15px;
cursor: pointer;
}
.search-box {
padding: 10px;
margin: 20px 0;
width: 100%;
border: 2px solid #ddd;
border-radius: 25px;
}
img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="container">
<input type="text" id="search" class="search-box" placeholder="Search tags...">
<form id="uploadForm">
<input type="url" id="imgUrl" placeholder="Image URL" required>
<input type="text" id="title" placeholder="Title">
<input type="text" id="tags" placeholder="Tags (comma separated)" required>
<button type="submit">Add Image</button>
</form>
<div class="gallery" id="gallery"></div>
</div>
<script>
let items = JSON.parse(localStorage.getItem('items') || '[]');
function save() {
localStorage.setItem('items', JSON.stringify(items));
}
function addItem(url, title, tags) {
items.push({
id: Date.now(),
url,
title,
tags: tags.split(',').map(t => t.trim().toLowerCase())
});
save();
}
function displayItems(filtered = items) {
gallery.innerHTML = filtered.map(item => `
<div class="card">
<img src="${item.url}" alt="${item.title}">
<h3>${item.title || 'Untitled'}</h3>
<div>${item.tags.map(t => `<span class="tag" onclick="searchTag('${t}')">${t}</span>`).join('')}</div>
<button onclick="removeItem(${item.id})">×</button>
</div>
`).join('');
}
function removeItem(id) {
items = items.filter(item => item.id !== id);
save();
displayItems();
}
function searchTag(tag) {
document.getElementById('search').value = tag;
filterItems();
}
function filterItems() {
const search = document.getElementById('search').value.toLowerCase();
const terms = search.split(',').map(t => t.trim());
const filtered = items.filter(item =>
terms.every(term =>
item.tags.some(t => t.includes(term))
)
);
displayItems(filtered);
}
document.getElementById('uploadForm').addEventListener('submit', e => {
e.preventDefault();
const url = document.getElementById('imgUrl').value;
const title = document.getElementById('title').value;
const tags = document.getElementById('tags').value;
addItem(url, title, tags);
displayItems();
e.target.reset();
});
document.getElementById('search').addEventListener('input', filterItems);
// Initial load
displayItems();
</script>
</body>
</html>
Key features similar to Rule34:
- Tagging system with comma-separated input
- Search by tags (supports partial matches)
- Grid-based gallery layout
- User submissions (simulated with URL input)
- Tag filtering and sorting
- Local storage persistence
- Responsive design
- Clickable tags for quick filtering
To use:
- Save as HTML file
- Open in browser
- Add images using valid URLs
- Add tags (e.g. "landscape, nature, sunset")
- Use search to filter by tags
Note: This is a front-end demo. For a production site, you'd need:
- User authentication
- Server-side storage
- Moderation tools
- Image hosting
- Security measures
- Reporting system
- NSFW content handling
Would you like me to elaborate on any particular aspect of the implementation?