You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

68 lines
1.5 KiB

import React from "react";
import styled from "styled-components";
import SkillCard from "./SkillCard/SkillCard";
import SkillSet from "./assets/skills";
import path from "path";
export default function Skills() {
return (
<Container id="skills">
<Title>My Skills</Title>
{SkillSet.map(topic => {
return (
<div key={topic.name}>
<TopicHeader>{topic.name}</TopicHeader>
<div key={topic.name}>
<SkillsContainer>
{topic.skills.map(skill => {
return (
<SkillCardContainer key={skill.name}>
<SkillCard
logo={skill.logo}
name={skill.name}
rating={skill.rating}
/>
</SkillCardContainer>
);
})}
</SkillsContainer>
</div>
</div>
);
})}
</Container>
);
}
const Container = styled.div`
margin-bottom: 1em;
padding-top: 2em;
`;
const Title = styled.h1`
text-align: center;
font-family: Montserrat, sans-serif;
font-size: 6em;
color: white;
position: relative;
`;
const TopicHeader = styled.p`
text-align: center;
font-family: Montserrat, sans-serif;
font-size: 2em;
color: white;
position: relative;
`;
const SkillsContainer = styled.div`
display: flex;
flex-direction: row;
flex-wrap: wrap;
font: inherit;
justify-content: center;
`;
const SkillCardContainer = styled.div`
margin: 1em;
`;