Skip to content

Commit

Permalink
better resolution for images in homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsingal committed Oct 11, 2023
1 parent e674415 commit bc9ea02
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 23 deletions.
Binary file modified marketing/public/images/home/what/screen_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified marketing/public/images/home/what/screen_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified marketing/public/images/home/what/screen_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 8 additions & 23 deletions marketing/src/containers/home/what/component.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import cx from 'classnames';
import Image from 'next/image';

import Wrapper from 'containers/wrapper';
import FadeIn from 'components/fade';
Expand All @@ -11,11 +12,8 @@ const SLIDES = [
{
id: '1',
content: (
<div className="w-full">
<div
className="w-full border-4 border-white pb-[45%] bg-cover"
style={{ backgroundImage: `url('/images/home/what/screen_1.png')` }}
/>
<div className="w-full w-[944px] h-[446px] border-4 border-white overflow-hidden">
<Image src="/images/home/what/screen_1.png" width="936" height="442" alt="Traceability" />
</div>
),
description: (
Expand All @@ -30,11 +28,8 @@ const SLIDES = [
{
id: '2',
content: (
<div className="w-full">
<div
className="w-full border-4 border-white pb-[45%] bg-cover"
style={{ backgroundImage: `url('/images/home/what/screen_2.png')` }}
/>
<div className="w-full w-[944px] h-[446px] border-4 border-white overflow-hidden">
<Image src="/images/home/what/screen_2.png" width="936" height="442" alt="Confidence" />
</div>
),
description: (
Expand All @@ -49,11 +44,8 @@ const SLIDES = [
{
id: '3',
content: (
<div className="w-full">
<div
className="w-full border-4 border-white pb-[45%] bg-cover"
style={{ backgroundImage: `url('/images/home/what/screen_3.png')` }}
/>
<div className="w-full w-[944px] h-[446px] border-4 border-white overflow-hidden">
<Image src="/images/home/what/screen_2.png" width="936" height="442" alt="Strategize" />
</div>
),
description: (
Expand Down Expand Up @@ -154,14 +146,7 @@ const What: React.FC = () => {
})}
</div>

<Carousel
slide={slide}
slides={SLIDES}
onChange={(i) => {
setSlide(i);
}}
autoplay
/>
<Carousel slide={slide} slides={SLIDES} onChange={setSlide} autoplay={false} />
</FadeIn>
</Wrapper>
</div>
Expand Down

1 comment on commit bc9ea02

@vercel
Copy link

@vercel vercel bot commented on bc9ea02 Oct 11, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

landgriffon-marketing – ./marketing

landgriffon-marketing-vizzuality1.vercel.app
landgriffon-marketing-git-dev-vizzuality1.vercel.app
landgriffon-marketing.vercel.app

Please sign in to comment.