Skip to content

Commit

Permalink
タグを正しく使う
Browse files Browse the repository at this point in the history
  • Loading branch information
piny940 committed Sep 27, 2023
1 parent 1e4af16 commit 8868b65
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 23 deletions.
30 changes: 17 additions & 13 deletions src/components/Portfolio/ProjectItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,27 @@ export const ProjectItem: React.FC<ProjectItemProps> = ({
) : (
renderTitle()
)}
<p className="mt-2 mb-1 d-flex align-items-center">
<ul className="list-unstyled mt-2 mb-1 d-flex align-items-center">
{githubLink && (
<Link target="_blank" href={githubLink} className="mx-1">
<Image
src={theme === 'light' ? githubIcon : githubWhiteIcon}
width={31}
height={31}
alt="github-icon"
/>
</Link>
<li>
<Link target="_blank" href={githubLink} className="mx-1">
<Image
src={theme === 'light' ? githubIcon : githubWhiteIcon}
width={31}
height={31}
alt="github-icon"
/>
</Link>
</li>
)}
{projectLink && (
<Link href={projectLink} target="_blank" className="mx-1 text-body">
<MaterialIcon name="share" />
</Link>
<li>
<Link href={projectLink} target="_blank" className="mx-1 text-body">
<MaterialIcon name="share" />
</Link>
</li>
)}
</p>
</ul>
<p className="my-1">{project.getDescription()}</p>
</ProjectItemDiv>
)
Expand Down
6 changes: 3 additions & 3 deletions src/containers/Projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export const ProjectsIndex: React.FC<ProjectsIndexProps> = ({
className = '',
}) => {
return (
<div
<section
id="projects"
className={'d-flex flex-column align-items-center py-5 ' + className}
>
<h1 className="text-center title-underline">Projects</h1>
<h2 className="h1 text-center title-underline">Projects</h2>
<p className="mt-4">それぞれQiita記事へのリンクになっています</p>
<div className="row row-cols-md-2 row-cols-xl-3 w-75">
{projectsData.map((project) => (
Expand All @@ -22,6 +22,6 @@ export const ProjectsIndex: React.FC<ProjectsIndexProps> = ({
</div>
))}
</div>
</div>
</section>
)
}
14 changes: 7 additions & 7 deletions src/containers/Skills.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ export type SkillsProps = {

export const Skills: React.FC<SkillsProps> = ({ className = '' }) => {
return (
<div
<section
id="skills"
className={'d-flex flex-column align-items-center p-5 ' + className}
>
<h1 className="text-center title-underline">Skills</h1>
<div className="row row-cols-md-2 w-75 mt-4">
<h2 className="h1 text-center title-underline">Skills</h2>
<ul className="list-unstyled row row-cols-md-2 w-75 mt-4">
{skillsData.map((skill) => (
<div className="col p-3 my-3" key={skill.name}>
<li className="col p-3 my-3" key={skill.name}>
<SkillItem skill={skill} />
</div>
</li>
))}
</div>
</div>
</ul>
</section>
)
}

0 comments on commit 8868b65

Please sign in to comment.