abeea commited on
Commit
96cd1a4
·
verified ·
1 Parent(s): 3f379bd

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +114 -29
index.html CHANGED
@@ -7,8 +7,6 @@
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 -->
12
  <link href="https://fonts.googleapis.com/css2?family=Playfair+Display&family=Noto+Nastaliq+Urdu&display=swap" rel="stylesheet" />
13
 
14
  <style>
@@ -55,11 +53,52 @@
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 {
@@ -83,29 +122,37 @@
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>
@@ -130,6 +177,23 @@
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>
@@ -148,34 +212,55 @@
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
 
181
  </body>
 
7
 
8
  <!-- Bootstrap -->
9
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" />
 
 
10
  <link href="https://fonts.googleapis.com/css2?family=Playfair+Display&family=Noto+Nastaliq+Urdu&display=swap" rel="stylesheet" />
11
 
12
  <style>
 
53
  border-radius: 5px;
54
  }
55
 
56
+ .toc-section {
57
+ background-color: #f9f5f0;
58
+ padding: 3rem 2rem;
59
+ }
60
+
61
+ .toc-section h2 {
62
+ font-size: 2.5rem;
63
+ color: #8a5b44;
64
+ margin-bottom: 1.5rem;
65
+ }
66
+
67
+ .toc-section p {
68
+ font-size: 1.3rem;
69
+ margin: 0.5rem 0;
70
+ }
71
+
72
+ .toc-section a {
73
+ color: #8a5b44;
74
+ text-decoration: none;
75
+ font-weight: bold;
76
+ }
77
+
78
+ .toc-section a:hover {
79
+ text-decoration: underline;
80
+ }
81
+
82
+ .dedication-box {
83
+ max-width: 750px;
84
+ background-color: #ffffff;
85
+ padding: 3rem;
86
+ border-radius: 1.5rem;
87
+ box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
88
+ }
89
+
90
+ .dedication-text {
91
+ font-size: 1.3rem;
92
+ line-height: 2.2rem;
93
+ color: #4a3e3e;
94
+ }
95
+
96
  .section-header {
97
  font-size: 2rem;
98
  font-weight: bold;
99
  margin-bottom: 2rem;
100
  color: #8a5b44;
101
+ text-align: center;
102
  }
103
 
104
  .story-text {
 
122
  }
123
  }
124
 
125
+ .thanks-section {
126
  background-color: #f9f5f0;
127
+ padding: 4rem 2rem;
128
+ text-align: center;
129
  }
130
 
131
+ .thanks-section h2 {
132
  font-size: 2.5rem;
133
  color: #8a5b44;
134
  margin-bottom: 1.5rem;
135
  }
136
 
137
+ .thanks-section p {
138
  font-size: 1.3rem;
139
+ line-height: 2.2rem;
140
+ color: #4a3e3e;
141
  }
142
 
143
+ .thanks-section .author-name {
144
+ font-size: 1.1rem;
145
+ color: #777;
146
+ margin-top: 2rem;
147
+ }
148
+
149
+ .thanks-section a {
150
  color: #8a5b44;
 
151
  font-weight: bold;
152
+ text-decoration: none;
153
  }
154
 
155
+ .thanks-section a:hover {
156
  text-decoration: underline;
157
  }
158
  </style>
 
177
  <p><a href="#story3">3. تو ہم ساتھ ہوں</a></p>
178
  </section>
179
 
180
+ <!-- 💌 Dedicated Page -->
181
+ <section id="dedication" class="dedication-section">
182
+ <div class="dedication-box">
183
+ <div class="dedication-text">
184
+ Dedicated to my best friend, <strong>Damii</strong> —<br /><br />
185
+ who has always stood by me,<br />
186
+ inspired me, impressed me,<br />
187
+ and become my reason to smile.<br /><br />
188
+ Sometimes, you're like a child I care for.<br />
189
+ Other times, like a big brother I look up to.<br />
190
+ But always — you bring a light,<br />
191
+ a positive vibe I feel without words.
192
+ </div>
193
+ <div class="author-name mt-4">— Mohsin Kamil</div>
194
+ </div>
195
+ </section>
196
+
197
  <!-- 📖 Story 1 -->
198
  <section id="story1">
199
  <div class="section-header">Main Akeli Thi</div>
 
212
  <div class="story-text" id="storyContent3">Loading story...</div>
213
  </section>
214
 
215
+ <!-- 🌟 Special Thanks -->
216
+ <section id="special-thanks" class="thanks-section">
217
+ <h2>Special Thanks</h2>
218
+ <p>
219
+ To my sister, <strong>"T"</strong> —<br />
220
+ Thank you for believing in me when I didn’t believe in myself.<br />
221
+ Your unwavering support gave me the strength to publish this.<br />
222
+ This book exists because you never let me give up.
223
+ </p>
224
+ <div class="author-name">— Mohsin Kamil</div>
225
+ </section>
226
+
227
+ <!-- 🙏 Thank You Page -->
228
+ <section id="thankyou" class="thanks-section">
229
+ <h2>Thank You</h2>
230
+ <p>
231
+ Thank you for taking the time to read <strong>Main Akeli Thi</strong>.<br /><br />
232
+ This story holds a special place in my heart, and I hope it resonated with you.<br />
233
+ Your support and encouragement mean the world to me.<br /><br />
234
+ Stay kind. Stay connected.
235
+ </p>
236
+ <div class="author-name">— Mohsin Kamil</div>
237
+ </section>
238
+
239
+ <!-- 📬 Contact the Author -->
240
+ <section id="contact" class="thanks-section">
241
+ <h2>Contact the Author</h2>
242
+ <p>
243
+ For feedback, questions, or just to say hello, you can reach me at:<br /><br />
244
+ 📧 <a href="mailto:Mohsinkamil11@gmail.com">Mohsinkamil11@gmail.com</a>
245
+ </p>
246
+ </section>
247
+
248
+ <!-- Load Stories -->
249
  <script>
250
  fetch("story1.txt")
251
  .then(res => res.ok ? res.text() : Promise.reject())
252
+ .then(text => document.getElementById("storyContent1").textContent = text)
253
+ .catch(() => document.getElementById("storyContent1").textContent = "Failed to load story 1.");
 
 
 
 
254
 
255
  fetch("story2.txt")
256
  .then(res => res.ok ? res.text() : Promise.reject())
257
+ .then(text => document.getElementById("storyContent2").textContent = text)
258
+ .catch(() => document.getElementById("storyContent2").textContent = "Failed to load story 2.");
 
 
 
 
259
 
260
  fetch("story3.txt")
261
  .then(res => res.ok ? res.text() : Promise.reject())
262
+ .then(text => document.getElementById("storyContent3").textContent = text)
263
+ .catch(() => document.getElementById("storyContent3").textContent = "Failed to load story 3.");
 
 
 
 
264
  </script>
265
 
266
  </body>