Files
WebImageViewer/scratch/home_view.html
T

273 lines
9.6 KiB
HTML

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WebImageViewer - プレミアム画像ビューアー</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@600;700;800&display=swap" rel="stylesheet">
<style>
:root {
--bg-base: #07090e;
--bg-surface: #0f1420;
--bg-card: rgba(18, 24, 38, 0.7);
--border-subtle: rgba(255, 255, 255, 0.08);
--accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
--accent-primary: #6366f1;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--radius-lg: 18px;
--shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Inter', 'Noto Sans JP', sans-serif;
background-color: var(--bg-base);
color: var(--text-main);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 24px;
background-image:
radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.15), transparent 40%),
radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.12), transparent 40%);
}
.container {
max-width: 680px;
width: 100%;
}
.hero {
text-align: center;
margin-bottom: 36px;
}
.hero-title {
font-family: 'Outfit', sans-serif;
font-size: 2.8rem;
font-weight: 800;
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: -0.02em;
margin-bottom: 8px;
}
.hero-subtitle {
color: var(--text-muted);
font-size: 1.05rem;
}
.search-card {
background: var(--bg-card);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: 32px;
box-shadow: var(--shadow-glow);
}
.input-group {
display: flex;
gap: 12px;
margin-top: 16px;
}
.url-input {
flex: 1;
background: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 12px;
padding: 14px 18px;
color: #fff;
font-size: 1rem;
outline: none;
transition: all 0.2s ease;
}
.url-input:focus {
border-color: var(--accent-primary);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}
.submit-btn {
background: var(--accent-gradient);
border: none;
border-radius: 12px;
padding: 14px 28px;
color: #fff;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
}
.submit-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.quick-links {
margin-top: 28px;
padding-top: 20px;
border-top: 1px solid var(--border-subtle);
}
.quick-links-title {
font-size: 0.85rem;
color: var(--text-muted);
margin-bottom: 12px;
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 600;
}
.sample-item {
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border-subtle);
padding: 12px 16px;
border-radius: 10px;
text-decoration: none;
color: var(--text-main);
transition: all 0.2s ease;
}
.sample-item:hover {
background: rgba(99, 102, 241, 0.15);
border-color: rgba(99, 102, 241, 0.4);
transform: translateX(4px);
}
.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
margin-top: 36px;
}
.feature-box {
background: rgba(255, 255, 255, 0.02);
border: 1px solid var(--border-subtle);
border-radius: 14px;
padding: 20px 16px;
text-align: center;
}
.feature-icon {
font-size: 1.8rem;
margin-bottom: 8px;
}
.feature-title {
font-size: 0.95rem;
font-weight: 700;
margin-bottom: 4px;
}
.feature-desc {
font-size: 0.78rem;
color: var(--text-muted);
}
@media (max-width: 600px) {
.hero-title { font-size: 2.2rem; }
.input-group { flex-direction: column; }
.features-grid { grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<div class="container">
<div class="hero">
<h1 class="hero-title">WebImageViewer</h1>
<p class="hero-subtitle">高速スクレイピングと洗練されたモダンUIで快適な画像閲覧体験を</p>
</div>
<div class="search-card">
<form id="viewForm">
<label for="urlInput" style="font-size: 0.9rem; font-weight: 600; color: var(--text-main);">作品URL または ID を入力</label>
<div class="input-group">
<input type="text" id="urlInput" class="url-input" placeholder="例: 013597 または mo3469109 または https://aurahentai.com/gallery/013597" required autocomplete="off" />
<button type="submit" class="submit-btn">閲覧する</button>
</div>
</form>
<div class="quick-links">
<div class="quick-links-title">クイックアクセス例</div>
<div style="display: flex; flex-direction: column; gap: 10px;">
<a href="/gallery/013597/" class="sample-item">
<div>
<div style="font-weight: 600; font-size: 0.95rem;">AuraHentai ギャラリー (013597)</div>
<div style="font-size: 0.78rem; color: var(--text-muted);">作者: ajisio / にじさんじ (17ページ)</div>
</div>
<div style="color: #818cf8; font-weight: 700;">開く →</div>
</a>
<a href="/fanzine/mo3469109/" class="sample-item">
<div>
<div style="font-weight: 600; font-size: 0.95rem;">新妻契約 (mo3469109)</div>
<div style="font-size: 0.78rem; color: var(--text-muted);">サークル: Whisker Pad / 作者: もふ緒 (52ページ)</div>
</div>
<div style="color: #818cf8; font-weight: 700;">開く →</div>
</a>
</div>
</div>
</div>
<div class="features-grid">
<div class="feature-box">
<div class="feature-icon">⚡</div>
<div class="feature-title">超高速キャッシュ</div>
<div class="feature-desc">メモリキャッシュによるストレスフリーな即時表示</div>
</div>
<div class="feature-box">
<div class="feature-icon">📱</div>
<div class="feature-title">2つの閲覧モード</div>
<div class="feature-desc">快適な縦スクロール&コミックスライド表示に対応</div>
</div>
<div class="feature-box">
<div class="feature-icon">⌨️</div>
<div class="feature-title">キーボード操作</div>
<div class="feature-desc">矢印キー、全画面、サムネイル一覧ジャンプ</div>
</div>
</div>
</div>
<script>
document.getElementById('viewForm').addEventListener('submit', function(e) {
e.preventDefault();
let input = document.getElementById('urlInput').value.trim();
if (!input) return;
if (input.startsWith('http://') || input.startsWith('https://')) {
try {
const url = new URL(input);
const path = url.pathname;
window.location.href = path.endsWith('/') ? path : path + '/';
return;
} catch(err) {
// Fallback
}
}
if (input.includes('/')) {
window.location.href = '/' + input.replace(/^\/+|\/+$/g, '') + '/';
} else if (/^\d+$/.test(input)) {
// 数字のみの場合は AuraHentai などの /gallery/{id}/ へ
window.location.href = '/gallery/' + input + '/';
} else {
window.location.href = '/fanzine/' + input + '/';
}
});
</script>
</body>
</html>