|
| 1 | +import { ProjectInfo as ProjectsData } from '../utils/SingleProjectData'; |
| 2 | + |
| 3 | +const ProjectInfo = () => { |
| 4 | + return ( |
| 5 | + <div className="block sm:flex gap-0 sm:gap-10 mt-14"> |
| 6 | + <div className="w-full sm:w-1/3 text-left"> |
| 7 | + {/* Single project client details start */} |
| 8 | + <div className="mb-7"> |
| 9 | + <p className="text-2xl font-semibold text-secondary-dark dark:text-secondary-light mb-2"> |
| 10 | + {ProjectsData.ClientHeading} |
| 11 | + </p> |
| 12 | + <ul className="leading-loose"> |
| 13 | + {ProjectsData.CompanyInfo.map((info) => { |
| 14 | + <li className="text-ternary-dark dark:text-ternary-light"> |
| 15 | + <span>{info.title}: </span> |
| 16 | + <a |
| 17 | + href="#" |
| 18 | + className={ |
| 19 | + info.title == 'Website' || |
| 20 | + info.title == 'Phone' |
| 21 | + ? 'hover:underline cursor-pointer' |
| 22 | + : '' |
| 23 | + } |
| 24 | + aria-label="Project Webiste and Phone" |
| 25 | + > |
| 26 | + {info.details} |
| 27 | + </a> |
| 28 | + </li>; |
| 29 | + })} |
| 30 | + </ul> |
| 31 | + </div> |
| 32 | + {/* Single project client details end */} |
| 33 | + |
| 34 | + {/* Single project objectives start */} |
| 35 | + <div className="mb-7"> |
| 36 | + <p className="text-2xl font-semibold text-ternary-dark dark:text-ternary-light mb-2"> |
| 37 | + {ProjectsData.ObjectivesHeading} |
| 38 | + </p> |
| 39 | + <p className="text-primary-dark dark:text-ternary-light"> |
| 40 | + {ProjectsData.ObjectivesDetails} |
| 41 | + </p> |
| 42 | + </div> |
| 43 | + {/* Single project objectives end */} |
| 44 | + |
| 45 | + {/* Single project technologies start */} |
| 46 | + <div className="mb-7"> |
| 47 | + <p className="text-2xl font-semibold text-ternary-dark dark:text-ternary-light mb-2"> |
| 48 | + {ProjectsData.Technologies[0].title} |
| 49 | + </p> |
| 50 | + <p className="text-primary-dark dark:text-ternary-light"> |
| 51 | + {ProjectsData.Technologies[0].techs.join(', ')} |
| 52 | + </p> |
| 53 | + </div> |
| 54 | + {/* Single project technologies end */} |
| 55 | + |
| 56 | + {/* Single project social sharing start */} |
| 57 | + <div> |
| 58 | + <p className="text-2xl font-semibold text-ternary-dark dark:text-ternary-light mb-2"> |
| 59 | + {ProjectsData.SocialSharingHeading} |
| 60 | + </p> |
| 61 | + <div className="flex items-center gap-3 mt-5"> |
| 62 | + {ProjectsData.SocialSharing.map((social) => { |
| 63 | + return ( |
| 64 | + <a |
| 65 | + key={social.id} |
| 66 | + href={social.url} |
| 67 | + target="__blank" |
| 68 | + aria-label="Share Project" |
| 69 | + className="bg-ternary-light dark:bg-ternary-dark text-gray-400 hover:text-primary-dark dark:hover:text-primary-light p-2 rounded-lg shadow-sm" |
| 70 | + > |
| 71 | + {social.icon} |
| 72 | + </a> |
| 73 | + ); |
| 74 | + })} |
| 75 | + </div> |
| 76 | + </div> |
| 77 | + {/* Single project social sharing end */} |
| 78 | + </div> |
| 79 | + {/* Single project left section details end */} |
| 80 | + |
| 81 | + {/* Single project right section details start */} |
| 82 | + <div className="w-full sm:w-2/3 text-left mt-10 sm:mt-0"> |
| 83 | + <p className="text-primary-dark dark:text-primary-light text-2xl font-bold mb-7"> |
| 84 | + {ProjectsData.ProjectDetailsHeading} |
| 85 | + </p> |
| 86 | + {ProjectsData.ProjectDetails.map((details) => { |
| 87 | + return ( |
| 88 | + <p |
| 89 | + key={details.id} |
| 90 | + className="mb-5 text-lg text-ternary-dark dark:text-ternary-light" |
| 91 | + > |
| 92 | + {details.details} |
| 93 | + </p> |
| 94 | + ); |
| 95 | + })} |
| 96 | + </div> |
| 97 | + {/* Single project right section details end */} |
| 98 | + </div> |
| 99 | + ); |
| 100 | +}; |
| 101 | + |
| 102 | +export default ProjectInfo; |
0 commit comments