Skip to content

Commit

Permalink
Image optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
anilcan-kara committed Aug 27, 2023
1 parent 021a2c9 commit b1ea522
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 21 deletions.
15 changes: 11 additions & 4 deletions app/demo-1/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,24 @@ export default function Demo1Page() {

<Image
src="/demo-1-1.jpg"
width={3600}
height={6000}
width={1920}
height={1200}
alt="Welcome to Bomonti Cafe & Restaurant"
/>

<Image
src="/demo-1-2.jpg"
width={3600}
height={9160}
width={1920}
height={1200}
alt="Bomonti Cafe & Restaurant"
/>

<Image
src="/demo-1-3.jpg"
width={1920}
height={5018}
alt="Contact Bomonti Cafe & Restaurant"
/>
</div>
);
}
19 changes: 13 additions & 6 deletions app/demo-2/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,25 @@ export default function Demo2Page() {
<BackToHomeButton />

<Image
src="/demo-2-1.jpg"
width={3600}
height={6000}
src="/demo-1-1.jpg"
width={1920}
height={1200}
alt="Welcome to Bomonti Cafe & Restaurant"
/>

<Image
src="/demo-2-2.jpg"
width={3600}
height={9160}
src="/demo-1-2.jpg"
width={1920}
height={1200}
alt="Bomonti Cafe & Restaurant"
/>

<Image
src="/demo-1-3.jpg"
width={1920}
height={5018}
alt="Contact Bomonti Cafe & Restaurant"
/>
</div>
);
}
19 changes: 13 additions & 6 deletions app/demo-3/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,25 @@ export default function Demo3Page() {
<BackToHomeButton />

<Image
src="/demo-3-1.jpg"
width={3600}
height={6000}
src="/demo-1-1.jpg"
width={1920}
height={1200}
alt="Welcome to Bomonti Cafe & Restaurant"
/>

<Image
src="/demo-3-2.jpg"
width={3600}
height={9160}
src="/demo-1-2.jpg"
width={1920}
height={1200}
alt="Bomonti Cafe & Restaurant"
/>

<Image
src="/demo-1-3.jpg"
width={1920}
height={5018}
alt="Contact Bomonti Cafe & Restaurant"
/>
</div>
);
}
10 changes: 5 additions & 5 deletions app/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import Link from 'next/link';
import Choose from './choose';

const demos = [
{ id: 1, title: 'DEMO-1', image: '/demo-1.jpg', link: '/demo-1' },
{ id: 2, title: 'DEMO-2', image: '/demo-2.jpg', link: '/demo-2' },
{ id: 3, title: 'DEMO-3', image: '/demo-3.jpg', link: '/demo-3' },
{ id: 1, title: 'DEMO-1', image: '/demo-1-thumb.jpg', link: '/demo-1' },
{ id: 2, title: 'DEMO-2', image: '/demo-1-thumb.jpg', link: '/demo-2' },
{ id: 3, title: 'DEMO-3', image: '/demo-1-thumb.jpg', link: '/demo-3' },
];

export default function Home() {
Expand All @@ -31,8 +31,8 @@ export default function Home() {
<Image
className="w-full"
src={demo.image}
width={180}
height={380}
width={300}
height={1315}
alt={demo.title}
/>
</div>
Expand Down
Binary file modified public/demo-1-1.jpg
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 public/demo-1-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/demo-1-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/demo-1-thumb.jpg
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 public/demo-1.jpg
Binary file not shown.
Binary file removed public/demo-2.jpg
Binary file not shown.
Binary file removed public/demo-3.jpg
Binary file not shown.

0 comments on commit b1ea522

Please sign in to comment.