Commit c454067
authored
Make site mobile responsive (#26)
## Summary
This PR closes #19 and makes the site (all 3 pages) mobile responsive
without changing the intended UI on desktop, except for the non-homepage
table banner which has been removed to remain stylistically consistent
with the homepage banner, responsive and more maintainable. No content
has been edited.
A live demo can be tested here
[https://gitgitgadget.ritovision.com](https://gitgitgadget.ritovision.com)
## What has changed
- Viewport tag added
- The header table is replaced with a responsive block display
- non-homepage pages no longer use the table banner, instead sharing the
homepage banner structure
- Left and right margin spacing reduced on mobile breakpoint
- Banner title decreased on small ≤450 screen sizes to fit without
overflow behaviors
- Horizontal broken page scrolling caused by content not fitting on
small screens is resolved by:
- making image sizes responsive
- making code blocks use overflow scroll
- making long text strings break apart and wrap down to the next line as
needed
<details><summary><strong>Before and After
Screenshots</strong></summary>
<br /><br />
**Homepage - BEFORE**
<img width="340" alt="homepage-before"
src="https://github.com/user-attachments/assets/10420fa1-34ae-4544-abcf-203791b7028b"
/>
<br /><br />
**Homepage - AFTER**
<img width="340" alt="homepage-after"
src="https://github.com/user-attachments/assets/64f90c4a-561e-472a-b1d5-cdcf4666af16"
/>
<br /><br />
**Architecture - BEFORE**
<img width="340" alt="architecture-before"
src="https://github.com/user-attachments/assets/b7b167d8-3c90-484c-bd5a-fae0a479cbc1"
/>
<br /><br />
**Architecture - AFTER**
<img width="340" alt="architecture-after"
src="https://github.com/user-attachments/assets/466da586-2ec9-499b-9f50-afbb538e74c4"
/>
<br /><br />
**Reply-to-this - BEFORE**
<img width="340" alt="reply-to-this-before"
src="https://github.com/user-attachments/assets/87008963-5a2e-4da6-afc4-f4ea07bf46c4"
/>
<br /><br />
**Reply-to-this - AFTER**
<img width="340" alt="reply-to-this-after"
src="https://github.com/user-attachments/assets/01ee2946-c1cd-4c39-9493-de1c1af2d275"
/>
<br /><br />
---
**Desktop Homepage - BEFORE**
<img width="1920" alt="home-desktop-before"
src="https://github.com/user-attachments/assets/e0c1c6f6-19c6-407b-bb25-1ec864f9b7e8"
/>
<br /><br />
**Desktop Homepage - AFTER**
*Notice the layout still looks and scales the same*
<img width="1920" alt="home-desktop-after"
src="https://github.com/user-attachments/assets/f2eabd4e-ff17-4738-a299-cb51d018dc04"
/>
<br /><br />
</details>File tree
3 files changed
+32
-18
lines changed- assets/sass
- layouts
- _default
- partials
3 files changed
+32
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
29 | 47 | | |
30 | 48 | | |
31 | 49 | | |
| |||
60 | 78 | | |
61 | 79 | | |
62 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
63 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
64 | 91 | | |
65 | 92 | | |
66 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 12 | | |
0 commit comments