File size: 6,149 Bytes
34cd6f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Reading: Solo Leveling Ch.179 - MangaVerse Nexus</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#7e22ce',
                        secondary: '#9333ea',
                        dark: '#0f172a',
                        darker: '#020617'
                    }
                }
            }
        }
    </script>
    <style>
        .reader-container {
            background-color: #020617;
        }
        .reader-toolbar {
            background: rgba(15, 23, 42, 0.9);
            backdrop-filter: blur(10px);
        }
        .manga-page {
            max-width: 800px;
            margin: 0 auto;
        }
    </style>
</head>
<body class="bg-darker text-gray-200">
    <!-- Reader Header -->
    <header class="reader-toolbar fixed top-0 left-0 right-0 z-50 border-b border-purple-900/50 py-2 px-4">
        <div class="container mx-auto flex items-center justify-between">
            <a href="manga-detail.html" class="flex items-center group">
                <i data-feather="chevron-left" class="mr-1 group-hover:text-purple-300 transition"></i>
                <span class="text-sm group-hover:text-purple-300 transition">Back to Solo Leveling</span>
            </a>
            
            <div class="text-center">
                <h1 class="text-lg font-medium">Solo Leveling</h1>
                <p class="text-sm text-gray-400">Chapter 179: Final Chapter</p>
            </div>
            
            <div class="flex items-center space-x-4">
                <button class="p-1.5 rounded-full bg-gray-800/50 hover:bg-gray-700/50 transition">
                    <i data-feather="settings" class="w-4 h-4"></i>
                </button>
                <button class="p-1.5 rounded-full bg-gray-800/50 hover:bg-gray-700/50 transition">
                    <i data-feather="maximize" class="w-4 h-4"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- Reader Controls -->
    <div class="reader-toolbar fixed bottom-0 left-0 right-0 z-50 border-t border-purple-900/50 py-2 px-4">
        <div class="container mx-auto flex items-center justify-between">
            <button class="px-3 py-1.5 rounded-lg bg-gray-800/50 hover:bg-gray-700/50 transition flex items-center text-sm">
                <i data-feather="chevron-left" class="mr-1 w-4 h-4"></i> Prev Chapter
            </button>
            
            <div class="flex items-center space-x-4">
                <div class="flex items-center text-sm">
                    <span>Page</span>
                    <select class="ml-2 bg-gray-800/50 border border-gray-700 rounded py-1 px-2 focus:outline-none focus:ring-1 focus:ring-purple-700">
                        <option>1</option>
                        <option>2</option>
                        <option>3</option>
                    </select>
                    <span class="ml-2">of 24</span>
                </div>
                
                <div class="flex space-x-1">
                    <button class="p-1.5 rounded-full bg-gray-800/50 hover:bg-gray-700/50 transition">
                        <i data-feather="minus" class="w-4 h-4"></i>
                    </button>
                    <button class="p-1.5 rounded-full bg-gray-800/50 hover:bg-gray-700/50 transition">
                        <i data-feather="plus" class="w-4 h-4"></i>
                    </button>
                </div>
            </div>
            
            <button class="px-3 py-1.5 rounded-lg bg-gray-800/50 hover:bg-gray-700/50 transition flex items-center text-sm">
                Next Chapter <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i>
            </button>
        </div>
    </div>

    <!-- Reader Content -->
    <main class="reader-container pt-16 pb-20">
        <div class="manga-page py-4">
            <img src="http://static.photos/black/640x360/10" alt="Page 1" class="w-full mx-auto">
        </div>
        <div class="manga-page py-4">
            <img src="http://static.photos/black/640x360/11" alt="Page 2" class="w-full mx-auto">
        </div>
        <div class="manga-page py-4">
            <img src="http://static.photos/black/640x360/12" alt="Page 3" class="w-full mx-auto">
        </div>
        <!-- More pages would be here -->
    </main>

    <script>
        // Initialize Feather Icons
        feather.replace();

        // Keyboard navigation
        document.addEventListener('keydown', (e) => {
            if (e.key === 'ArrowLeft') {
                // Previous page/chapter logic
                console.log('Previous page/chapter');
            } else if (e.key === 'ArrowRight') {
                // Next page/chapter logic
                console.log('Next page/chapter');
            }
        });

        // Fullscreen toggle
        const fullscreenBtn = document.querySelector('[data-feather="maximize"]').closest('button');
        fullscreenBtn.addEventListener('click', () => {
            if (!document.fullscreenElement) {
                document.documentElement.requestFullscreen().catch(err => {
                    console.error(`Error attempting to enable fullscreen: ${err.message}`);
                });
                feather.replace();
                fullscreenBtn.innerHTML = '<i data-feather="minimize" class="w-4 h-4"></i>';
            } else {
                if (document.exitFullscreen) {
                    document.exitFullscreen();
                    feather.replace();
                    fullscreenBtn.innerHTML = '<i data-feather="maximize" class="w-4 h-4"></i>';
                }
            }
        });
    </script>
</body>
</html>