Skip to content

Commit

Permalink
filters and animation card
Browse files Browse the repository at this point in the history
  • Loading branch information
mluena committed May 17, 2024
1 parent 3add815 commit 055f733
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
10 changes: 6 additions & 4 deletions marketing/src/containers/repository/component.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React, { useEffect } from 'react';

import Hero from 'containers/repository/hero';
import DataProviders from 'containers/repository/data-providers';
import Newsletter from 'containers/newsletter';
import ScrollDown from 'containers/scroll-down';

import Hero from './hero';
import Resources from './resources';
import Newsletter from 'containers/newsletter';
import DiscoverOurJourney from './discover-our-journey';

const Repository: React.FC = () => {
useEffect(() => {
Expand All @@ -27,9 +28,10 @@ const Repository: React.FC = () => {

return (
<>
<ScrollDown theme="light" />
<Hero />
<Resources />
<DataProviders />
<DiscoverOurJourney />
<Newsletter />
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Carousel from 'components/carousel/component';
import Link from 'next/link';
import Icon from 'components/icon';

import { AnimatePresence, motion } from 'framer-motion';
import ARROW_SVG from 'svgs/ui/arrow-top-right.svg?sprite';

type CardTypes = {
Expand All @@ -15,12 +16,39 @@ type CardTypes = {
description: string;
};

const arrow = {
default: {
opacity: 0,
x: -55,
transition: {
duration: 0,
type: 'tween',
delay: 0,
},
},
hover: {
opacity: 1,
x: 0,
transition: {
duration: 0.6,
type: 'tween',
},
},
};

const Card: FC<CardTypes> = ({ thumb, title, description }: CardTypes) => (
<div className="rounded-[38px] w-full border border-[#1D3786] border-opacity-90 space-y-5 flex flex-col p-14 items-start hover:bg-blue-900 hover:cursor-pointer">
<motion.div
initial="default"
whileHover="hover"
className="rounded-[38px] w-full border border-[#1D3786] border-opacity-90 space-y-5 flex flex-col p-14 items-start hover:bg-blue-900 hover:cursor-pointer"
>
<Image src={thumb} width={78} height={74} alt={title} layout="intrinsic" />
<h5 className="font-bold text-xl flex">{title}</h5>
<p className="font-light flex">{description}</p>
</div>
<motion.div variants={arrow} className="w-full justify-end flex">
<Icon icon={ARROW_SVG} className="w-14 h-11 rotate-45" />
</motion.div>
</motion.div>
);

const SLIDES = [
Expand Down Expand Up @@ -106,7 +134,7 @@ const SLIDES = [
},
];

const DataProviders: FC = () => {
const DiscoverOurJourney: FC = () => {
const [slide, setSlide] = useState(0);
return (
<section className="relative py-12 space-y-12 bg-blue-600 bg-cover md:space-y-64 md:py-36 overflow-hidden text-white">
Expand Down Expand Up @@ -168,4 +196,4 @@ const DataProviders: FC = () => {
);
};

export default DataProviders;
export default DiscoverOurJourney;

0 comments on commit 055f733

Please sign in to comment.