started work on styling project cards
This commit is contained in:
parent
a13b6d5600
commit
c1de54876e
@ -4,5 +4,4 @@ projectArticleContainer
|
||||
==> projectTypeSelected et al.
|
||||
|
||||
=> projectInformationContainer
|
||||
==> projectNumberSelectionContainer
|
||||
===> projectNumberSelector
|
||||
==> projectIndividualItemContainer
|
||||
@ -5,31 +5,23 @@ import { useProjectContext } from "@/context/ProjectContext";
|
||||
|
||||
|
||||
function WebProjects() {
|
||||
const { projectNumber, setProjectNumber } = useProjectContext();
|
||||
function handleProjectTabs(arg) {
|
||||
setProjectNumber(arg);
|
||||
}
|
||||
|
||||
return (
|
||||
<section id="webprojects" className="projectInformationContainer">
|
||||
<div className="projectNumberSelectionContainer">
|
||||
{webProjects.map((item, index) => {
|
||||
return(
|
||||
<div key={`${index}tab`} className="projectNumberSelector" onClick={() => { handleProjectTabs(index)}}>{index+1}</div>
|
||||
);
|
||||
})}
|
||||
<div key={item.Name} className="projectIndividualItemContainer">
|
||||
<div className="projectImageContainer">
|
||||
<img className ="projectImage" src={item.Image} alt={item.Name} />
|
||||
</div>
|
||||
{webProjects.map((item, index) => {
|
||||
return(
|
||||
<div key={item.Name}>
|
||||
{projectNumber === index && <div className="projectIndividualItemContainer">
|
||||
<h3>{item.Name}</h3>
|
||||
<div className="projectTextContainer">
|
||||
<h3 className="projectTextTitle">{item.Name}</h3>
|
||||
<p>{item.Details}</p>
|
||||
<p>{item.Features}</p>
|
||||
<p>{item.Technologies}</p>
|
||||
<p>{item.GitHub}</p>
|
||||
<p>{item.Hosted}</p>
|
||||
</div>}
|
||||
</div>
|
||||
</div>);
|
||||
})}
|
||||
</section>
|
||||
|
||||
@ -89,45 +89,31 @@
|
||||
|
||||
.projectInformationContainer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
box-sizing: content-box;
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.projectNumberSelectionContainer {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
gap: 3rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.projectNumberSelector {
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
padding: 0.5rem;
|
||||
margin: 0.5rem;
|
||||
border: 3px solid white;
|
||||
}
|
||||
|
||||
.projectIndividualItemContainer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 2rem;
|
||||
min-width: calc(100vw - 10rem);
|
||||
min-height: calc(100vh - 20rem);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.projectButtonsContainer {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
padding: 1.5rem;
|
||||
max-width: 50%;
|
||||
}
|
||||
|
||||
.projectImageContainer {
|
||||
width: 50%;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
.projectImage {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.projectTextContainer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 50%;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user