redesigned portfolio page layout
This commit is contained in:
parent
d31dff53ae
commit
8a5d49707b
1 changed files with 24 additions and 15 deletions
|
@ -1,5 +1,6 @@
|
|||
import { useEffect, useState } from "react"
|
||||
import { Helmet } from "react-helmet-async"
|
||||
import styled from "styled-components"
|
||||
|
||||
import MainContent from "../../components/MainContent"
|
||||
import ProjectCard from "./ProjectCard"
|
||||
|
@ -9,6 +10,13 @@ import portfolio from "../../data/portfolio.json"
|
|||
|
||||
import { PortfolioProject } from "../../../types/types"
|
||||
|
||||
const SkillsImage = styled.img`
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 100%;
|
||||
`
|
||||
|
||||
const Portfolio = () => {
|
||||
const [projects, setProjects] = useState<JSX.Element[]>([])
|
||||
const [skills, setSkills] = useState<JSX.Element[]>([])
|
||||
|
@ -20,6 +28,7 @@ const Portfolio = () => {
|
|||
_projects.push(
|
||||
<ProjectCard
|
||||
key={projectID}
|
||||
projectID={projectID}
|
||||
project={
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
|
@ -67,24 +76,24 @@ const Portfolio = () => {
|
|||
Skills
|
||||
</h2>
|
||||
|
||||
<img
|
||||
alt="programming skills"
|
||||
src="/img/skills.svg"
|
||||
// center image
|
||||
style={{
|
||||
display: "block",
|
||||
marginLeft: "auto",
|
||||
marginRight: "auto",
|
||||
}}
|
||||
/>
|
||||
<SkillsImage alt="programming skills" src="/img/skills.svg" />
|
||||
|
||||
{/* Projects */}
|
||||
|
||||
<h2 id="projects">
|
||||
<a className="header-anchor" href="#projects">
|
||||
#
|
||||
</a>{" "}
|
||||
Projects
|
||||
</h2>
|
||||
|
||||
{skills}
|
||||
|
||||
<br />
|
||||
{skills}
|
||||
</MainContent>
|
||||
|
||||
<br />
|
||||
|
||||
{projects}
|
||||
</MainContent>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue