JamieAlethieum commited on
Commit
d63c7fd
·
verified ·
1 Parent(s): bbe90d7

Replace blocked PDF iframe with static preview

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. index.html +18 -11
  3. mpp-i-paper-preview.png +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ mpp-i-paper-preview.png filter=lfs diff=lfs merge=lfs -text
index.html CHANGED
@@ -198,16 +198,23 @@
198
  }
199
 
200
  .preview {
201
- min-height: 720px;
202
  border: 1px solid var(--line);
203
  background: var(--soft);
204
  }
205
 
206
- .preview iframe {
207
  display: block;
208
  width: 100%;
209
- min-height: 720px;
210
- border: 0;
 
 
 
 
 
 
 
 
211
  background: #ffffff;
212
  }
213
 
@@ -240,9 +247,8 @@
240
  grid-template-columns: 1fr;
241
  }
242
 
243
- .preview,
244
- .preview iframe {
245
- min-height: 520px;
246
  }
247
  }
248
 
@@ -326,11 +332,12 @@
326
  </section>
327
  </div>
328
 
329
- <section class="preview" aria-label="PDF preview">
330
- <iframe src="https://ando-oss.github.io/mpp-i/mpp-i-paper-v1.0.pdf#view=FitH" title="MPP-I paper PDF preview">
331
- </iframe>
 
332
  <div class="fallback">
333
- If the embedded preview does not load, open the paper directly at
334
  <a href="https://ando-oss.github.io/mpp-i/mpp-i-paper-v1.0.pdf">ando-oss.github.io/mpp-i/mpp-i-paper-v1.0.pdf</a>.
335
  </div>
336
  </section>
 
198
  }
199
 
200
  .preview {
 
201
  border: 1px solid var(--line);
202
  background: var(--soft);
203
  }
204
 
205
+ .paper-preview {
206
  display: block;
207
  width: 100%;
208
+ padding: 16px;
209
+ background: var(--soft);
210
+ }
211
+
212
+ .paper-preview img {
213
+ display: block;
214
+ width: 100%;
215
+ max-height: 720px;
216
+ object-fit: contain;
217
+ border: 1px solid var(--line);
218
  background: #ffffff;
219
  }
220
 
 
247
  grid-template-columns: 1fr;
248
  }
249
 
250
+ .paper-preview img {
251
+ max-height: 520px;
 
252
  }
253
  }
254
 
 
332
  </section>
333
  </div>
334
 
335
+ <section class="preview" aria-label="Paper preview">
336
+ <a class="paper-preview" href="https://ando-oss.github.io/mpp-i/mpp-i-paper-v1.0.pdf" aria-label="Open the MPP-I paper PDF">
337
+ <img src="mpp-i-paper-preview.png" alt="First page preview of the MPP-I paper">
338
+ </a>
339
  <div class="fallback">
340
+ Open the full 67-page paper directly at
341
  <a href="https://ando-oss.github.io/mpp-i/mpp-i-paper-v1.0.pdf">ando-oss.github.io/mpp-i/mpp-i-paper-v1.0.pdf</a>.
342
  </div>
343
  </section>
mpp-i-paper-preview.png ADDED

Git LFS Details

  • SHA256: 1b458ecd4e7283b92c38b1e3459e49aab443ebc93041e700967983e6656e8dac
  • Pointer size: 131 Bytes
  • Size of remote file: 279 kB