Skip to content
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
822 changes: 813 additions & 9 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,22 @@
"axios": "^1.9.0",
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
"bootstrap": "^5.3.6",
"framer-motion": "^12.11.0",
"google-map-react": "^2.2.1",
"gsap": "^3.13.0",
"lenis": "^1.3.1",
"lucide-react": "^0.511.0",
"moment": "^2.30.1",
"motion": "^12.12.1",
"primeicons": "^7.0.0",
"primereact": "^10.9.1",
"react": "^18.3.1",
"react-bootstrap": "^2.10.10",
"react-cookie-consent": "^9.0.0",
"react-countdown": "^2.3.6",
"react-dom": "^18.3.1",
"react-icons": "^5.5.0",
"react-query": "^3.39.2",
"react-router-dom": "^7.5.2",
"react-use": "^17.6.0",
Expand Down Expand Up @@ -77,13 +81,17 @@
"@typescript-eslint/parser": "^8.32.0",
"@vitejs/plugin-react": "^4.4.1",
"@vitest/coverage-v8": "^3.1.3",
"autoprefixer": "^10.4.21",
"eslint": "^9.26.0",
"eslint-import-resolver-typescript": "^4.3.4",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"gh-pages": "^6.3.0",
"globals": "^16.2.0",
"postcss": "^8.5.3",
"tailwindcss": "^3.4.17",
"jsdom": "^26.1.0",
"prettier": "^3.5.1",
"react-ga": "^3.3.1",
Expand Down
6 changes: 6 additions & 0 deletions postccs.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ import Accommodation from "./views/Travel/Accommodation";
import Schedule from "./views/Schedule/Schedule";
import Diversity from "./views/Diversity/Diversity";
import LiveView from "./views/Talks/LiveView";
import JobOffers from "./views/JobOffers/JobOffers";
import { HomeWrapper2024 } from "./2024/HomeWrapper2024";
import Speakers2024 from "./components/YearSpecific/Speakers/Speakers2024";
import Talks2024 from "./2024/Talks/Talks2024";
Expand All @@ -101,6 +100,7 @@ import Workshops from "./views/Workshops/Workshops";
import Schedule2024 from "./2024/Schedule/Schedule2024";
import JobOffers2024 from "./2024/JobOffers/JobOffers2024";
import MeetingDetailContainer2024 from "./2024/TalkDetail/MeetingDetailContainer2024";
import JobOffersList from "@components/JobOffers/JobOffersList";

const StyledAppWrapper = styled.div`
position: relative;
Expand Down Expand Up @@ -209,7 +209,7 @@ const App: FC<React.PropsWithChildren<unknown>> = () => {
path={ROUTE_JOB_OFFERS}
element={
<React.Suspense fallback={<Loading />}>
<JobOffers />
<JobOffersList />
</React.Suspense>
}
/>
Expand Down
106 changes: 106 additions & 0 deletions src/components/JobOffers/CompanyCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
import React from "react";
import { Button, Card, Col, Row } from "react-bootstrap";
import { ExternalLink, Linkedin, Twitter } from "lucide-react";
// @ts-expect-error some quirky
import { motion } from "framer-motion";
// @ts-expect-error some quirky
import { Company } from "@types/jobOffers";
import JobOfferCard from "@components/JobOffers/JobOfferCard";

interface CompanyCardProps {
company: Company;
index: number;
}

const CompanyCard: React.FC<CompanyCardProps> = ({ company, index }) => {
const cardVariants = {
hidden: { opacity: 0, y: 50 },
visible: (i: number) => ({
opacity: 1,
y: 0,
transition: {
delay: i * 0.1,
duration: 0.5,
ease: "easeOut",
},
}),
};

return (
<motion.div
variants={cardVariants}
initial="hidden"
animate="visible"
custom={index}
className="mb-5"
viewport={{ once: true, margin: "-100px" }}
>
<Card className="mb-4">
<Card.Body>
<Row className="align-items-center">
<Col md={4} className="text-center text-md-start mb-3 mb-md-0">
<motion.img
whileHover={{ scale: 1.05 }}
src={company.logo}
alt={`${company.name} logo`}
className="company-logo"
/>
</Col>
<Col md={7}>
<h2 className="company-name">{company.name}</h2>
<p className="mb-2">{company.description}</p>
<div className="d-flex">
{company.linkedin && (
<a
href={company.linkedin}
target="_blank"
rel="noopener noreferrer"
className="me-3"
>
<Linkedin className="social-icon" />
</a>
)}
{company.twitter && (
<a
href={company.twitter}
target="_blank"
rel="noopener noreferrer"
>
<Twitter className="social-icon" />
</a>
)}
</div>
</Col>
<Col md={1} className="text-center text-md-end mt-3 mt-md-0">
<motion.div whileHover={{ scale: 1.05 }}>
<Button
variant="outline-primary"
href={company.url}
target="_blank"
rel="noopener noreferrer"
className="d-flex align-items-center justify-content-center"
>
<span className="me-1">Visit</span>
<ExternalLink size={16} />
</Button>
</motion.div>
</Col>
</Row>
</Card.Body>
</Card>

<div className="ms-md-4">
{company.offers.map((offer, offerIndex) => (
<JobOfferCard
key={offer.id}
jobOffer={offer}
companyName={company.name}
index={offerIndex}
/>
))}
</div>
</motion.div>
);
};

export default CompanyCard;
7 changes: 4 additions & 3 deletions src/components/JobOffers/CompanyOffers.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { Color } from "../../styles/colors";
import { Color } from "@styles/colors";
import LinkedinIcon from "../Icons/Linkedin";
import TwitterIcon from "../Icons/Twitter";
import {
Expand All @@ -11,8 +11,9 @@ import {
OfferLocation,
OfferText,
OfferTitle,
} from "../../styles/JobOffers/JobOffers.Style";
import {CompanyProps} from "../../types/jobOffers";
} from "@styles/JobOffers/JobOffers.Style";
// @ts-expect-error some quirky
import { CompanyProps } from "@types/jobOffers";

const CompanyOffers: React.FC<React.PropsWithChildren<CompanyProps>> = ({
company,
Expand Down
86 changes: 86 additions & 0 deletions src/components/JobOffers/JobFilters.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import React, { useState } from "react";
import { Button, Col, Form, InputGroup, Row } from "react-bootstrap";
import { Filter, MapPin, Search } from "lucide-react";
// @ts-expect-error some quirky
import { motion } from "framer-motion";

interface JobFiltersProps {
onSearchChange: (value: string) => void;
onLocationChange: (value: string) => void;
onClearFilters: () => void;
}

const JobFilters: React.FC<JobFiltersProps> = ({
onSearchChange,
onLocationChange,
onClearFilters,
}) => {
const [searchTerm, setSearchTerm] = useState("");
const [location, setLocation] = useState("");

const handleSearchChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const value = e.target.value;
setSearchTerm(value);
onSearchChange(value);
};

const handleLocationChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
const value = e.target.value;
setLocation(value);
onLocationChange(value);
};

const handleClear = () => {
setSearchTerm("");
setLocation("");
onClearFilters();
};

return (
<motion.div
className="filters"
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5, delay: 0.3 }}
>
<Row>
<Col md={6} className="mb-3 mb-md-0">
<InputGroup>
<InputGroup.Text>
<Search size={18} />
</InputGroup.Text>
<Form.Control
placeholder="Search for job titles, skills, or companies"
value={searchTerm}
onChange={handleSearchChange}
/>
</InputGroup>
</Col>
<Col md={4} className="mb-3 mb-md-0">
<InputGroup>
<InputGroup.Text>
<MapPin size={18} />
</InputGroup.Text>
<Form.Select value={location} onChange={handleLocationChange}>
<option value="">All Locations</option>
<option value="Hybrid">Hybrid</option>
<option value="Remote">Remote</option>
<option value="On-site">On-site</option>
</Form.Select>
</InputGroup>
</Col>
<Col md={2} className="d-flex">
<Button
variant="outline-secondary"
className="w-100"
onClick={handleClear}
>
<Filter size={18} className="me-1" /> Clear
</Button>
</Col>
</Row>
</motion.div>
);
};

export default JobFilters;
91 changes: 91 additions & 0 deletions src/components/JobOffers/JobOfferCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
import React from "react";
import { Badge, Button, Card, Col, Row } from "react-bootstrap";
import { ExternalLink, MapPin } from "lucide-react";
// @ts-expect-error some quirky
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Another @ts-expect-error for framer-motion. Let's try to fix the root cause for these type issues.

import { motion } from "framer-motion";
// @ts-expect-error some quirky
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This @ts-expect-error for @types/jobOffers needs attention. Resolving these type suppressions will make the codebase more robust.

import { Offer as JobOffer } from "@types/jobOffers";

interface JobOfferCardProps {
jobOffer: JobOffer;
companyName: string;
index: number;
}

const JobOfferCard: React.FC<JobOfferCardProps> = ({
jobOffer,
companyName,
index,
}) => {
const cardVariants = {
hidden: { opacity: 0, y: 20 },
visible: (i: number) => ({
opacity: 1,
y: 0,
transition: {
delay: 0.1 + i * 0.08,
duration: 0.4,
ease: "easeOut",
},
}),
};

const formatJobText = () => {
if (jobOffer.text.includes("<br/>")) {
return <div dangerouslySetInnerHTML={{ __html: jobOffer.text }} />;
}
return <p className="job-text">{jobOffer.text}</p>;
};

return (
<motion.div
variants={cardVariants}
initial="hidden"
animate="visible"
custom={index}
whileHover={{ scale: 1.01 }}
className="mb-3"
>
<Card>
<Card.Body>
<Row>
<Col md={8}>
<h3 className="job-title">{jobOffer.title}</h3>
<div className="d-flex align-items-center mb-3">
<Badge className="location-badge me-2">
<MapPin size={14} className="me-1" /> {jobOffer.location}
</Badge>
<small className="text-muted">at {companyName}</small>
</div>
<div className="job-description">{formatJobText()}</div>
</Col>
<Col
md={4}
className="d-flex flex-column justify-content-center align-items-center align-items-md-end mt-3 mt-md-0"
>
<motion.div
whileHover={{ scale: 1.05 }}
whileTap={{ scale: 0.98 }}
>
<Button
variant="success"
className="apply-btn mb-2 w-100"
href={jobOffer.url}
target="_blank"
rel="noopener noreferrer"
>
Apply Now
</Button>
</motion.div>
<small className="text-muted d-flex align-items-center">
<ExternalLink size={14} className="me-1" /> Opens in a new tab
</small>
</Col>
</Row>
</Card.Body>
</Card>
</motion.div>
);
};

export default JobOfferCard;
Loading
Loading