mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
sizing and navs
This commit is contained in:
26
vue3/src/utils/breakpoint_utils.ts
Normal file
26
vue3/src/utils/breakpoint_utils.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
export function homePageCols(breakpoint: string){
|
||||
switch (breakpoint) {
|
||||
case "xs": {
|
||||
return 1
|
||||
}
|
||||
case "sm": {
|
||||
return 2
|
||||
}
|
||||
case "md": {
|
||||
return 4
|
||||
}
|
||||
case "lg": {
|
||||
return 5
|
||||
}
|
||||
case "xl": {
|
||||
return 6
|
||||
}
|
||||
case "xxl": {
|
||||
return 7
|
||||
}
|
||||
default: {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user