Skip to content

Commit 0f8499a

Browse files
committed
fix: update shop item images and remove unused tags
- Replaced the T-shirt image format from JPG to PNG for better quality. - Removed unused tag images from the site configuration and shop items. - Simplified the shop section layout by eliminating unnecessary CSS classes and inline styles.
1 parent 744aaf3 commit 0f8499a

File tree

7 files changed

+23
-126
lines changed

7 files changed

+23
-126
lines changed

app/_assets/images/Tシャツ.jpg

-77.3 KB
Binary file not shown.

app/_assets/images/Tシャツ.png

366 KB
Loading
20.1 KB
Loading

app/_site.config.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { StaticImageData } from "next/image";
22
import lineBannerImg from "./_assets/images/LINEスタンプバナー.png";
33
import twitterLinkImg from "./_assets/images/TwitterLink.png";
4-
import tshirtImg from "./_assets/images/Tシャツ.jpg";
4+
import tshirtImg from "./_assets/images/Tシャツ.png";
55
import youtubeLinkImg from "./_assets/images/YouTubeLink.png";
66
import thumbDaisyCrown from "./_assets/images/youtube-thumbnails/DaisyCrown.webp";
77
import thumbEvilBubble from "./_assets/images/youtube-thumbnails/EvilBubble.webp";
@@ -20,8 +20,6 @@ import thumbShayo from "./_assets/images/youtube-thumbnails/斜陽.jpg";
2020
import thumbTadashiku from "./_assets/images/youtube-thumbnails/正しくなれない.webp";
2121
import thumbShizuku from "./_assets/images/youtube-thumbnails/雫.webp";
2222
import thumbKakumei from "./_assets/images/youtube-thumbnails/革命道中.jpg";
23-
import tag1Img from "./_assets/images/タグ1.png";
24-
import tag2Img from "./_assets/images/タグ2.png";
2523
import glassesImg from "./_assets/images/メガネ吹き.png";
2624
import ytBannerImg from "./_assets/images/望月のあYouTubeバナー.jpg";
2725

@@ -35,7 +33,6 @@ export type ShopItem = {
3533
name: string;
3634
url: string;
3735
image: StaticImageData;
38-
tag: StaticImageData;
3936
};
4037

4138
export type Banner = {
@@ -77,13 +74,11 @@ export const siteConfig = {
7774
name: "Tシャツ",
7875
url: "https://mochinoa.booth.pm/items/7339358",
7976
image: tshirtImg,
80-
tag: tag1Img,
8177
},
8278
{
8379
name: "メガネ拭き",
8480
url: "https://mochinoa.booth.pm/items/3203325",
8581
image: glassesImg,
86-
tag: tag2Img,
8782
},
8883
] satisfies ShopItem[],
8984
},

app/page.module.css

Lines changed: 0 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -92,108 +92,6 @@
9292
border-radius: 50%;
9393
}
9494

95-
/* ===== Shop Section ===== */
96-
97-
.ShopSection {
98-
padding: 0 24px;
99-
margin-bottom: 20px;
100-
}
101-
102-
.ShopTitle {
103-
font-family: "Zen Maru Gothic", sans-serif;
104-
font-size: 16px;
105-
color: #7cb5a0;
106-
text-align: center;
107-
margin-bottom: 32px;
108-
letter-spacing: 0.08em;
109-
}
110-
111-
.ProductCard {
112-
position: relative;
113-
display: flex;
114-
align-items: center;
115-
gap: 16px;
116-
margin-bottom: 36px;
117-
padding: 12px;
118-
}
119-
120-
.ProductCard:nth-child(odd) {
121-
flex-direction: row;
122-
}
123-
124-
.ProductCard:nth-child(even) {
125-
flex-direction: row-reverse;
126-
}
127-
128-
.ProductImageWrapper {
129-
position: relative;
130-
flex-shrink: 0;
131-
width: 180px;
132-
}
133-
134-
.ProductImage {
135-
width: 180px;
136-
height: auto;
137-
border-radius: 4px;
138-
transform: rotate(-3deg);
139-
}
140-
141-
.ProductCard:nth-child(even) .ProductImage {
142-
transform: rotate(3deg);
143-
}
144-
145-
.TapeTopLeft {
146-
position: absolute;
147-
width: 60px;
148-
height: 20px;
149-
background-color: rgba(99, 186, 199, 0.35);
150-
border-radius: 2px;
151-
top: -6px;
152-
left: 8px;
153-
transform: rotate(-25deg);
154-
}
155-
156-
.TapeTopRight {
157-
position: absolute;
158-
width: 60px;
159-
height: 20px;
160-
background-color: rgba(99, 186, 199, 0.35);
161-
border-radius: 2px;
162-
top: -6px;
163-
right: 8px;
164-
transform: rotate(20deg);
165-
}
166-
167-
.TapeBottomRight {
168-
position: absolute;
169-
width: 60px;
170-
height: 20px;
171-
background-color: rgba(99, 186, 199, 0.35);
172-
border-radius: 2px;
173-
bottom: -6px;
174-
right: 8px;
175-
transform: rotate(-15deg);
176-
}
177-
178-
.ProductInfo {
179-
display: flex;
180-
flex-direction: column;
181-
align-items: center;
182-
gap: 8px;
183-
flex: 1;
184-
}
185-
186-
.ProductLabel {
187-
font-family: "Zen Maru Gothic", sans-serif;
188-
font-size: 14px;
189-
color: #666;
190-
}
191-
192-
.ProductTag {
193-
width: 100px;
194-
height: auto;
195-
}
196-
19795
/* ===== Banner Section ===== */
19896

19997
.BannerCard {

app/page.tsx

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import peachIconSvg from "./_assets/images/peach-icon.svg";
88
import topImg from "./_assets/images/トップ画像.png";
99
import { siteConfig } from "./_site.config";
1010
import "./page.global.css";
11+
import tag1Img from "./_assets/images/タグ1.png";
12+
import tag2Img from "./_assets/images/タグ2.png";
1113
import styles from "./page.module.css";
1214

1315
const WAVE_W = 1000;
@@ -256,33 +258,34 @@ export default function Page() {
256258
</div>
257259

258260
{/* Shop */}
259-
<div className={styles.ShopSection}>
261+
<div style={{
262+
paddingInline: 16
263+
}}>
260264
<WavyTitle
261265
text="もちのあちゃんのおみせ"
262-
className={styles.ShopTitle}
266+
style={{
267+
color: "var(--color-teal)",
268+
fontSize: 16
269+
}}
263270
/>
264271
{siteConfig.shop.items.map((item, i) => (
265-
<div key={item.name} className={styles.ProductCard}>
266-
<div className={styles.ProductImageWrapper}>
267-
<div className={styles.TapeTopLeft} />
272+
<div key={item.name}>
273+
<a href={item.url} target="_blank" rel="noopener noreferrer">
268274
<Image
269275
src={item.image}
270276
alt={item.name}
271-
className={styles.ProductImage}
277+
width={200}
278+
height={(item.image.height / item.image.width) * 200}
272279
/>
273-
{i === 0 ? (
274-
<div className={styles.TapeBottomRight} />
275-
) : (
276-
<div className={styles.TapeTopRight} />
277-
)}
278-
</div>
279-
<div className={styles.ProductInfo}>
280-
<span className={styles.ProductLabel}>{item.name}</span>
280+
</a>
281+
<div>
282+
<span>{item.name}</span>
281283
<a href={item.url} target="_blank" rel="noopener noreferrer">
282284
<Image
283-
src={item.tag}
285+
src={i === 0 ? tag2Img: tag1Img}
284286
alt="詳細はこちら"
285-
className={styles.ProductTag}
287+
width={80}
288+
height={(tag2Img.height / tag2Img.width) * 80}
286289
/>
287290
</a>
288291
</div>

components/WavyTitle/WavyTitle.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ type WavyTitleProps = {
44
text: string;
55
amp?: number;
66
className?: string;
7+
style?: React.CSSProperties;
78
};
89

910
const UNDERLINE_W = 200;
@@ -21,12 +22,12 @@ function buildUnderlinePath(amp: number) {
2122
return { d, h };
2223
}
2324

24-
export function WavyTitle({ text, amp = 6, className }: WavyTitleProps) {
25+
export function WavyTitle({ text, amp = 6, className, style }: WavyTitleProps) {
2526
const chars = [...text];
2627
const underline = buildUnderlinePath(amp);
2728

2829
return (
29-
<p className={className}>
30+
<p className={className} style={style}>
3031
<span className={styles.Root}>
3132
{chars.map((char, i) => {
3233
const key = `${char}-${i}`;

0 commit comments

Comments
 (0)