feat: responsive design grid (#1354)
* Responsive design grid * Addressed PR feedback * Bump Quartz version 4.3.1 => 4.4.0 * Moved page-header into center * Updated docs with new layouts * Sync updated version number with package-lock * Table of Content scrollbar auto * Reset node_modules * Updated layout images * Fixed tablet layout * Finilazed layout images
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 65 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/images/quartz-layout-desktop.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/images/quartz-layout-desktop.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 36 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/images/quartz-layout-mobile.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/images/quartz-layout-mobile.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 36 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/images/quartz-layout-tablet.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/images/quartz-layout-tablet.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 35 KiB  | 
@@ -13,15 +13,19 @@ export interface FullPageLayout {
 | 
			
		||||
  beforeBody: QuartzComponent[] // laid out vertically
 | 
			
		||||
  pageBody: QuartzComponent // single component
 | 
			
		||||
  afterBody: QuartzComponent[] // laid out vertically
 | 
			
		||||
  left: QuartzComponent[] // vertical on desktop, horizontal on mobile
 | 
			
		||||
  right: QuartzComponent[] // vertical on desktop, horizontal on mobile
 | 
			
		||||
  left: QuartzComponent[] // vertical on desktop and tablet, horizontal on mobile
 | 
			
		||||
  right: QuartzComponent[] // vertical on desktop, horizontal on tablet and mobile
 | 
			
		||||
  footer: QuartzComponent // single component
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
These correspond to following parts of the page:
 | 
			
		||||
 | 
			
		||||
![[quartz layout.png|800]]
 | 
			
		||||
| Layout                          | Preview                             |
 | 
			
		||||
| ------------------------------- | ----------------------------------- |
 | 
			
		||||
| Desktop (width > 1200px)        | ![[quartz-layout-desktop.png\|800]] |
 | 
			
		||||
| Tablet (800px < width < 1200px) | ![[quartz-layout-tablet.png\|800]]  |
 | 
			
		||||
| Mobile (width < 800px)          | ![[quartz-layout-mobile.png\|800]]  |
 | 
			
		||||
 | 
			
		||||
> [!note]
 | 
			
		||||
> There are two additional layout fields that are _not_ shown in the above diagram.
 | 
			
		||||
@@ -33,6 +37,23 @@ Quartz **components**, like plugins, can take in additional properties as config
 | 
			
		||||
 | 
			
		||||
See [a list of all the components](component.md) for all available components along with their configuration options. You can also checkout the guide on [[creating components]] if you're interested in further customizing the behaviour of Quartz.
 | 
			
		||||
 | 
			
		||||
### Layout breakpoints
 | 
			
		||||
 | 
			
		||||
Quartz has different layouts depending on the width the screen viewing the website.
 | 
			
		||||
 | 
			
		||||
The breakpoints for layouts can be configured in `variables.scss`.
 | 
			
		||||
 | 
			
		||||
- `mobile`: screen width below this size will use mobile layout.
 | 
			
		||||
- `desktop`: screen width above this size will use desktop layout.
 | 
			
		||||
- Screen width between `mobile` and `desktop` width will use the tablet layout.
 | 
			
		||||
 | 
			
		||||
```scss
 | 
			
		||||
$breakpoints: (
 | 
			
		||||
  mobile: 800px,
 | 
			
		||||
  desktop: 1200px,
 | 
			
		||||
);
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Style
 | 
			
		||||
 | 
			
		||||
Most meaningful style changes like colour scheme and font can be done simply through the [[configuration#General Configuration|general configuration]] options. However, if you'd like to make more involved style changes, you can do this by writing your own styles. Quartz 4, like Quartz 3, uses [Sass](https://sass-lang.com/guide/) for styling.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user