Skip to content

Commit

Permalink
modified: src/pages/shared/team.jsx
Browse files Browse the repository at this point in the history
	modified:   src/pages/user/UserRegistration.jsx
  • Loading branch information
codewarnab committed Jul 4, 2024
1 parent 90f1c51 commit a3e0bcd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
22 changes: 11 additions & 11 deletions src/pages/shared/team.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const TeamPage = () => {
{
name: "Rishi Paul",
position: "AI Engineer and Full Stack Developer",
image: "https://media.licdn.com/dms/image/D5603AQFcc8_vrp3w-Q/profile-displayphoto-shrink_800_800/0/1714159671557?e=1720051200&v=beta&t=fWJEx0tXqTQdx1xN63fDZW50kS_LAZStD9TyF67le_k",
image: "https://media.licdn.com/dms/image/D5603AQFcc8_vrp3w-Q/profile-displayphoto-shrink_800_800/0/1714159671557?e=1725494400&v=beta&t=dLUd-g0ov1Qoqh8QjZsklxDMCh7974KEw8eOL_TSUc4",
featureText: "Tests in Production, because who needs that silly staging environment anyway?",
socialLinks: {
linkedin: "https://www.linkedin.com/in/rishi-paul04/",
Expand All @@ -25,7 +25,7 @@ const TeamPage = () => {
{
name: "Arnab Mondal",
position: "Frontend Developer",
image: "https://media.licdn.com/dms/image/D5603AQF1SG1K-VPsTg/profile-displayphoto-shrink_800_800/0/1699975516118?e=1717027200&v=beta&t=ZLzBL-4382gD16CTtZhR9aEEz6El5CBF8L_ImUUVz3w",
image: "https://media.licdn.com/dms/image/D5603AQF1SG1K-VPsTg/profile-displayphoto-shrink_200_200/0/1699975516118?e=2147483647&v=beta&t=4xv6oCwITHE6rqiGPoM0AfnsIzCAoRYLGRCuL-JgQDk",
featureText: "it's not a bug; it's an undocumented feature",
socialLinks: {
linkedin: "https://in.linkedin.com/in/arnab-mondal-117616278",
Expand All @@ -35,7 +35,7 @@ const TeamPage = () => {
{
name: "Sutanuka Chakraborty",
position: "UI/UX Designer",
image: "https://media.licdn.com/dms/image/D4D03AQHYnR-kriTWSQ/profile-displayphoto-shrink_200_200/0/1713470417629?e=1718841600&v=beta&t=CayRuA_fpxqoUydhR-bMDvhAa2bnah_9Lvm_KbsV61k",
image: "https://media.licdn.com/dms/image/D4D03AQHYnR-kriTWSQ/profile-displayphoto-shrink_800_800/0/1713470417629?e=1725494400&v=beta&t=oS5J3FbLvcbwFlMs5gG9FNWH30FJFQl8ZRC0QwKJNMg",
featureText: 'Make sure to always "make it pop"!',
socialLinks: {
linkedin: "https://www.linkedin.com/in/sutanuka-chakraborty-148744275/",
Expand All @@ -44,7 +44,7 @@ const TeamPage = () => {
{
name: "Anirban Majumdar",
position: "Backend Developer",
image: "https://media.licdn.com/dms/image/D5603AQG5LSd6uM5VsA/profile-displayphoto-shrink_800_800/0/1711645732216?e=1717027200&v=beta&t=rk-Gap8Q-uA7Bh-tv_mbNHX-Szhe-9yP-X7NCFlkr1Y",
image: "https://media.licdn.com/dms/image/D5603AQG5LSd6uM5VsA/profile-displayphoto-shrink_800_800/0/1711645732216?e=1725494400&v=beta&t=fGL0LL4aRMISsmKEC6yfrYJLNHuqdI0hoIbQmDe0q_o",
featureText: "It all starts with 0 or it's an error",
socialLinks: {
linkedin: "https://www.linkedin.com/in/anirbanmajumder0/",
Expand All @@ -54,7 +54,7 @@ const TeamPage = () => {
{
name: "Shreya Shaw",
position: "Frontend Developer & UI/UX Designer",
image: "https://media.licdn.com/dms/image/D5603AQFAH-ciYtM0ZA/profile-displayphoto-shrink_800_800/0/1711645818457?e=1717027200&v=beta&t=lQ0H6HJRfpEhlorEc4OhMNNC_sPgSQTDtPHgq47M9K4",
image: "https://media.licdn.com/dms/image/D5603AQFAH-ciYtM0ZA/profile-displayphoto-shrink_800_800/0/1711645818457?e=1725494400&v=beta&t=CBvFYRlhcl6TDZjtKypefLJZDe0iJdpcHlv-zQhvyeY",
featureText: "Code, Create, Conquer - Engineering the Future..",
socialLinks: {
linkedin: "https://www.linkedin.com/in/shreya-shaw/",
Expand All @@ -64,7 +64,7 @@ const TeamPage = () => {
{
name: "Debayudh Basu",
position: "Frontend and Payments Developer",
image: "https://media.licdn.com/dms/image/D5603AQE3L9nP5ZM_vg/profile-displayphoto-shrink_800_800/0/1708620931019?e=1717027200&v=beta&t=mJwwcnkLJNBYUAa4vzFqXGe0C4TVOAwD5iD9eJih0lY",
image: "https://media.licdn.com/dms/image/D5603AQE3L9nP5ZM_vg/profile-displayphoto-shrink_800_800/0/1708620931019?e=1725494400&v=beta&t=OjUc594qjxY4_d_ZuvVaCxZm-uTFoQ51XPkBiVDse_M",
featureText: "Who needs cocaine when you can sniff HTTP requests?",
socialLinks: {
linkedin: "https://www.linkedin.com/in/debayudh-basu-5280562b2/",
Expand All @@ -74,7 +74,7 @@ const TeamPage = () => {
{
name: "Chandrima Ghosh",
position: "QA & Testing Engineer",
image: "https://media.licdn.com/dms/image/D5603AQGQNKUH0VzDMQ/profile-displayphoto-shrink_800_800/0/1698230927367?e=1717027200&v=beta&t=7y20D_MiqLSOFHBFg-hdvxYBqnrUOiiXdIGfBCXa4qk",
image: "https://media.licdn.com/dms/image/D5603AQGQNKUH0VzDMQ/profile-displayphoto-shrink_800_800/0/1698230927367?e=1725494400&v=beta&t=Sl1t5i_GmkOsEhoKvEgwxLVmjAtp6FJFFBFF6-LSVm0",
featureText: "Engineering the world differently.",
socialLinks: {
linkedin: "https://www.linkedin.com/in/chandrima-ghosh-476231295/",
Expand All @@ -86,20 +86,20 @@ const TeamPage = () => {

return (
<div className="bg-gradient-to-r from-blue-500 to-green-500 min-h-screen pb-4">
<div className='mx-auto mb-2 px-8 py-8 overflow-hidden'>
<div className='mx-auto mb-2 px-4 py-8 overflow-hidden'>
<h2 className="text-4xl font-semibold text-center mb-8 text-white">Our Team</h2>
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6 justify-center pb-4">
<div className="grid sm:grid-cols-1 md:grid-cols-1 grid-cols-3 gap-6 justify-center pb-4">
{teamMembers.map((member, index) => (
<div key={index} className="z-[30] bg-white rounded-3xl bg-opacity-57 backdrop-blur-[5px] shadow-lg ring-1 ring-gray-300">
<img className="w-50 mt-2 h-60 rounded-full border-4 border-emerald-500 mx-auto block" src={member.image} alt={member.name} />
<img className="w-40 mt-2 h-40 rounded-full border-4 border-emerald-500 mx-auto block object-cover" src={member.image} alt={member.name} />
<div className="px-6 py-4 text-center">
<div className="font-bold text-xl mb-2">{member.name}</div>
<p className="text-gray-700 text-base">{member.position}</p>
<p className="text-gray-700 text-base mt-2">{member.featureText}</p>
</div>
<div className="px-6 py-4 text-center mb-2">
<a href={member.socialLinks.linkedin} target="_blank" rel="noopener noreferrer" className="text-base mt-3 text-white bg-gradient-to-b from-blue-300 to-emerald-500 focus:outline-none rounded-[30px] mr-3 px-3 py-4 bg-opacity-20 font-semibold">LinkedIn</a>
{member.socialLinks.github && ( //Check for github
{member.socialLinks.github && (
<a href={member.socialLinks.github} target="_blank" rel="noopener noreferrer" className="text-base mt-3 text-white bg-gradient-to-b from-blue-300 to-emerald-500 focus:outline-none rounded-[30px] mr-3 px-3 py-4 bg-opacity-20 font-semibold">GitHub</a>
)}
</div>
Expand Down
17 changes: 11 additions & 6 deletions src/pages/user/UserRegistration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ function LoginRegisterForm() {
setHasSymbol(/[^A-Za-z0-9]/.test(value));
};

const handleRegistration = async () => {
const handleRegistration = async (event) => {
event.preventDefault(); // Prevent default form submission
const res = await registration(
name,
phone_number,
Expand All @@ -79,6 +80,11 @@ function LoginRegisterForm() {
}
};

const handleLogin = async (event) => {
event.preventDefault(); // Prevent default form submission
await login(email, password, setError, setButtonState);
};

const closeConfirmationDialog = (isUploadPhoto) => {
if (isUploadPhoto) {
window.location.href = "/";
Expand All @@ -102,7 +108,10 @@ function LoginRegisterForm() {
className="p-10 md:p-0"
>
<div className=" w-full flex justify-center items-center shadow-[0_2px_20px_rgba(0,0,0,0.5)] rounded-3xl md:rounded-none md:shadow-[0_0px_0px_rgba(0,0,0,0)]">
<form className="w-[50%] md:w-full gap-[1rem] flex flex-col justify-center items-center py-20">
<form
className="w-[50%] md:w-full gap-[1rem] flex flex-col justify-center items-center py-20"
onSubmit={isLogin ? handleLogin : handleRegistration}
>
{!isLogin && (
<>
<h1 className="w-[85%] text-center z-[3] text-indigo-900 font-semibold text-[2.5em] md:text-[2rem]">
Expand Down Expand Up @@ -219,7 +228,6 @@ function LoginRegisterForm() {
hasSymbol
)
}
onClick={handleRegistration}
/>
{error && (
<p
Expand Down Expand Up @@ -249,9 +257,6 @@ function LoginRegisterForm() {
loadingText="wait.."
successText="Logging In"
errorText="Login"
onClick={async () =>
login(email, password, setError, setButtonState)
}
/>
{error && (
<p className="absolute w-screen top-[-40px] tracking-wide text-red-500 font-semibold text-center">
Expand Down

0 comments on commit a3e0bcd

Please sign in to comment.