Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
27 changes: 27 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"gsap": "^3.13.0",
"lenis": "^1.3.1",
"moment": "^2.30.1",
"motion": "^12.11.0",
"primeicons": "^7.0.0",
"primereact": "^10.9.1",
"react": "^18.3.1",
Expand Down
6 changes: 3 additions & 3 deletions src/2023/Home/components/Faqs/Faqs.style.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { styled } from "styled-components";
import { Color } from "../../../../styles/colors";
import { motion } from "framer-motion";
import { BIG_BREAKPOINT } from "../../../../constants/BreakPoints";
import { Color } from "@styles/colors";
import { motion } from "motion/react";
import { BIG_BREAKPOINT } from "@constants/BreakPoints";

export type FaqCardType = {
faq: {
Expand Down
6 changes: 3 additions & 3 deletions src/2023/Home/components/Home/Style.Home.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { styled } from "styled-components";
import { Color } from "../../../../styles/colors";
import { motion } from "framer-motion";
import { BIG_BREAKPOINT } from "../../../../constants/BreakPoints";
import { Color } from "@styles/colors";
import { motion } from "motion/react";
Comment on lines +2 to +3
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

Consider using a direct import from the motion package instead of motion/react if the component is intended to be used outside of React components. This might provide more flexibility and avoid unnecessary dependencies if the core animation logic is needed elsewhere.

Suggested change
import { Color } from "@styles/colors";
import { motion } from "motion/react";
import { Color } from "@styles/colors";
import { motion } from "motion";

import { BIG_BREAKPOINT } from "@constants/BreakPoints";

export const StyledHomaImage = styled.div`
padding: 70px 0 40px;
Expand Down
8 changes: 4 additions & 4 deletions src/2023/Home/components/SpeakersCarousel/SpeakerSwiper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { FC } from "react";
import { Autoplay, Parallax } from "swiper";
import { Swiper, SwiperSlide } from "swiper/react";
import { styled } from "styled-components";
import { Color } from "../../../../styles/colors";
import { Color } from "@styles/colors";
import "swiper/swiper-bundle.min.css";
import { Link } from "react-router";
import { ROUTE_SPEAKER_DETAIL } from "../../../../constants/routes";
import { useFetchSpeakers } from "../../../../hooks/useFetchSpeakers";
import { useSentryErrorReport } from "../../../../hooks/useSentryErrorReport";
import { ROUTE_SPEAKER_DETAIL } from "@constants/routes";
import { useFetchSpeakers } from "@hooks/useFetchSpeakers";
import { useSentryErrorReport } from "@hooks/useSentryErrorReport";

const StyledSlideImage = styled.img`
display: block;
Expand Down
2 changes: 1 addition & 1 deletion src/2023/Home/components/Sponsors/Sponsors.style.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { styled } from "styled-components";
import { BIG_BREAKPOINT } from "@constants/BreakPoints";
import { motion } from "framer-motion";
import { motion } from "motion/react";

export const StyledSponsorsContainer = styled.div`
position: relative;
Expand Down
6 changes: 3 additions & 3 deletions src/2023/SpeakerDetail/Speaker.style.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { styled } from "styled-components";
import { Color } from "../../styles/colors";
import { Color } from "@styles/colors";
import {
BIG_BREAKPOINT,
LARGE_BREAKPOINT,
TABLET_BREAKPOINT,
} from "../../constants/BreakPoints";
import { motion } from "framer-motion";
} from "@constants/BreakPoints";
import { motion } from "motion/react";

export const StyledContainer = styled.div`
background-color: ${Color.BLUE};
Expand Down
6 changes: 3 additions & 3 deletions src/2023/SpeakerDetail/SpeakerDetail.style.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { styled } from "styled-components";
import { motion } from "framer-motion";
import { BIG_BREAKPOINT } from "../../constants/BreakPoints";
import { Color } from "../../styles/colors";
import { motion } from "motion/react";
import { BIG_BREAKPOINT } from "@constants/BreakPoints";
import { Color } from "@styles/colors";
import { Link } from "react-router";
/* eslint-disable @typescript-eslint/no-unused-expressions*/
export const StyledTalkDescription = styled(Link)`
Expand Down
6 changes: 3 additions & 3 deletions src/2023/Speakers/Speakers.style.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { styled } from "styled-components";
import { motion } from "framer-motion";
import { BIG_BREAKPOINT, TABLET_BREAKPOINT } from "../../constants/BreakPoints";
import { Color } from "../../styles/colors";
import { motion } from "motion/react";
import { BIG_BREAKPOINT, TABLET_BREAKPOINT } from "@constants/BreakPoints";
import { Color } from "@styles/colors";

export const StyledSpeakersSection = styled.section`
display: flex;
Expand Down
6 changes: 3 additions & 3 deletions src/2023/TalkDetail/Style.MeetingDetail.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { styled } from "styled-components";
import { BIG_BREAKPOINT, LARGE_BREAKPOINT } from "../../constants/BreakPoints";
import { motion } from "framer-motion";
import { Color } from "../../styles/colors";
import { BIG_BREAKPOINT, LARGE_BREAKPOINT } from "@constants/BreakPoints";
import { motion } from "motion/react";
import { Color } from "@styles/colors";

export const StyledContainer = styled.div`
padding-top: 2rem;
Expand Down
6 changes: 3 additions & 3 deletions src/2024/Home/Style.Home.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { styled } from "styled-components";
import { motion } from "framer-motion";
import { Color } from "../../styles/colors";
import { BIG_BREAKPOINT, BIGGER_BREAKPOINT } from "../../constants/BreakPoints";
import { motion } from "motion/react";
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

Consider using a direct import from the motion package instead of motion/react if the component is intended to be used outside of React components. This might provide more flexibility and avoid unnecessary dependencies if the core animation logic is needed elsewhere.

Suggested change
import { motion } from "motion/react";
import { motion } from "motion";

import { Color } from "@styles/colors";
import { BIG_BREAKPOINT, BIGGER_BREAKPOINT } from "@constants/BreakPoints";

export const StyledHomeImage = styled.div`
padding: 70px 0 40px;
Expand Down
6 changes: 3 additions & 3 deletions src/2024/Speakers/Speakers.style.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { styled } from "styled-components";
import { motion } from "framer-motion";
import { BIG_BREAKPOINT, TABLET_BREAKPOINT } from "../../constants/BreakPoints";
import { Color } from "../../styles/colors";
import { motion } from "motion/react";
import { BIG_BREAKPOINT, TABLET_BREAKPOINT } from "@constants/BreakPoints";
import { Color } from "@styles/colors";

export const StyledSpeakersSection = styled.section`
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion src/2024/Sponsors/Sponsors.style.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { styled } from "styled-components";
import { BIG_BREAKPOINT } from "@constants/BreakPoints";
import { motion } from "framer-motion";
import { motion } from "motion/react";

export const StyledSponsorsContainer = styled.div`
position: relative;
Expand Down
8 changes: 4 additions & 4 deletions src/components/JobOffers/JobsCard.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { FC } from "react";
import { styled } from "styled-components";
import { Color } from "../../styles/colors";
import { motion } from "framer-motion";
import { Color } from "@styles/colors";
import { motion } from "motion/react";
import LocationIcon from "../../assets/images/LocationIcon.svg";
import {
StyledFaqCard,
StyledFaqText,
StyledFaqTitle,
} from "../../views/Home/components/Faqs/Faqs.style";
import { Offer } from "../../types/jobOffers";
} from "@views/Home/components/Faqs/Faqs.style";
import { Offer } from "@types/jobOffers";

export type IJobsCardProps = {
offer: Offer;
Expand Down
4 changes: 2 additions & 2 deletions src/components/LeftHashWithText/LeftHashWithText.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { FC } from "react";
import { motion } from "framer-motion";
import { motion } from "motion/react";
import { styled } from "styled-components";
import { TLateralHashWithText } from "../RightHashWithText/RightHashWithText";
import { MOBILE_BREAKPOINT } from "../../constants/BreakPoints";
import { MOBILE_BREAKPOINT } from "@constants/BreakPoints";

const StyledLeftSlashWrapper = styled(motion.div)`
display: flex;
Expand Down
6 changes: 3 additions & 3 deletions src/components/Navigation/Style.Navigation.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { styled } from "styled-components";
import { motion } from "framer-motion";
import { Color } from "../../styles/colors";
import { motion } from "motion/react";
import { Color } from "@styles/colors";
import { NavLink } from "react-router";
import { MAX_WIDTH, MOBILE_BREAKPOINT } from "../../constants/BreakPoints";
import { MAX_WIDTH, MOBILE_BREAKPOINT } from "@constants/BreakPoints";

export const StyledBlueHamburger = styled(motion.img)`
height: 2.5rem;
Expand Down
4 changes: 2 additions & 2 deletions src/components/RightHashWithText/RightHashWithText.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FC } from "react";
import { motion } from "framer-motion";
import { motion } from "motion/react";
import { styled } from "styled-components";
import { MOBILE_BREAKPOINT } from "../../constants/BreakPoints";
import { MOBILE_BREAKPOINT } from "@constants/BreakPoints";

export type TLateralHashWithText = {
color: string;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Swiper/SpeakersCarousel.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FC } from "react";
import { Link } from "react-router";
import LessThanBlueWhiteIcon from "../../assets/images/LessThanBlueIcon.svg";
import { motion } from "framer-motion";
import LessThanBlueWhiteIcon from "@assets/images/LessThanBlueIcon.svg";
import { motion } from "motion/react";
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

Consider using a direct import from the motion package instead of motion/react if the component is intended to be used outside of React components. This might provide more flexibility and avoid unnecessary dependencies if the core animation logic is needed elsewhere.

import { motion } from "motion";

import { styled } from "styled-components";
import SpeakerSwiper from "./SpeakerSwiper";
import { Color } from "@styles/colors";
Expand Down
9 changes: 3 additions & 6 deletions src/components/YearSpecific/Speakers/Speakers.style.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { styled } from "styled-components";
import { motion } from "framer-motion";
import {
BIG_BREAKPOINT,
TABLET_BREAKPOINT,
} from "../../../constants/BreakPoints";
import { Color } from "../../../styles/colors";
import { motion } from "motion/react";
import { BIG_BREAKPOINT, TABLET_BREAKPOINT } from "@constants/BreakPoints";
import { Color } from "@styles/colors";

export const StyledSpeakersSection = styled.section`
display: flex;
Expand Down
Loading
Loading