Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme updated #15

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/page/MeetTheTeam.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ const MeetTheTeam = () => {
];

return (
<div className={`meet-the-team-section ${theme === 'dark' ? 'bg-black text-white' : 'bg-gradient-to-r from-blue-500 via-white to-blue-400 text-gray-800'} py-16 px-10`}>
<div className={`meet-the-team-section ${theme === 'dark' ? 'bg-gradient-to-r from-black via-blue-900 to-black text-white' : 'bg-gradient-to-r from-blue-500 via-white to-blue-400 text-gray-800'} py-16 px-10`}>
<div className="container mx-auto">
<h2 className={`text-center text-3xl font-bold mb-8 ${theme === 'dark' ? 'text-white' : 'text-gray-800'}`}>
Meet the Team
Expand Down
5 changes: 4 additions & 1 deletion src/page/TeamMember.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react';
import { FaTwitter, FaLinkedin, FaMailBulk } from 'react-icons/fa';
import { FiMail } from 'react-icons/fi';
import { useTheme } from '../components/ThemeContext';

const TeamMember = ({ member }) => {
const { theme } = useTheme();
return (
<div className="team-member p-4 rounded-lg shadow-lg bg-white hover:shadow-xl transition duration-300 transform hover:scale-105">
<div className={`team-member p-4 rounded-lg shadow-lg hover:shadow-xl transition duration-300 transform hover:scale-105 ${theme === 'dark' ? 'bg-gray-900 text-white' : 'bg-white text-gray-800'}`}>

<div className="team-member-image-wrapper flex items-center justify-center">
<img src={member.imageSrc} alt={member.name} className="w-32 h-32 rounded-full object-cover" />
</div>
Expand Down