Update index.html
Browse files- index.html +55 -118
index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
<title>Main Akeli Thi - Book</title>
|
| 7 |
|
| 8 |
-
<!-- Bootstrap
|
| 9 |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" />
|
| 10 |
|
| 11 |
<!-- Google Fonts -->
|
|
@@ -30,7 +30,6 @@
|
|
| 30 |
padding: 3rem 2rem;
|
| 31 |
}
|
| 32 |
|
| 33 |
-
/* Title Page */
|
| 34 |
.title-name {
|
| 35 |
font-size: 3rem;
|
| 36 |
font-weight: bold;
|
|
@@ -56,52 +55,11 @@
|
|
| 56 |
border-radius: 5px;
|
| 57 |
}
|
| 58 |
|
| 59 |
-
/* Dedication Page */
|
| 60 |
-
.dedication-section {
|
| 61 |
-
display: flex;
|
| 62 |
-
align-items: center;
|
| 63 |
-
justify-content: center;
|
| 64 |
-
padding: 2rem;
|
| 65 |
-
text-align: center;
|
| 66 |
-
}
|
| 67 |
-
|
| 68 |
-
.dedication-box {
|
| 69 |
-
max-width: 750px;
|
| 70 |
-
background-color: #ffffff;
|
| 71 |
-
padding: 3rem;
|
| 72 |
-
border-radius: 1.5rem;
|
| 73 |
-
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
|
| 74 |
-
}
|
| 75 |
-
|
| 76 |
-
.dedication-title {
|
| 77 |
-
font-size: 2.5rem;
|
| 78 |
-
font-weight: bold;
|
| 79 |
-
color: #8a5b44;
|
| 80 |
-
margin-bottom: 1.5rem;
|
| 81 |
-
}
|
| 82 |
-
|
| 83 |
-
.dedication-text {
|
| 84 |
-
font-size: 1.3rem;
|
| 85 |
-
line-height: 2.2rem;
|
| 86 |
-
color: #4a3e3e;
|
| 87 |
-
}
|
| 88 |
-
|
| 89 |
-
/* Story Page - Full Width */
|
| 90 |
-
#story {
|
| 91 |
-
min-height: 100vh;
|
| 92 |
-
padding: 0;
|
| 93 |
-
margin: 0;
|
| 94 |
-
width: 100%;
|
| 95 |
-
display: block;
|
| 96 |
-
text-align: start;
|
| 97 |
-
}
|
| 98 |
-
|
| 99 |
.section-header {
|
| 100 |
font-size: 2rem;
|
| 101 |
-
padding: 2rem;
|
| 102 |
font-weight: bold;
|
|
|
|
| 103 |
color: #8a5b44;
|
| 104 |
-
text-align: center;
|
| 105 |
}
|
| 106 |
|
| 107 |
.story-text {
|
|
@@ -112,7 +70,10 @@
|
|
| 112 |
padding: 2rem 4rem;
|
| 113 |
background: #ffffff;
|
| 114 |
color: #333;
|
| 115 |
-
direction: rtl;
|
|
|
|
|
|
|
|
|
|
| 116 |
}
|
| 117 |
|
| 118 |
@media (max-width: 768px) {
|
|
@@ -122,38 +83,29 @@
|
|
| 122 |
}
|
| 123 |
}
|
| 124 |
|
| 125 |
-
|
| 126 |
-
.thanks-section {
|
| 127 |
background-color: #f9f5f0;
|
| 128 |
-
padding:
|
| 129 |
-
text-align: center;
|
| 130 |
}
|
| 131 |
|
| 132 |
-
.
|
| 133 |
font-size: 2.5rem;
|
| 134 |
color: #8a5b44;
|
| 135 |
margin-bottom: 1.5rem;
|
| 136 |
}
|
| 137 |
|
| 138 |
-
.
|
| 139 |
font-size: 1.3rem;
|
| 140 |
-
|
| 141 |
-
color: #4a3e3e;
|
| 142 |
-
}
|
| 143 |
-
|
| 144 |
-
.thanks-section .author-name {
|
| 145 |
-
font-size: 1.1rem;
|
| 146 |
-
color: #777;
|
| 147 |
-
margin-top: 2rem;
|
| 148 |
}
|
| 149 |
|
| 150 |
-
.
|
| 151 |
color: #8a5b44;
|
| 152 |
-
font-weight: bold;
|
| 153 |
text-decoration: none;
|
|
|
|
| 154 |
}
|
| 155 |
|
| 156 |
-
.
|
| 157 |
text-decoration: underline;
|
| 158 |
}
|
| 159 |
</style>
|
|
@@ -165,79 +117,64 @@
|
|
| 165 |
<div>
|
| 166 |
<div class="title-name">Main Akeli Thi</div>
|
| 167 |
<div class="line-separator"></div>
|
| 168 |
-
<div class="subtitle">Untold
|
| 169 |
<div class="author-name">By Mohsin Kamil</div>
|
| 170 |
</div>
|
| 171 |
</section>
|
| 172 |
|
| 173 |
-
<!--
|
| 174 |
-
<section id="
|
| 175 |
-
|
| 176 |
-
<
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
inspired me, impressed me,<br />
|
| 180 |
-
and become my reason to smile.<br /><br />
|
| 181 |
-
Sometimes, you're like a child I care for.<br />
|
| 182 |
-
Other times, like a big brother I look up to.<br />
|
| 183 |
-
But always — you bring a light,<br />
|
| 184 |
-
a positive vibe I feel without words.
|
| 185 |
-
</div>
|
| 186 |
-
<div class="author-name mt-4">— Mohsin Kamil</div>
|
| 187 |
-
</div>
|
| 188 |
-
</section>
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
<!-- 📖 Story Page -->
|
| 192 |
-
<section id="story">
|
| 193 |
-
<div class="section-header">The Story</div>
|
| 194 |
-
<div class="story-text" id="storyContent">
|
| 195 |
-
Loading story...
|
| 196 |
-
</div>
|
| 197 |
</section>
|
| 198 |
|
| 199 |
-
<!--
|
| 200 |
-
<section id="
|
| 201 |
-
<
|
| 202 |
-
<
|
| 203 |
-
To my sister, <strong>"T"</strong> —<br />
|
| 204 |
-
Thank you for believing in me when I didn’t believe in myself.<br />
|
| 205 |
-
Your unwavering support gave me the strength to publish this.<br />
|
| 206 |
-
This book exists because you never let me give up.
|
| 207 |
-
</p>
|
| 208 |
-
<div class="author-name">— Mohsin Kamil</div>
|
| 209 |
</section>
|
| 210 |
|
| 211 |
-
<!--
|
| 212 |
-
<section id="
|
| 213 |
-
<
|
| 214 |
-
<
|
| 215 |
-
Thank you for taking the time to read <strong>Main Akeli Thi</strong>.<br /><br />
|
| 216 |
-
This story holds a special place in my heart, and I hope it resonated with you.<br />
|
| 217 |
-
Your support and encouragement mean the world to me.<br /><br />
|
| 218 |
-
Stay kind. Stay connected.
|
| 219 |
-
</p>
|
| 220 |
-
<div class="author-name">— Mohsin Kamil</div>
|
| 221 |
</section>
|
| 222 |
|
| 223 |
-
<!--
|
| 224 |
-
<section id="
|
| 225 |
-
<
|
| 226 |
-
<
|
| 227 |
-
For feedback, questions, or just to say hello, you can reach me at:<br /><br />
|
| 228 |
-
📧 <a href="mailto:Mohsinkamil11@gmail.com">Mohsinkamil11@gmail.com</a>
|
| 229 |
-
</p>
|
| 230 |
</section>
|
| 231 |
|
| 232 |
-
<!-- Load
|
| 233 |
<script>
|
| 234 |
-
fetch("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 235 |
.then(res => res.ok ? res.text() : Promise.reject())
|
| 236 |
.then(text => {
|
| 237 |
-
document.getElementById("
|
| 238 |
})
|
| 239 |
.catch(() => {
|
| 240 |
-
document.getElementById("
|
| 241 |
});
|
| 242 |
</script>
|
| 243 |
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
<title>Main Akeli Thi - Book</title>
|
| 7 |
|
| 8 |
+
<!-- Bootstrap -->
|
| 9 |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" />
|
| 10 |
|
| 11 |
<!-- Google Fonts -->
|
|
|
|
| 30 |
padding: 3rem 2rem;
|
| 31 |
}
|
| 32 |
|
|
|
|
| 33 |
.title-name {
|
| 34 |
font-size: 3rem;
|
| 35 |
font-weight: bold;
|
|
|
|
| 55 |
border-radius: 5px;
|
| 56 |
}
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
.section-header {
|
| 59 |
font-size: 2rem;
|
|
|
|
| 60 |
font-weight: bold;
|
| 61 |
+
margin-bottom: 2rem;
|
| 62 |
color: #8a5b44;
|
|
|
|
| 63 |
}
|
| 64 |
|
| 65 |
.story-text {
|
|
|
|
| 70 |
padding: 2rem 4rem;
|
| 71 |
background: #ffffff;
|
| 72 |
color: #333;
|
| 73 |
+
direction: rtl;
|
| 74 |
+
max-width: 900px;
|
| 75 |
+
border-radius: 1rem;
|
| 76 |
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
|
| 77 |
}
|
| 78 |
|
| 79 |
@media (max-width: 768px) {
|
|
|
|
| 83 |
}
|
| 84 |
}
|
| 85 |
|
| 86 |
+
.toc-section {
|
|
|
|
| 87 |
background-color: #f9f5f0;
|
| 88 |
+
padding: 3rem 2rem;
|
|
|
|
| 89 |
}
|
| 90 |
|
| 91 |
+
.toc-section h2 {
|
| 92 |
font-size: 2.5rem;
|
| 93 |
color: #8a5b44;
|
| 94 |
margin-bottom: 1.5rem;
|
| 95 |
}
|
| 96 |
|
| 97 |
+
.toc-section p {
|
| 98 |
font-size: 1.3rem;
|
| 99 |
+
margin: 0.5rem 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
}
|
| 101 |
|
| 102 |
+
.toc-section a {
|
| 103 |
color: #8a5b44;
|
|
|
|
| 104 |
text-decoration: none;
|
| 105 |
+
font-weight: bold;
|
| 106 |
}
|
| 107 |
|
| 108 |
+
.toc-section a:hover {
|
| 109 |
text-decoration: underline;
|
| 110 |
}
|
| 111 |
</style>
|
|
|
|
| 117 |
<div>
|
| 118 |
<div class="title-name">Main Akeli Thi</div>
|
| 119 |
<div class="line-separator"></div>
|
| 120 |
+
<div class="subtitle">Untold Stories by Mohsin Kamil</div>
|
| 121 |
<div class="author-name">By Mohsin Kamil</div>
|
| 122 |
</div>
|
| 123 |
</section>
|
| 124 |
|
| 125 |
+
<!-- 📚 Table of Contents -->
|
| 126 |
+
<section id="contents" class="toc-section">
|
| 127 |
+
<h2>Table of Contents</h2>
|
| 128 |
+
<p><a href="#story1">1. Main Akeli Thi</a></p>
|
| 129 |
+
<p><a href="#story2">2. اللہ جی، سوری... بھول چوک معاف</a></p>
|
| 130 |
+
<p><a href="#story3">3. تو ہم ساتھ ہوں</a></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
</section>
|
| 132 |
|
| 133 |
+
<!-- 📖 Story 1 -->
|
| 134 |
+
<section id="story1">
|
| 135 |
+
<div class="section-header">Main Akeli Thi</div>
|
| 136 |
+
<div class="story-text" id="storyContent1">Loading story...</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
</section>
|
| 138 |
|
| 139 |
+
<!-- 📖 Story 2 -->
|
| 140 |
+
<section id="story2">
|
| 141 |
+
<div class="section-header">اللہ جی، سوری... بھول چوک معاف</div>
|
| 142 |
+
<div class="story-text" id="storyContent2">Loading story...</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
</section>
|
| 144 |
|
| 145 |
+
<!-- 📖 Story 3 -->
|
| 146 |
+
<section id="story3">
|
| 147 |
+
<div class="section-header">تو ہم ساتھ ہوں</div>
|
| 148 |
+
<div class="story-text" id="storyContent3">Loading story...</div>
|
|
|
|
|
|
|
|
|
|
| 149 |
</section>
|
| 150 |
|
| 151 |
+
<!-- Load Stories via JS -->
|
| 152 |
<script>
|
| 153 |
+
fetch("story1.txt")
|
| 154 |
+
.then(res => res.ok ? res.text() : Promise.reject())
|
| 155 |
+
.then(text => {
|
| 156 |
+
document.getElementById("storyContent1").textContent = text;
|
| 157 |
+
})
|
| 158 |
+
.catch(() => {
|
| 159 |
+
document.getElementById("storyContent1").textContent = "Failed to load story 1.";
|
| 160 |
+
});
|
| 161 |
+
|
| 162 |
+
fetch("story2.txt")
|
| 163 |
+
.then(res => res.ok ? res.text() : Promise.reject())
|
| 164 |
+
.then(text => {
|
| 165 |
+
document.getElementById("storyContent2").textContent = text;
|
| 166 |
+
})
|
| 167 |
+
.catch(() => {
|
| 168 |
+
document.getElementById("storyContent2").textContent = "Failed to load story 2.";
|
| 169 |
+
});
|
| 170 |
+
|
| 171 |
+
fetch("story3.txt")
|
| 172 |
.then(res => res.ok ? res.text() : Promise.reject())
|
| 173 |
.then(text => {
|
| 174 |
+
document.getElementById("storyContent3").textContent = text;
|
| 175 |
})
|
| 176 |
.catch(() => {
|
| 177 |
+
document.getElementById("storyContent3").textContent = "Failed to load story 3.";
|
| 178 |
});
|
| 179 |
</script>
|
| 180 |
|