Commit Graph
16 Commits
Author SHA1 Message Date
Jean-Philippe Sirois efb1fe724b fix: correctly show header on generic content pages 2021-06-01 00:18:01 -04:00
Jean-Philippe Sirois fd7005c9df ui: tweak sticky header styles to match figma sketch 2021-06-01 00:08:17 -04:00
Jean-Philippe Sirois e7307a0893 fix: invalid css 2021-06-01 00:08:17 -04:00
Jean-Philippe Sirois cc740502e9 fix: move to a more stable scroll API to avoid jumping 2021-06-01 00:08:17 -04:00
jumpyapple fdb6083c6b fix: AbortController not found, resize text in Box 2021-06-01 00:02:56 -04:00
jumpyapple 8a5970107f feat: create sticky version of components involved
Notices problems are
- Links in content area are higher (in terms of z value) than the sticky header.
- The sidebar header for table of contents seems to be positioned higher than it should.
- Text size of breadcrumb and title are too big.
- Flickering problem on pages that are short (less content/one page content).
2021-06-01 00:02:56 -04:00
jumpyapple 5ba1e86672 fix: window is not available during gatsby build
Check if window is available, and set initial value for `state.scrollY`.
2021-06-01 00:02:56 -04:00
jumpyapple 38e1a4ba56 feat: add a proof of concept
Using debouncing idea described in
https://css-tricks.com/styling-based-on-scroll-position/ to record
scrollY value and render the `BoxedTitle` base on the value. The box is
hidden when scrollY is greater than 30.

The class-style React component is used to register an event listener
for scrolling event.
2021-06-01 00:02:56 -04:00
Jean-Philippe Sirois 262e8b7fe6 ui(header): tweak header background, and single title to be less awkward 2020-11-12 01:33:23 -05:00
Travis Kohlbeck d0dbde67c6 Center resource header box on firefox mobile 2020-09-15 18:59:42 -04:00
Travis Kohlbeck 21e6d6caf2 Reposition Header Box for Firefox 2020-09-08 00:38:56 -04:00
Jean-Philippe Sirois 59a965911a refact: convert all svg images to React components 2020-09-02 07:38:55 -04:00
Jean-Philippe Sirois c08e8446b5 ui: tweak header, make it much smaller 2020-07-24 13:28:31 -04:00
Jean-Philippe Sirois f4e40a889e ui(resources): tweak typo of header 2020-05-26 03:49:17 -04:00
Jean-Philippe Sirois a1283334b3 style: format codebase 2020-05-19 21:57:49 -04:00
Jean-Philippe Sirois ab8e8edd5a ui: first pass on redesign (#228) 2020-05-11 02:00:57 -04:00