add of a base for singleProject component and style
This commit is contained in:
parent
8761688113
commit
f583f2f746
25
src/components/SingleProject.jsx
Normal file
25
src/components/SingleProject.jsx
Normal file
@ -0,0 +1,25 @@
|
||||
import SkillCard from './SkillCard';
|
||||
import "../styles/SingleProject.css";
|
||||
function SingleProject({image, title, description, skills}) {
|
||||
return (
|
||||
<div className="single-project">
|
||||
<div className="single-project-left">
|
||||
<img src={`/public/assets/images/skills/${image}.svg`} alt={image} />
|
||||
</div>
|
||||
<div className="single-project-right">
|
||||
<h3 className="single-project-title">{title}</h3>
|
||||
<p className="single-project-description">
|
||||
{description}
|
||||
</p>
|
||||
<ul className="single-project-skills-list">
|
||||
{skills.map(skill => (
|
||||
<li key={skill}><SkillCard text={skill}/></li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
export default SingleProject
|
||||
38
src/styles/SingleProject.css
Normal file
38
src/styles/SingleProject.css
Normal file
@ -0,0 +1,38 @@
|
||||
.single-project {
|
||||
display: flex;
|
||||
width: 80%;
|
||||
justify-self: center;
|
||||
margin-bottom: 4%;
|
||||
}
|
||||
|
||||
.single-project-left{
|
||||
width: 60%;
|
||||
margin-right: 2%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
height: 400px;
|
||||
img{
|
||||
width: 100%;
|
||||
height: auto;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.single-project-right{
|
||||
width: 40%;
|
||||
margin-left: 2%;
|
||||
}
|
||||
|
||||
.single-project-skills-list{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
li{
|
||||
margin: 0.5% 1%;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user