abeea commited on
Commit
f17c7c4
·
verified ·
1 Parent(s): bf4221b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +95 -22
index.html CHANGED
@@ -26,15 +26,34 @@
26
  display: flex;
27
  align-items: center;
28
  justify-content: center;
29
- background: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%);
 
 
 
30
  }
31
  .half-title-page h2 {
32
- font-size: 3rem;
33
- color: #333;
34
  margin: 0;
35
- padding: 2rem;
36
- border-bottom: 2px solid #764ba2;
 
 
 
 
 
 
 
 
 
 
37
  }
 
 
 
 
 
 
38
  .title-page {
39
  text-align: center;
40
  min-height: 80vh;
@@ -42,40 +61,88 @@
42
  flex-direction: column;
43
  align-items: center;
44
  justify-content: center;
45
- background: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%);
46
  padding: 2rem;
 
 
 
 
 
47
  }
48
  .title-page h1 {
49
- font-size: 3.5rem;
50
- color: #333;
51
  margin-bottom: 2rem;
 
 
 
 
52
  }
53
  .title-page .author {
54
- font-size: 1.8rem;
55
- color: #666;
56
- margin-bottom: 1rem;
 
 
57
  }
58
  .title-page .publisher {
59
- font-size: 1.4rem;
60
- color: #888;
61
- margin-top: 2rem;
 
 
 
 
 
 
 
 
62
  }
 
63
  .dedication-page {
64
  text-align: center;
65
  min-height: 60vh;
66
  display: flex;
67
  align-items: center;
68
  justify-content: center;
69
- background: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%);
70
  font-style: italic;
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
72
  .dedication-page .dedication-text {
73
- font-size: 1.8rem;
74
- color: #555;
75
- max-width: 80%;
76
- line-height: 1.8;
77
- padding: 2rem;
78
- border-right: 3px solid #764ba2;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  }
80
  </style>
81
  </head>
@@ -160,11 +227,14 @@
160
  page.innerHTML = `
161
  <div class="half-title-page">
162
  <h2>${chunk.content}</h2>
 
 
163
  </div>`;
164
  } else if (chunk.type === 'title') {
165
  const [title, author, publisher] = chunk.content.split('\n').map(line => line.trim());
166
  page.innerHTML = `
167
  <div class="title-page">
 
168
  <h1>${title}</h1>
169
  <div class="author">تصنیف: ${author}</div>
170
  <div class="publisher">${publisher}</div>
@@ -172,7 +242,10 @@
172
  } else if (chunk.type === 'dedication') {
173
  page.innerHTML = `
174
  <div class="dedication-page">
175
- <div class="dedication-text">${chunk.content}</div>
 
 
 
176
  </div>`;
177
  } else {
178
  page.innerHTML = parseContent(chunk);
 
26
  display: flex;
27
  align-items: center;
28
  justify-content: center;
29
+ background: linear-gradient(120deg, #f8fafc 0%, #e9d8fd 100%);
30
+ animation: fadeIn 1.2s;
31
+ position: relative;
32
+ flex-direction: column;
33
  }
34
  .half-title-page h2 {
35
+ font-size: 3.5rem;
36
+ color: #764ba2;
37
  margin: 0;
38
+ padding: 2rem 1rem 1rem 1rem;
39
+ font-family: 'Noto Nastaliq Urdu', serif;
40
+ text-shadow: 0 4px 24px #b794f4, 0 1px 0 #fff;
41
+ letter-spacing: 2px;
42
+ position: relative;
43
+ }
44
+ .half-title-page .divider {
45
+ width: 80px;
46
+ height: 4px;
47
+ background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
48
+ border-radius: 2px;
49
+ margin: 1.5rem auto 0 auto;
50
  }
51
+ .half-title-page .motif {
52
+ font-size: 2.2rem;
53
+ color: #b794f4;
54
+ margin-top: 1.2rem;
55
+ }
56
+
57
  .title-page {
58
  text-align: center;
59
  min-height: 80vh;
 
61
  flex-direction: column;
62
  align-items: center;
63
  justify-content: center;
64
+ background: linear-gradient(120deg, #fff 0%, #e9d8fd 100%);
65
  padding: 2rem;
66
+ border: 2px solid #d6bcfa;
67
+ border-radius: 32px;
68
+ box-shadow: 0 8px 32px rgba(118, 75, 162, 0.13);
69
+ animation: fadeInUp 1.2s;
70
+ position: relative;
71
  }
72
  .title-page h1 {
73
+ font-size: 3.2rem;
74
+ color: #764ba2;
75
  margin-bottom: 2rem;
76
+ font-family: 'Noto Nastaliq Urdu', serif;
77
+ text-shadow: 0 2px 12px #e9d8fd;
78
+ letter-spacing: 1.5px;
79
+ animation: fadeIn 1.2s;
80
  }
81
  .title-page .author {
82
+ font-size: 1.7rem;
83
+ color: #4b3869;
84
+ margin-bottom: 1.2rem;
85
+ font-family: 'Noto Nastaliq Urdu', serif;
86
+ animation: fadeIn 1.6s;
87
  }
88
  .title-page .publisher {
89
+ font-size: 1.2rem;
90
+ color: #6b46c1;
91
+ margin-top: 2.5rem;
92
+ font-family: 'Amiri', serif;
93
+ letter-spacing: 1px;
94
+ animation: fadeIn 2s;
95
+ }
96
+ .title-page .motif {
97
+ font-size: 2.2rem;
98
+ color: #b794f4;
99
+ margin-bottom: 1.5rem;
100
  }
101
+
102
  .dedication-page {
103
  text-align: center;
104
  min-height: 60vh;
105
  display: flex;
106
  align-items: center;
107
  justify-content: center;
108
+ background: linear-gradient(120deg, #f8fafc 0%, #e9d8fd 100%);
109
  font-style: italic;
110
+ animation: fadeInUp 1.2s;
111
+ position: relative;
112
+ }
113
+ .dedication-page .dedication-box {
114
+ background: rgba(255,255,255,0.95);
115
+ border: 2px solid #d6bcfa;
116
+ border-radius: 24px;
117
+ box-shadow: 0 4px 24px #b794f4;
118
+ padding: 2.5rem 2rem 2rem 2rem;
119
+ max-width: 600px;
120
+ margin: auto;
121
+ position: relative;
122
+ font-family: 'Noto Nastaliq Urdu', serif;
123
  }
124
  .dedication-page .dedication-text {
125
+ font-size: 1.6rem;
126
+ color: #4b3869;
127
+ line-height: 2.1;
128
+ margin-top: 1.2rem;
129
+ }
130
+ .dedication-page .quote-icon {
131
+ font-size: 2.5rem;
132
+ color: #b794f4;
133
+ position: absolute;
134
+ top: 1.2rem;
135
+ left: 1.2rem;
136
+ opacity: 0.7;
137
+ }
138
+
139
+ @keyframes fadeIn {
140
+ from { opacity: 0; }
141
+ to { opacity: 1; }
142
+ }
143
+ @keyframes fadeInUp {
144
+ from { opacity: 0; transform: translateY(40px); }
145
+ to { opacity: 1; transform: translateY(0); }
146
  }
147
  </style>
148
  </head>
 
227
  page.innerHTML = `
228
  <div class="half-title-page">
229
  <h2>${chunk.content}</h2>
230
+ <div class="divider"></div>
231
+ <div class="motif">★</div>
232
  </div>`;
233
  } else if (chunk.type === 'title') {
234
  const [title, author, publisher] = chunk.content.split('\n').map(line => line.trim());
235
  page.innerHTML = `
236
  <div class="title-page">
237
+ <div class="motif">❦</div>
238
  <h1>${title}</h1>
239
  <div class="author">تصنیف: ${author}</div>
240
  <div class="publisher">${publisher}</div>
 
242
  } else if (chunk.type === 'dedication') {
243
  page.innerHTML = `
244
  <div class="dedication-page">
245
+ <div class="dedication-box">
246
+ <span class="quote-icon">❝</span>
247
+ <div class="dedication-text">${chunk.content}</div>
248
+ </div>
249
  </div>`;
250
  } else {
251
  page.innerHTML = parseContent(chunk);