diff --git a/src/components/Icon.astro b/src/components/Icon.astro index 74df665..0a426a3 100644 --- a/src/components/Icon.astro +++ b/src/components/Icon.astro @@ -1,7 +1,8 @@ --- +import type { HTMLAttributes } from 'astro/types' import { optimize } from 'svgo' -interface Props { +type Props = HTMLAttributes<'svg'> & { // `src/assets/icons`にあるSVGのファイル名 name: string @@ -9,7 +10,7 @@ interface Props { alt: string } -const { name, alt } = Astro.props +const { name, alt, ...attrs } = Astro.props const svgContent = (await import(`../assets/icons/${name}.svg?raw`)).default @@ -31,7 +32,7 @@ const { data: optimizedSvgContent } = optimize(svgContent, { attribute: { role: 'img', 'aria-label': alt, - style: 'width:100%;height:100%', + ...attrs, }, }, }, diff --git a/src/components/button/DiscordJoinLink.astro b/src/components/button/DiscordJoinLink.astro index d9d932d..63c5f4e 100644 --- a/src/components/button/DiscordJoinLink.astro +++ b/src/components/button/DiscordJoinLink.astro @@ -9,9 +9,7 @@ import LinkButton from './LinkButton.astro' variant="discord" > - - - + 公開サーバーに参加 diff --git a/src/components/button/PeingLink.astro b/src/components/button/PeingLink.astro index 8940d7c..32516d9 100644 --- a/src/components/button/PeingLink.astro +++ b/src/components/button/PeingLink.astro @@ -5,9 +5,7 @@ import LinkButton from './LinkButton.astro' - - - + 質問箱 diff --git a/src/components/button/TwitterLink.astro b/src/components/button/TwitterLink.astro index bce4a0c..c808a3b 100644 --- a/src/components/button/TwitterLink.astro +++ b/src/components/button/TwitterLink.astro @@ -5,9 +5,7 @@ import LinkButton from './LinkButton.astro' - - - + @OUCC diff --git a/src/features/activity/components/ActivityCard.astro b/src/features/activity/components/ActivityCard.astro index 3c5d479..c1816dd 100644 --- a/src/features/activity/components/ActivityCard.astro +++ b/src/features/activity/components/ActivityCard.astro @@ -15,9 +15,7 @@ const { title, image, link } = Astro.props

- - - + {title}

{ diff --git a/src/features/index/components/about/AboutSection.astro b/src/features/index/components/about/AboutSection.astro index 82a8180..a0199c2 100644 --- a/src/features/index/components/about/AboutSection.astro +++ b/src/features/index/components/about/AboutSection.astro @@ -43,9 +43,7 @@ const items: Item[] = [ items.map(({ icon, description }) => (
  • -
    - -
    + {description.map((x) => (

    {x}

    ))} diff --git a/src/features/layout/components/Footer.astro b/src/features/layout/components/Footer.astro index b40088a..4e70ab8 100644 --- a/src/features/layout/components/Footer.astro +++ b/src/features/layout/components/Footer.astro @@ -5,9 +5,7 @@ import FooterLink from './FooterLink.astro'