File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<urlset xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9" xmlns : news =" http://www.google.com/schemas/sitemap-news/0.9" xmlns : xhtml =" http://www.w3.org/1999/xhtml" xmlns : mobile =" http://www.google.com/schemas/sitemap-mobile/1.0" xmlns : image =" http://www.google.com/schemas/sitemap-image/1.1" xmlns : video =" http://www.google.com/schemas/sitemap-video/1.1" >
3- <url ><loc >https://18.sesja.linuksowa.pl</loc ><lastmod >2025-01-03T21:38:55.195Z </lastmod ><changefreq >daily</changefreq ><priority >0.7</priority ></url >
4- <url ><loc >https://18.sesja.linuksowa.pl/coc</loc ><lastmod >2025-01-03T21:38:55.197Z </lastmod ><changefreq >daily</changefreq ><priority >0.7</priority ></url >
3+ <url ><loc >https://18.sesja.linuksowa.pl</loc ><lastmod >2025-08-10T03:21:11.502Z </lastmod ><changefreq >daily</changefreq ><priority >0.7</priority ></url >
4+ <url ><loc >https://18.sesja.linuksowa.pl/coc</loc ><lastmod >2025-08-10T03:21:11.502Z </lastmod ><changefreq >daily</changefreq ><priority >0.7</priority ></url >
55</urlset >
Original file line number Diff line number Diff line change 11import { Box , Flex , Link } from '@chakra-ui/react' ;
22import { useTranslation } from 'next-export-i18n' ;
33import ExportedImage from 'next-image-export-optimizer' ;
4- import { useEffect , useState } from 'react' ;
4+ import { useCallback , useEffect , useState } from 'react' ;
55import Logo from '@/assets/images/sesja_logo_jasne_biale.webp' ;
66import DefaultButton from '@/components/common/DefaultButton' ;
77import config from '@/config' ;
@@ -67,18 +67,23 @@ const Navbar = () => {
6767 { text : t ( 'menu.sponsors' ) , sectionId : 'sponsors' } ,
6868 ] . filter ( ( { text } ) => text ) as MenuProps ;
6969
70- const changeBackground = ( ) => {
70+ const changeBackground = useCallback ( ( ) => {
7171 if ( window . scrollY >= 60 ) {
7272 setBg ( 'rgba(0,0,0,1)' ) ;
7373 } else {
7474 setBg ( 'rgba(0,0,0,0)' ) ;
7575 }
76- } ;
76+ } , [ ] ) ;
7777
7878 useEffect ( ( ) => {
7979 changeBackground ( ) ;
80- window . addEventListener ( 'scroll' , changeBackground ) ;
81- } ) ;
80+
81+ window . addEventListener ( 'scroll' , changeBackground , { passive : true } ) ;
82+
83+ return ( ) => {
84+ window . removeEventListener ( 'scroll' , changeBackground ) ;
85+ } ;
86+ } , [ changeBackground ] ) ;
8287
8388 return (
8489 < Box
Original file line number Diff line number Diff line change 1- import { Provider } from '@/components/ui/provider' ;
21import type { AppProps } from 'next/app' ;
32import Head from 'next/head' ;
43import Script from 'next/script' ;
4+ import { Provider } from '@/components/ui/provider' ;
55import './particles.css' ;
66
77export default function App ( { Component, pageProps } : AppProps ) {
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export default function Home() {
3636 />
3737 < link rel = "manifest" href = "/site.webmanifest" />
3838 < link rel = "me" href = "https://fosstodon.org/@ASI" />
39+ < link rel = "preconnect" href = "https://scripts.simpleanalyticscdn.com" />
3940 </ Head >
4041 < body >
4142 < Main />
You can’t perform that action at this time.
0 commit comments