Skip to content

Commit

Permalink
ビルドが通るまでエラー箇所を潰す
Browse files Browse the repository at this point in the history
  • Loading branch information
sushichan044 committed Dec 21, 2024
1 parent 1afd7b4 commit 7b3a807
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,20 @@ import { getEntry } from "astro:content";
type ImgProps = CldImageProps;
export interface Props extends ImgProps {
alt?: string;
priority?: boolean;
quality?: number;
src: string;
alt: string;
}
const { alt, quality = 75, src, ...props } = Astro.props;
const pubId = getPublicId(src) ?? "";
const asset = await getEntry("cldImages", pubId);
const altIsEmpty = alt === "" || alt === undefined;
---

{
asset && (
<CldImage
alt={altIsEmpty ? "" : alt}
alt={alt}
height={asset.data.height}
quality={quality}
src={asset.data.public_id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ type Props = {
const { id } = Astro.props;
---

<TweetBase id={id} server:defer />
<TweetBase id={id} />
11 changes: 3 additions & 8 deletions packages/sushichan.live/src/pages/portfolio/index.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
import ContentLayout from "../../components/common/ContentLayout.astro";
import Link from "../../components/element/Link.astro";
import LocalImage from "../../components/element/LocalImage.astro";
import UrlCard from "../../components/ui/card/UrlCard.astro";
import BlogStyle from "../../features/blog/components/BlogStyle.astro";
import BaseSEO from "../../features/meta/BaseSEO.astro";
Expand Down Expand Up @@ -44,13 +43,9 @@ import Work from "./_work.astro";
</div>
<div>
<h2 class="mb-2" id="skills">⚙️ Skills</h2>
<LocalImage
alt="skills: html,css,tailwind,js,ts,nextjs,react,astro,nodejs,vite,workers,cloudflare,py,docker,git,github,githubactions,discord,twitter,vscode"
class="mx-auto"
height={SkillsSvg.height}
priority
src={SkillsSvg}
width={SkillsSvg.width}
<SkillsSvg
aria-label="skills: html,css,tailwind,js,ts,nextjs,react,astro,nodejs,vite,workers,cloudflare,py,docker,git,github,githubactions,discord,twitter,vscode"
role="img"
/>
</div>
<div>
Expand Down

0 comments on commit 7b3a807

Please sign in to comment.