Skip to content

Commit

Permalink
Our team design mostly ready
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdips834 committed Oct 28, 2023
1 parent 50acfbd commit 1ebbd83
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 38 deletions.
Binary file added src/assets/ourTeam.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 28 additions & 30 deletions src/components/contact/ContactUs.jsx
Original file line number Diff line number Diff line change
@@ -1,37 +1,35 @@
import contactus from "../../assets/contactus.png";
export default function ContactUs() {
return (
<div>
<div className="flex flex-col p-10 justify-evenly md:flex-row">
<img src={contactus} className="max-w-full" alt="Contact Us" />
<div className="flex flex-col p-10 pt-[10rem] pb-[10rem] justify-evenly md:flex-row">
<img src={contactus} className="max-w-full" alt="Contact Us" />

<div className="md:pl-10">
<h1 className="text-black text-[4.875rem] font-semibold">
Get in Touch
</h1>
<h2 className="text-[#686868] text-[1.4375rem] font-semibold leading-normal font-inter">
If you have any questions or inquiries, feel free to ask us.
</h2>
<form className="flex flex-col">
<input
className="p-2 m-2 border-2 border-black rounded-lg md:w-1/3 lg:w-full"
type="text"
name="firstname"
placeholder="Your name.."
/>
<input
className="p-2 m-2 border-2 border-black rounded-lg md:w-1/3 lg:w-full"
type="text"
name="email"
placeholder="Email"
/>
<textarea
className="h-40 p-2 m-2 border-2 border-black rounded-lg md:w-1/3 lg:w-full"
name="Message"
placeholder="Message"
></textarea>
</form>
</div>
<div className="md:pl-10">
<h1 className="text-black text-[4.875rem] font-semibold">
Get in Touch
</h1>
<h2 className="text-[#686868] text-[1.4375rem] font-semibold leading-normal font-inter">
If you have any questions or inquiries, feel free to ask us.
</h2>
<form className="flex flex-col">
<input
className="p-2 m-2 border-2 border-black rounded-lg md:w-1/3 lg:w-full"
type="text"
name="firstname"
placeholder="Your name.."
/>
<input
className="p-2 m-2 border-2 border-black rounded-lg md:w-1/3 lg:w-full"
type="text"
name="email"
placeholder="Email"
/>
<textarea
className="h-40 p-2 m-2 border-2 border-black rounded-lg md:w-1/3 lg:w-full"
name="Message"
placeholder="Message"
></textarea>
</form>
</div>
</div>
);
Expand Down
5 changes: 4 additions & 1 deletion src/components/marqueeCards/Marquee.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import Marquee from "react-fast-marquee";

const MarqueeCards = ({ children, direction }) => {
const containerStyle = {};
return (
<Marquee
style={{ containerStyle }}
direction={direction}
gradient={false}
gradient={true}
gradientWidth={500}
speed={100}
pauseOnHover={true}
>
Expand Down
19 changes: 14 additions & 5 deletions src/components/team/Card.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import { FaLinkedin, FaGithub, FaTwitter } from "react-icons/fa";
export default function Card({ name, image, role, linkedin, github, twitter }) {
export default function Card({
name,
image,
role,
linkedin,
github,
twitter,
colour,
}) {
console.log(colour);
const className = `flex flex-col m-6 justify-center gap-2 items-center shadow-[0px_0px_15px_2px_rgba(0,0,0,0.17)] border-b-8 border-b-[${colour}] border-solid
w-[18rem] h-[22rem] shrink-0`;

return (
<div
className="flex flex-col justify-center gap-2 items-center shadow-[0px_0px_15px_2px_rgba(0,0,0,0.17)] border-b-8 border-b-[#34A853] border-solid
w-[18rem] h-[22rem] shrink-0"
>
<div className={className}>
<img
className="text-[#1C1C1C] rounded-[31.25rem] w-[11.25rem] h-[11.25rem]"
src={image}
Expand Down
9 changes: 7 additions & 2 deletions src/components/team/Team.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import * as data from "../../data/data2023.json";
import Marquee from "../marqueeCards/Marquee";
import Card from "./Card";
import ourTeam from "../../assets/ourTeam.png";
export default function Team() {
console.log(data.teamMembers[0]);

const colourChoices = ["#EA4335", "#34A853", "#4285F4", "#FBBC05"];
return (
<div className="">
<div
style={{ display: "flex", alignItems: "center", flexDirection: "column" }}
>
<img src={ourTeam} alt="Our Team" />
<Marquee direction="left">
{data.teamMembers.map((members, index) => (
<Card
Expand All @@ -16,6 +20,7 @@ export default function Team() {
twitter={members.twitterUrl}
image={members.image}
key={index}
colour={colourChoices[index % 4]}
/>
))}
</Marquee>
Expand Down

0 comments on commit 1ebbd83

Please sign in to comment.