Skip to content

Commit

Permalink
slider
Browse files Browse the repository at this point in the history
  • Loading branch information
mluena committed Jun 11, 2024
1 parent cd2e418 commit 0a5804b
Show file tree
Hide file tree
Showing 9 changed files with 180 additions and 82 deletions.
5 changes: 5 additions & 0 deletions marketing/public/images/repository/decoration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed marketing/public/images/repository/thumb_1.png
Binary file not shown.
Binary file removed marketing/public/images/repository/thumb_2.png
Binary file not shown.
2 changes: 1 addition & 1 deletion marketing/src/components/carousel/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const Carousel: React.FC<CarouselProps> = ({
<div className="w-full">
<div
role="presentation"
className="overflow-hidden"
className="overflow-hidden space-x-5"
onMouseOver={() => {
if (timer.current) clearInterval(timer.current);
setPause(true);
Expand Down
2 changes: 1 addition & 1 deletion marketing/src/containers/methodology/webinar/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Webinar: FC = () => (
</div>
<a
href="https://bit.ly/3GbWOMa"
className="font-semibold block w-[195px] h-[82px] flex items-center hover:cursor-pointer justify-center border-2 border-white focus-visible:ring-0 focus-visible:outline-0"
className="font-semibold w-[195px] h-[82px] flex items-center hover:cursor-pointer justify-center border-2 border-white focus-visible:ring-0 focus-visible:outline-0"
>
Watch now
</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import { FC, useState } from 'react';
import FadeIn from 'components/fade';

import Wrapper from 'containers/wrapper';
import Carousel from 'components/carousel/component';
import Image from 'next/image';
import Link from 'next/link';

import { motion } from 'framer-motion';

import Carousel from 'components/carousel/component';
import FadeIn from 'components/fade';
import Icon from 'components/icon';
import Wrapper from 'containers/wrapper';

import cx from 'classnames';

import ARROW_SVG from 'svgs/ui/arrow-top-right.svg?sprite';
import ARROW_SVG from 'svgs/ui/arrow-right.svg?sprite';

import { SLIDES } from './slides';

Expand All @@ -15,6 +21,23 @@ const DiscoverOurJourney: FC = () => {
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">
<Wrapper>
<Image
src="/images/repository/decoration.svg"
alt="Landgriffon"
width={79.61}
height={70}
priority
/>
<motion.div
className="relative py-12 md:py-32"
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.75, delay: 0.1 }}
>
<h2 className="text-4xl font-black uppercase md:text-6xl font-display">
DISCOVER MORE, READ OUR BLOGS
</h2>
</motion.div>
<FadeIn>
<div className="space-y-10 pb-20">
<div className="space-y-11">
Expand All @@ -23,9 +46,9 @@ const DiscoverOurJourney: FC = () => {
Discover our journey
</h2>
<Link href="/contact">
<a className="flex space-x-4 text-orange-500 font-semibold">
<a className="flex space-x-4 text-orange-500 font-semibold items-center">
<span>Discover more about us</span>
<Icon icon={ARROW_SVG} className="w-4 h-4 rotate-12" />
<Icon icon={ARROW_SVG} className="w-4 h-4 fill-orange-500 -rotate-45" />
</a>
</Link>
</div>
Expand All @@ -40,11 +63,29 @@ const DiscoverOurJourney: FC = () => {
autoplay={10000}
options={{
duration: 0,
circular: true,
circular: false,
moveType: 'freeScroll',
}}
/>

<div className="flex justify-center py-5 mt-10 space-x-5">
<div className="flex justify-center py-5 mt-10 space-x-5 items-center">
<button
type="button"
aria-label="dot-element"
onClick={() => {
setSlide(slide - 1);
}}
disabled={slide === 0}
className="relative text-orange-500"
>
<Icon
icon={ARROW_SVG}
className={cx({
'w-6 h-6 rotate-180 font-bold fill-orange-500 stroke-2': true,
'opacity-50': slide === 0,
})}
/>
</button>
{SLIDES.map((sl, i) => {
return (
<button
Expand All @@ -62,6 +103,23 @@ const DiscoverOurJourney: FC = () => {
</button>
);
})}
<button
type="button"
aria-label="dot-element"
onClick={() => {
setSlide(slide + 1);
}}
disabled={slide === SLIDES.length - 1}
className={cx({
'w-6 h-6 rotate-180 font-bold fill-orange-500 stroke-2': true,
'opacity-50': slide === SLIDES.length - 1,
})}
>
<Icon
icon={ARROW_SVG}
className="w-6 h-6 font-bold fill-orange-500 stroke-2 rotate-180"
/>
</button>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 0a5804b

Please sign in to comment.