thibaud frere commited on
Commit
ec58330
·
1 Parent(s): c64d3c5

feat(astro): move banner to app/src/assets/images via LFS and render on index

Browse files
Files changed (1) hide show
  1. app/src/pages/index.astro +4 -0
app/src/pages/index.astro CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  const title = 'Hello Astro on HF Spaces';
3
  ---
4
  <html lang="en">
@@ -11,6 +12,9 @@ const title = 'Hello Astro on HF Spaces';
11
  <main style="max-width: 720px; margin: 40px auto; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, Apple Color Emoji, Segoe UI Emoji;">
12
  <h1 style="margin:0 0 16px;">🚀 Hello World</h1>
13
  <p>Astro est déployé statiquement via Nginx sur le port 8080.</p>
 
 
 
14
  </main>
15
  </body>
16
  </html>
 
1
  ---
2
+ import banner from "../assets/images/banner.png";
3
  const title = 'Hello Astro on HF Spaces';
4
  ---
5
  <html lang="en">
 
12
  <main style="max-width: 720px; margin: 40px auto; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, Apple Color Emoji, Segoe UI Emoji;">
13
  <h1 style="margin:0 0 16px;">🚀 Hello World</h1>
14
  <p>Astro est déployé statiquement via Nginx sur le port 8080.</p>
15
+ <figure>
16
+ <img src={banner} alt="FineTasks banner" style="width:100%;height:auto;" loading="lazy" decoding="async" />
17
+ </figure>
18
  </main>
19
  </body>
20
  </html>