mirror of
https://github.com/xHyroM/website.git
synced 2024-11-10 01:38:05 +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";
|
import tailwind from "@astrojs/tailwind";
|
||||||
|
|
||||||
// https://astro.build/config
|
|
||||||
import image from "@astrojs/image";
|
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
import sitemap from "@astrojs/sitemap";
|
import sitemap from "@astrojs/sitemap";
|
||||||
|
|
||||||
|
@ -30,7 +27,6 @@ export default defineConfig({
|
||||||
site: "https://xhyrom.dev/",
|
site: "https://xhyrom.dev/",
|
||||||
integrations: [
|
integrations: [
|
||||||
tailwind(),
|
tailwind(),
|
||||||
image(),
|
|
||||||
sitemap(),
|
sitemap(),
|
||||||
compress({
|
compress({
|
||||||
svg: false,
|
svg: false,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
import Layout from "@layouts/Layout.astro";
|
import Layout from "@layouts/Layout.astro";
|
||||||
import Navbar from "@components/widgets/Navbar.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 logo from "@assets/logo.png";
|
||||||
import { SOCIALS } from "../config";
|
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"
|
class="mt-24 flex flex-col items-center justify-center md:mt-64 md:flex-row"
|
||||||
>
|
>
|
||||||
<div class="justify-cener flex items-center">
|
<div class="justify-cener flex items-center">
|
||||||
<Picture
|
<Image
|
||||||
src={logo}
|
src={logo}
|
||||||
formats={["png"]}
|
width={200}
|
||||||
sizes="(max-width: 200px) 100vw, 200px"
|
alt="pfp"
|
||||||
widths={[200, 400]}
|
|
||||||
aspectRatio={"1:1"}
|
|
||||||
alt="descriptive text"
|
|
||||||
class={"h-[200px] w-[200px]"}
|
class={"h-[200px] w-[200px]"}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue