mirror of
https://github.com/xHyroM/website.git
synced 2024-11-21 22:41:06 +01:00
build: get rid of @astrojs/image
This commit is contained in:
parent
4dbbae2589
commit
981edd4e7b
2 changed files with 4 additions and 11 deletions
|
@ -2,9 +2,6 @@ import { defineConfig } from "astro/config";
|
|||
|
||||
import tailwind from "@astrojs/tailwind";
|
||||
|
||||
// https://astro.build/config
|
||||
import image from "@astrojs/image";
|
||||
|
||||
// https://astro.build/config
|
||||
import sitemap from "@astrojs/sitemap";
|
||||
|
||||
|
@ -30,7 +27,6 @@ export default defineConfig({
|
|||
site: "https://xhyrom.dev/",
|
||||
integrations: [
|
||||
tailwind(),
|
||||
image(),
|
||||
sitemap(),
|
||||
compress({
|
||||
svg: false,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import Navbar from "@components/widgets/Navbar.astro";
|
||||
import { Picture } from "@astrojs/image/components";
|
||||
import { Image } from "astro:assets";
|
||||
import logo from "@assets/logo.png";
|
||||
import { SOCIALS } from "../config";
|
||||
---
|
||||
|
@ -31,13 +31,10 @@ import { SOCIALS } from "../config";
|
|||
class="mt-24 flex flex-col items-center justify-center md:mt-64 md:flex-row"
|
||||
>
|
||||
<div class="justify-cener flex items-center">
|
||||
<Picture
|
||||
<Image
|
||||
src={logo}
|
||||
formats={["png"]}
|
||||
sizes="(max-width: 200px) 100vw, 200px"
|
||||
widths={[200, 400]}
|
||||
aspectRatio={"1:1"}
|
||||
alt="descriptive text"
|
||||
width={200}
|
||||
alt="pfp"
|
||||
class={"h-[200px] w-[200px]"}
|
||||
/>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue