Skip to content

Commit ecea554

Browse files
committed
feat: blogのdescriptionを追加
1 parent 9c6dac2 commit ecea554

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

app/routes/blog/index.module.scss

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030

3131
margin-bottom: 42px;
3232

33+
.description {
34+
font-size: 20px;
35+
color: var(--grey-text-color) !important;
36+
}
37+
3338
img {
3439
height: 200px;
3540
width: 200px;
@@ -60,6 +65,7 @@
6065
display: flex;
6166
justify-content: end;
6267
.tag {
68+
font-size: 16px !important;
6369
color: var(--accent-color) !important;
6470
background-color: #2199c9 !important;
6571
}
@@ -100,11 +106,17 @@
100106
}
101107
.articleItem {
102108
flex-direction: column;
103-
height: 400px !important;
109+
height: max-content !important;
110+
min-height: 400px !important;
104111
max-width: 400px;
105112
min-width: 200px;
106113
margin: 0 12px;
107114

115+
.description {
116+
padding-top: 24px;
117+
padding-bottom: 64px;
118+
}
119+
108120
img {
109121
width: 100% !important;
110122
}

app/routes/blog/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { useIsMobile } from "~/hooks/useIsMobile";
77
type Article = {
88
id: string,
99
title: string,
10+
description: string,
1011
thumbnail: string,
1112
type: string,
1213
topics: string[],
@@ -40,6 +41,7 @@ export default function Blog(): JSX.Element {
4041
<img src={`https://raw.githubusercontent.com/object-t/object-t-blog/refs/heads/main/thumbnail/${article.thumbnail}`} alt={article.title} className={styles.thumbnail} />
4142
<div className={styles.textBox}>
4243
<h2>{article.title}</h2>
44+
<p className={styles.description}>{article.description}</p>
4345
<div className={styles.details}>
4446
<div className={styles.tagContainer}>
4547
{

0 commit comments

Comments
 (0)