build: updated all deps and replaced Picture with Image
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import { Picture } from "@astrojs/image/components";
|
||||
import { Image } from "astro:assets";
|
||||
import heroImage from "assets/hero.png";
|
||||
import Link from "@components/ui/link.astro";
|
||||
import { Icon } from "astro-icon";
|
||||
@@ -8,11 +8,10 @@ import { Icon } from "astro-icon";
|
||||
<main
|
||||
class="grid lg:grid-cols-2 place-items-center pt-16 pb-8 md:pt-12 md:pb-24">
|
||||
<div class="py-6 md:order-1 hidden md:block">
|
||||
<Picture
|
||||
<Image
|
||||
src={heroImage}
|
||||
alt="Astronaut in the air"
|
||||
widths={[200, 400, 600]}
|
||||
aspectRatio="4:3"
|
||||
sizes="(max-width: 800px) 100vw, 620px"
|
||||
loading="eager"
|
||||
format="avif"
|
||||
@@ -25,8 +24,8 @@ import { Icon } from "astro-icon";
|
||||
</h1>
|
||||
<p class="text-lg mt-4 text-slate-600 max-w-xl">
|
||||
Astroship is a starter template for startups, marketing websites & landing
|
||||
pages.<wbr /> Built with Astro.build and TailwindCSS. You can quickly create
|
||||
any website with this starter.
|
||||
pages.<wbr /> Built with Astro.build and TailwindCSS. You can quickly
|
||||
create any website with this starter.
|
||||
</p>
|
||||
<div class="mt-6 flex flex-col sm:flex-row gap-3">
|
||||
<Link
|
||||
@@ -37,7 +36,7 @@ import { Icon } from "astro-icon";
|
||||
rel="noopener">
|
||||
<Icon class="text-white w-5 h-5" name="bx:bxs-cloud-download" />
|
||||
|
||||
Download for Free
|
||||
Download for Free
|
||||
</Link>
|
||||
<Link
|
||||
size="lg"
|
||||
@@ -47,7 +46,7 @@ import { Icon } from "astro-icon";
|
||||
class="flex gap-1 items-center justify-center"
|
||||
target="_blank">
|
||||
<Icon class="text-black w-4 h-4" name="bx:bxl-github" />
|
||||
GitHub Repo
|
||||
GitHub Repo
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
2
src/env.d.ts
vendored
2
src/env.d.ts
vendored
@@ -1,2 +1,2 @@
|
||||
/// <reference path="../.astro/types.d.ts" />
|
||||
/// <reference types="@astrojs/image/client" />
|
||||
/// <reference types="astro/client" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
import { getCollection } from "astro:content";
|
||||
import { Picture } from "@astrojs/image/components";
|
||||
import { Image } from "astro:assets";
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import Container from "@components/container.astro";
|
||||
import Sectionhead from "@components/sectionhead.astro";
|
||||
@@ -33,23 +33,18 @@ const publishedTeamMembers = await getCollection("team", ({ data }) => {
|
||||
publishedTeamMembers.map((teamMemberEntry) => (
|
||||
<div class="group">
|
||||
<div class="w-full aspect-square">
|
||||
<Picture
|
||||
<Image
|
||||
src={teamMemberEntry.data.avatar.src}
|
||||
alt={teamMemberEntry.data.avatar.alt}
|
||||
sizes="(max-width: 800px) 100vw, 400px"
|
||||
widths={[200, 400]}
|
||||
aspectRatio="1:1"
|
||||
background="#ffffff"
|
||||
fit="cover"
|
||||
position="center"
|
||||
class="w-full rounded-md rounded transition group-hover:-translate-y-1 group-hover:shadow-xl"
|
||||
width={400}
|
||||
height={400}
|
||||
class="w-full rounded-md rounded transition group-hover:-translate-y-1 group-hover:shadow-xl bg-white object-cover object-center aspect-square"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="mt-4 text-center">
|
||||
<h2 class="text-lg text-gray-800">
|
||||
{teamMemberEntry.data.name}
|
||||
</h2>
|
||||
<h2 class="text-lg text-gray-800">{teamMemberEntry.data.name}</h2>
|
||||
<h3 class="text-sm text-slate-500">
|
||||
{teamMemberEntry.data.title}
|
||||
</h3>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
import { getCollection } from "astro:content";
|
||||
import { Picture } from "@astrojs/image/components";
|
||||
import { Image } from "astro:assets";
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import Container from "@components/container.astro";
|
||||
import Sectionhead from "@components/sectionhead.astro";
|
||||
@@ -31,18 +31,15 @@ publishedBlogEntries.sort(function (a, b) {
|
||||
<li>
|
||||
<a href={`/blog/${blogPostEntry.slug}`}>
|
||||
<div class="grid md:grid-cols-2 gap-5 md:gap-10 items-center">
|
||||
<Picture
|
||||
<Image
|
||||
src={blogPostEntry.data.image.src}
|
||||
alt={blogPostEntry.data.image.alt}
|
||||
sizes="(max-width: 800px) 100vw, 800px"
|
||||
widths={[200, 400, 800]}
|
||||
aspectRatio="16:9"
|
||||
background="#ffffff"
|
||||
fit="cover"
|
||||
position="center"
|
||||
width={800}
|
||||
height={600}
|
||||
loading={index <= 2 ? "eager" : "lazy"}
|
||||
decoding={index <= 2 ? "sync" : "async"}
|
||||
class="w-full rounded-md"
|
||||
class="w-full rounded-md object-cover object-center bg-white"
|
||||
/>
|
||||
<div>
|
||||
<span class="text-blue-400 uppercase tracking-wider text-sm font-medium">
|
||||
|
||||
Reference in New Issue
Block a user