abeea commited on
Commit
b869a02
Β·
verified Β·
1 Parent(s): 11536fa

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +35 -21
index.html CHANGED
@@ -56,7 +56,7 @@
56
  border-radius: 5px;
57
  }
58
 
59
- /* Dedication Page - Centered Box */
60
  .dedication-section {
61
  display: flex;
62
  align-items: center;
@@ -86,24 +86,40 @@
86
  color: #4a3e3e;
87
  }
88
 
89
- /* Story Page */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  .story-text {
91
  font-family: 'Noto Nastaliq Urdu', serif;
92
  font-size: 1.4rem;
93
  text-align: justify;
94
  white-space: pre-line;
95
- max-width: 850px;
96
- padding: 2rem;
97
- background: #fff;
98
- border-radius: 1rem;
99
- box-shadow: 0 10px 30px rgba(0,0,0,0.08);
100
  }
101
 
102
- .section-header {
103
- font-size: 2rem;
104
- margin-bottom: 2rem;
105
- font-weight: bold;
106
- color: #8a5b44;
107
  }
108
  </style>
109
  </head>
@@ -119,7 +135,7 @@
119
  </div>
120
  </section>
121
 
122
- <!-- πŸ’Œ Dedication Page (Fully Centered) -->
123
  <section id="dedication" class="dedication-section">
124
  <div class="dedication-box">
125
  <div class="dedication-title">Dedication</div>
@@ -139,18 +155,16 @@
139
 
140
  <!-- πŸ“– Story Page -->
141
  <section id="story">
142
- <div>
143
- <div class="section-header">The Story</div>
144
- <div class="story-text" id="storyContent">
145
- Loading story...
146
- </div>
147
  </div>
148
  </section>
149
 
150
- <!-- Load story.txt via JS -->
151
  <script>
152
  fetch("story.txt")
153
- .then(res => res.ok ? res.text() : "Unable to load story.")
154
  .then(text => {
155
  document.getElementById("storyContent").textContent = text;
156
  })
@@ -160,4 +174,4 @@
160
  </script>
161
 
162
  </body>
163
- </html>
 
56
  border-radius: 5px;
57
  }
58
 
59
+ /* Dedication Page */
60
  .dedication-section {
61
  display: flex;
62
  align-items: center;
 
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 {
108
  font-family: 'Noto Nastaliq Urdu', serif;
109
  font-size: 1.4rem;
110
  text-align: justify;
111
  white-space: pre-line;
112
+ padding: 2rem 4rem;
113
+ background: #ffffff;
114
+ color: #333;
115
+ direction: rtl; /* for Urdu text */
 
116
  }
117
 
118
+ @media (max-width: 768px) {
119
+ .story-text {
120
+ padding: 1.5rem;
121
+ font-size: 1.2rem;
122
+ }
123
  }
124
  </style>
125
  </head>
 
135
  </div>
136
  </section>
137
 
138
+ <!-- πŸ’Œ Dedication Page -->
139
  <section id="dedication" class="dedication-section">
140
  <div class="dedication-box">
141
  <div class="dedication-title">Dedication</div>
 
155
 
156
  <!-- πŸ“– Story Page -->
157
  <section id="story">
158
+ <div class="section-header">The Story</div>
159
+ <div class="story-text" id="storyContent">
160
+ Loading story...
 
 
161
  </div>
162
  </section>
163
 
164
+ <!-- Load story.txt -->
165
  <script>
166
  fetch("story.txt")
167
+ .then(res => res.ok ? res.text() : Promise.reject())
168
  .then(text => {
169
  document.getElementById("storyContent").textContent = text;
170
  })
 
174
  </script>
175
 
176
  </body>
177
+ </html>