Skip to content

Commit c3c61bb

Browse files
committed
Modal options and projects grid code cleanup
1 parent bc77298 commit c3c61bb

File tree

4 files changed

+18
-27
lines changed

4 files changed

+18
-27
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# React & TailwindCSS Portfolio - With Dark Mode
22

3-
A simple portfolio starter theme built with React and TailwindCSS. This is a simple portfolio theme and its geared towards beginners. This is the React version of [vuejs-tailwindcss-portfolio](https://github.com/NangialaiStoman/vuejs-tailwindcss-portfolio).
3+
A simple portfolio starter theme built with React and TailwindCSS. This is the React version of [vuejs-tailwindcss-portfolio](https://github.com/realstoman/vuejs-tailwindcss-portfolio).
44

55
![React-TailwindCSS-Portfolio](https://user-images.githubusercontent.com/16396664/140909796-815239e4-a986-46ad-bbd0-4b166127bbb8.JPG)
66

src/components/HireMeModal.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import { motion } from 'framer-motion';
22
import { FiX } from 'react-icons/fi';
33

4+
const selectOptions = [
5+
'Web Application',
6+
'Mobile Application',
7+
'UI/UX Design',
8+
'Branding',
9+
];
10+
411
const HireMeModal = ({ onClose, onRequest }) => {
512
return (
613
<motion.div
@@ -65,7 +72,14 @@ const HireMeModal = ({ onClose, onRequest }) => {
6572
required=""
6673
aria-label="Project Category"
6774
>
68-
<option>Something</option>
75+
{selectOptions.map((option) => (
76+
<option
77+
className="text-normal sm:text-md"
78+
key={option}
79+
>
80+
{option}
81+
</option>
82+
))}
6983
</select>
7084
</div>
7185

src/components/projects/ProjectsGrid.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { FiSearch } from 'react-icons/fi';
33
import ProjectSingle from './ProjectSingle';
44
import { ProjectsContext } from '../../context/ProjectsContext';
55
import ProjectsFilter from './ProjectsFilter';
6-
import { motion } from 'framer-motion';
76

87
const ProjectsGrid = () => {
98
const {
@@ -16,28 +15,6 @@ const ProjectsGrid = () => {
1615
selectProjectsByCategory,
1716
} = useContext(ProjectsContext);
1817

19-
const projectsResult = () => {
20-
if (setSearchProject) {
21-
return searchProjectsByTitle.map((project) => (
22-
<ProjectSingle
23-
title={project.title}
24-
category={project.category}
25-
image={project.img}
26-
key={project.id}
27-
/>
28-
));
29-
} else if (setSelectProject) {
30-
return selectProjectsByCategory.map((project) => (
31-
<ProjectSingle
32-
title={project.title}
33-
category={project.category}
34-
image={project.img}
35-
key={project.id}
36-
/>
37-
));
38-
}
39-
};
40-
4118
return (
4219
<section className="py-5 sm:py-10 mt-5 sm:mt-10">
4320
{/* Projects grid title start */}

src/pages/Home.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ const Home = () => {
1212
<ProjectsGrid></ProjectsGrid>
1313
</ProjectsProvider>
1414

15-
<div class="mt-10 sm:mt-15 flex justify-center">
15+
<div className="mt-10 sm:mt-15 flex justify-center">
1616
<Link
1717
to="/projects"
18-
class="flex items-center px-6 py-3 rounded-lg shadow-lg hover:shadow-xl bg-indigo-500 hover:bg-indigo-600 focus:ring-1 focus:ring-indigo-900 text-white text-lg sm:text-xl font-medium"
18+
className="flex items-center px-6 py-3 rounded-lg shadow-lg hover:shadow-xl bg-indigo-500 hover:bg-indigo-600 focus:ring-1 focus:ring-indigo-900 text-white text-lg sm:text-xl font-medium"
1919
aria-label="More Projects"
2020
>
2121
More Projects

0 commit comments

Comments
 (0)