Skip to content

Commit

Permalink
fix: 細かなスタイル調整(#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-yoshikawa44 committed Dec 16, 2021
1 parent 76ec434 commit 845691f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/pages/myProducts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ function Product({ productName, description, imageUrl, url, githubUrl }) {
return (
<div className="col col--4 margin-bottom--lg">
<div className="card shadow--lw-custom">
<div className="text--center card__image">
<p className="text--center card__image">
<img
src={useBaseUrl(imageUrl)}
alt={productName}
className={styles.productImg}
/>
</div>
</p>
<div className={clsx('card__body', styles.cardBodyCustom)}>
<h4>{productName}</h4>
<small>{description}</small>
Expand Down
10 changes: 5 additions & 5 deletions src/pages/skillAndCareer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ Skill.propTypes = {

function Skill({ imgUrl, title, description }) {
return (
<div className="col col--3">
<div className="col col--3 text--center">
{imgUrl && (
<div className="text--center">
<p className={styles.skillImageBlock}>
<img className={styles.skillImage} src={imgUrl} alt={title} />
</div>
</p>
)}
<h4 className="text--center">{title}</h4>
<p className="text--center">{description}</p>
<h4>{title}</h4>
<p>{description}</p>
</div>
);
}
Expand Down
11 changes: 10 additions & 1 deletion src/pages/skillAndCareer/index.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
.skillImage {
.skillImageBlock {
height: 100px;
width: 100px;
margin: 1em auto;
display: flex;
align-items: center;
justify-content: center;
}

.skillImage {
max-width: 100%;
max-height: 100%;
}

0 comments on commit 845691f

Please sign in to comment.