Project Page
The Project page allows you to showcase and customize various elements to create a personalized experience for your website visitors.
Project Page customize
Here's how you can make specific changes:
Page Title
To edit the page title on the Project page, locate the following code in the app/project/page.jsx file:
<div className="row">
<div className="col-lg-12">
<div className="section-header">
<h2>The work we do, <br />and the people we help.</h2>
</div>
</div>
</div>
Update the text inside the <h2> tags to customize the page title according to your preferences. Feel free to modify the text to align with the purpose or message you want to convey through the Project page.
Project List
The projects displayed on the Project page are sourced from the components/projects.jsx file. This component uses the project information stored in the data/data.js file.
To add, modify, or remove projects, you need to make changes in data/data.js file.
-
In the
data/data.jsfile, you'll find an array namedprojectsData. Each element in this array represents a project and contains properties such asid,title,subtitle, andimgSrc. -
To add a new project, append a new object to the
projectsDataarray following the provided template:
{
id: 1,
title: "Fashion Blog <br> Website",
subtitle: "UI, UX Project",
imgSrc: "/images/project/project-1.png",
category: ["UI"],
description:
'Strategy formulation is built on "the match between all organisation resources and skills based program. ',
}
- id: Assign a unique number as the
idfor the project. - title: Set the
titleproperty to the name of your project. - subtitle: Specify the
subtitleproperty to provide a brief description or category for the project. - imgSrc: Update the
imgSrcproperty to point to the file path of your project's image. - category: Update the
categoryproperty to point to add the project caegories. - description: Update the
descriptionproperty to update the project short description.
- Repeat the above steps to add additional projects, ensuring that each project object has a unique
id.
By modifying the project data in data/data.js, you can manage the projects displayed on the Project page.
More Project
To add the "More Project" button functionality, follow these steps:
- Open the
app/project/page.jsfile. - Locate the following code snippet:
<div className="d-flex justify-content-center">
<button
onClick={() => setShowMoreProject(true)}
className={`next-more border-0 bg-transparent mt-xxl-10 mt-lg-9 mt-md-7 mt-6 ${
showMoreProject ? "d-none" : ""
}`}
>
<ArrowDown size={32} weight="thin" />More Project
</button>
</div>
- Add the necessary state variable to your component to handle the
showMoreProjectstate. For example, you can add the following code before thereturnstatement in your functional component:
const [showMoreProject, setShowMoreProject] = useState(false);
- Update the
onClickevent of the button to toggle theshowMoreProjectstate totruewhen clicked:
onClick={() => setShowMoreProject(true)}
- Add conditional rendering to display the additional projects when
showMoreProjectistrue. For example, you can wrap theProjectscomponent with anifcondition to show it whenshowMoreProjectistrue:
{showMoreProject && <Projects />}
Remember to import the necessary dependencies and adjust the code as needed to fit your component structure.
By adding this code, the "See More Project" button will show additional projects when clicked, allowing users to view more projects on the homepage.
Remember to save the modified files after making the desired changes. These adjustments will ensure that the Project page reflects your customized content and showcases your projects accurately.