Skip to content

Commit

Permalink
eager
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskls committed Nov 22, 2024
1 parent 884c970 commit 4bc3061
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions pages/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export function Home() {
<meta property="og:url" content="https://www.neringos-siuvimo-studija.lt" />
<meta property="og:site_name" content="Neringos Siuvimo Studija" />
<meta property="og:type" content="website" />
<link rel="preload"as="image" href="/images/siuvykla_siauliai_750.webp" type="image/webp"/>
</Helmet>
<Header />
<main className={style.merriweatherRegular}>
Expand Down
19 changes: 16 additions & 3 deletions src/components/about/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,25 @@ import style from './About.module.css';
import { useEffect } from 'react';

export const PictureAbout = () => {
return (<picture >
<source srcSet="images/siuvykla_siauliai_750.webp" media="(max-width: 780px)" />
<img width={750} height={1350} className={style.img} src="images/siuvykla_siauliai_900.webp" alt="siuvykla siuvimo studija šiauliuose" />
return (<picture>
<source
srcSet="/images/siuvykla_siauliai_750.webp"
media="(max-width: 780px)"
type="image/webp"
/>
<img
width={750}
height={1350}
className={style.img}
src="/images/siuvykla_siauliai_900.webp"
alt="siuvykla siuvimo studija šiauliuose"
loading="eager"
decoding="async"
/>
</picture>
)
};

export function About() {
useEffect(() => {
window.scrollTo(0, 0);
Expand Down
2 changes: 1 addition & 1 deletion src/components/contacts/Contacts.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
.map {
width: 100%;
padding: 5px;
margin-top: 20px;
margin-top: 10px;
}
.touched {
background-color: var(--heading-color);
Expand Down

0 comments on commit 4bc3061

Please sign in to comment.