Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
fix: pmpm checkでの余白
Browse files Browse the repository at this point in the history
  • Loading branch information
Sea10wood committed Aug 11, 2024
1 parent b116510 commit f168a75
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
28 changes: 14 additions & 14 deletions src/components/GetImage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@

interface GetImageProps {
images: string[];
alt: string;
width: number;
height: number;
images: string[];
alt: string;
width: number;
height: number;
}

const GetImage: React.FC<GetImageProps> = ({ images, alt }) => {
const randomImage = images[Math.floor(Math.random() * images.length)];
const randomImage = images[Math.floor(Math.random() * images.length)];

return (
<img
src={randomImage}
alt={alt}
style={{ display: 'block', margin: '0 auto' }}
width={360} height={360}
/>
);
return (
<img
src={randomImage}
alt={alt}
style={{ display: "block", margin: "0 auto" }}
width={360}
height={360}
/>
);
};

export default GetImage;
7 changes: 4 additions & 3 deletions src/pages/result/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ function Result() {
images={images}
alt="ランダムに表示されるボトル画像"
width={160}
height={160} />
height={160}
/>
</div>
<div className={styles["background-logo"]}>
<img
Expand All @@ -33,7 +34,7 @@ function Result() {
<div className={styles["get-text"]}>
<p>Bottle Get!</p>
</div>
<div className={styles['share-btn']}>
<div className={styles["share-btn"]}>
<a
href="https://twitter.com/intent/tweet?text=Webの射的で遊んだよ.%20%23virtualnatsumatsuri%20%23炎上開発%20%23鹿児島ハッカソン"
target="_blank"
Expand All @@ -44,7 +45,7 @@ function Result() {
</DefaultButton>
</a>
</div>
<div className={styles['replay-text']}>
<div className={styles["replay-text"]}>
<p>また遊びにきてや〜</p>
</div>
</div>
Expand Down

0 comments on commit f168a75

Please sign in to comment.