Skip to content

Commit

Permalink
fix: change image importing (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanaphomH authored Jan 25, 2024
1 parent be95a0e commit e4ecdf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
import Layout from "@/layouts/Layout.astro";
import ISDLogo from "@/assets/isd_logo.svg";
import { Image } from "astro:assets";
---

<Layout title="Home" description="Main page">
Expand Down Expand Up @@ -34,7 +37,7 @@ import Layout from "@/layouts/Layout.astro";
<section
class="absolute flex h-screen w-screen -translate-y-12 flex-col items-center justify-center bg-black lg:-translate-y-32"
>
<img src="./src/assets/isd_logo.svg" class="w-60 lg:w-80" alt="logo" />
<Image src={ISDLogo} class="w-60 lg:w-80" alt="logo" />
<div
class="flex max-w-xl flex-col items-center justify-center text-center text-white"
>
Expand Down

0 comments on commit e4ecdf2

Please sign in to comment.