- Updated README.md to use the correct htmlpreview URL for Gitea - Updated docs/gallery.html 'Back to README' link to point to the main repo URL Made-with: Cursor
215 lines
7.2 KiB
HTML
215 lines
7.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Plymouth Independent Weekly - Gallery</title>
|
|
<style>
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #1a1a1a;
|
|
color: #fff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
}
|
|
.header {
|
|
text-align: center;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.header h1 { margin: 0 0 10px 0; font-weight: 500; }
|
|
.header p { margin: 0; color: #aaa; }
|
|
|
|
.gallery-container {
|
|
position: relative;
|
|
width: 90%;
|
|
max-width: 1200px;
|
|
background: #2a2a2a;
|
|
border-radius: 8px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.slides {
|
|
display: flex;
|
|
transition: transform 0.4s ease-in-out;
|
|
width: 100%;
|
|
}
|
|
|
|
.slide {
|
|
min-width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.slide img {
|
|
max-width: 100%;
|
|
max-height: 70vh;
|
|
border-radius: 4px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
|
|
object-fit: contain;
|
|
}
|
|
|
|
.slide-caption {
|
|
margin-top: 15px;
|
|
font-size: 1.2em;
|
|
color: #ddd;
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-btn {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: rgba(0,0,0,0.5);
|
|
color: white;
|
|
border: none;
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.2s;
|
|
z-index: 10;
|
|
}
|
|
.nav-btn:hover { background: rgba(0,0,0,0.8); }
|
|
.prev-btn { left: 20px; }
|
|
.next-btn { right: 20px; }
|
|
|
|
.thumbnails {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
padding: 10px;
|
|
overflow-x: auto;
|
|
max-width: 90%;
|
|
}
|
|
.thumb {
|
|
width: 80px;
|
|
height: 60px;
|
|
object-fit: cover;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
opacity: 0.5;
|
|
transition: opacity 0.2s, transform 0.2s;
|
|
border: 2px solid transparent;
|
|
}
|
|
.thumb:hover { opacity: 0.8; }
|
|
.thumb.active {
|
|
opacity: 1;
|
|
border-color: #007bff;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.back-link {
|
|
margin-top: 30px;
|
|
color: #007bff;
|
|
text-decoration: none;
|
|
}
|
|
.back-link:hover { text-decoration: underline; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="header">
|
|
<h1>Plymouth Independent Weekly</h1>
|
|
<p>Application Gallery</p>
|
|
</div>
|
|
|
|
<div class="gallery-container">
|
|
<button class="nav-btn prev-btn" onclick="moveSlide(-1)">❮</button>
|
|
<div class="slides" id="slides">
|
|
<div class="slide">
|
|
<img src="screenshots/01-dashboard.png" alt="Dashboard">
|
|
<div class="slide-caption">1. Dashboard Overview</div>
|
|
</div>
|
|
<div class="slide">
|
|
<img src="screenshots/02-articles.png" alt="Articles">
|
|
<div class="slide-caption">2. Articles List & Filtering</div>
|
|
</div>
|
|
<div class="slide">
|
|
<img src="screenshots/03-publish.png" alt="Publish Single Week">
|
|
<div class="slide-caption">3. Publish - Single Week Selection</div>
|
|
</div>
|
|
<div class="slide">
|
|
<img src="screenshots/04-publish_multi_week.png" alt="Publish Multi-Week">
|
|
<div class="slide-caption">4. Publish - Multi-Week Range</div>
|
|
</div>
|
|
<div class="slide">
|
|
<img src="screenshots/05-publish_single_article.png" alt="Publish Single Article">
|
|
<div class="slide-caption">5. Publish - Single Article</div>
|
|
</div>
|
|
<div class="slide">
|
|
<img src="screenshots/06-issues.png" alt="Issues Archive">
|
|
<div class="slide-caption">6. Issues Archive</div>
|
|
</div>
|
|
<div class="slide">
|
|
<img src="screenshots/07-reader.png" alt="Web Reader">
|
|
<div class="slide-caption">7. Built-in Web Reader</div>
|
|
</div>
|
|
<div class="slide">
|
|
<img src="screenshots/08-settings.png" alt="Settings">
|
|
<div class="slide-caption">8. Application Settings</div>
|
|
</div>
|
|
</div>
|
|
<button class="nav-btn next-btn" onclick="moveSlide(1)">❯</button>
|
|
</div>
|
|
|
|
<div class="thumbnails" id="thumbnails">
|
|
<img src="screenshots/01-dashboard.png" class="thumb active" onclick="setSlide(0)">
|
|
<img src="screenshots/02-articles.png" class="thumb" onclick="setSlide(1)">
|
|
<img src="screenshots/03-publish.png" class="thumb" onclick="setSlide(2)">
|
|
<img src="screenshots/04-publish_multi_week.png" class="thumb" onclick="setSlide(3)">
|
|
<img src="screenshots/05-publish_single_article.png" class="thumb" onclick="setSlide(4)">
|
|
<img src="screenshots/06-issues.png" class="thumb" onclick="setSlide(5)">
|
|
<img src="screenshots/07-reader.png" class="thumb" onclick="setSlide(6)">
|
|
<img src="screenshots/08-settings.png" class="thumb" onclick="setSlide(7)">
|
|
</div>
|
|
|
|
<a href="https://code.cottongin.xyz/cottongin/pi-weekly-newspaper" class="back-link">← Back to README</a>
|
|
|
|
<script>
|
|
let currentSlide = 0;
|
|
const slides = document.getElementById('slides');
|
|
const totalSlides = document.querySelectorAll('.slide').length;
|
|
const thumbs = document.querySelectorAll('.thumb');
|
|
|
|
function updateGallery() {
|
|
slides.style.transform = `translateX(-${currentSlide * 100}%)`;
|
|
thumbs.forEach((t, i) => {
|
|
t.classList.toggle('active', i === currentSlide);
|
|
});
|
|
}
|
|
|
|
function moveSlide(direction) {
|
|
currentSlide = (currentSlide + direction + totalSlides) % totalSlides;
|
|
updateGallery();
|
|
}
|
|
|
|
function setSlide(index) {
|
|
currentSlide = index;
|
|
updateGallery();
|
|
}
|
|
|
|
// Keyboard navigation
|
|
document.addEventListener('keydown', (e) => {
|
|
if (e.key === 'ArrowLeft') moveSlide(-1);
|
|
if (e.key === 'ArrowRight') moveSlide(1);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |