getting ready for desktop version

This commit is contained in:
2024-10-03 09:46:23 +02:00
committed by juli0n21
parent 23b6ccb12a
commit 144caf2991
8 changed files with 76 additions and 41 deletions

View File

@@ -0,0 +1,15 @@
export const isMobile = () => {
return window.innerWidth < 640;
};
export const isTablet = () => {
return window.innerWidth >= 640 && window.innerWidth < 1024;
};
export const isPc = () => {
return window.innerWidth >= 1024 && window.innerWidth <= 1980;
};
export const matchesBreakpoint = (min, max = Infinity) => {
return window.innerWidth >= min && window.innerWidth <= max;
};