1
0
Fork 0
Commit graph

83 commits

Author SHA1 Message Date
Joost De Cock
24e9cd8980 feat(lab): Menu for design options 2022-01-25 12:39:29 +01:00
Joost De Cock
b662f19223 chore(lab): Restructured components 2022-01-25 11:22:48 +01:00
Joost De Cock
82c4242088 feat(fs.lab): LabDraft component 2022-01-25 11:22:09 +01:00
Joost De Cock
83ee572a36 feat(fs.lab): Keep gist in local storage 2022-01-25 10:39:30 +01:00
Joost De Cock
f577f054ef feat(fs.lab): Handle mode switching 2022-01-25 10:29:47 +01:00
Joost De Cock
490f48f726 fix(fs.shared): Linter warnings 2022-01-25 10:03:10 +01:00
Joost De Cock
e57d6244a6 fix(fs.shared): Bug in swipehandlers spreaded props 2022-01-25 09:01:41 +01:00
Joost De Cock
fde0cb10fc fix(fs.shared): pass render prop for altmenu 2022-01-25 08:31:54 +01:00
Joost De Cock
22b25c0c5d wip(fs.lab): Work on workbench components 2022-01-25 08:31:06 +01:00
Joost De Cock
8703983f2f feat(fs.shared): Added some more icons 2022-01-25 08:29:52 +01:00
Joost De Cock
2ea353a475 chore(fs.dev): Webpack aliases to load local code from source
These changes force webpack to load the local pacakges (like
patterns and so on) from source, rather than from a compiled bundle.
This means that the lab site will reload whenever one makes changes
to pattern code.
2022-01-24 12:34:29 +01:00
Joost De Cock
4eaa903bea fix(fs.dev): Small issue in theme picker 2022-01-24 09:06:28 +01:00
Joost De Cock
54aefa8437 wip: Started working on new development environment 2022-01-22 17:55:03 +01:00
Joost De Cock
f4243868d4 fix(fs.dev): Children are a bad idea 2022-01-20 11:04:41 +01:00
Joost De Cock
2234155052 chore: Fixed linter warnings 2022-01-20 09:07:38 +01:00
Joost De Cock
25995944d9 feat(fs.shared): Handle true/false in Example component 2022-01-19 13:05:47 +01:00
Joost De Cock
0bffa95167 feat(fs.shared): Support for _options prefix in Example component 2022-01-19 12:37:12 +01:00
Joost De Cock
f5877d9abe feat(fs.shared): Add copy-to-clipboard. Closes #1519 2022-01-16 18:47:47 +01:00
Joost De Cock
cf961b039e fix(fs.dev): Aside top margin. Closes #1661 2022-01-16 13:48:06 +01:00
Joost De Cock
149ad90feb feat(fs.share): Recurse in ReadMore component 2022-01-16 12:21:36 +01:00
Joost De Cock
342da23651 fix(fs.dev): Close search/menu when navigating 2022-01-01 20:33:52 +01:00
Joost De Cock
d6c37e7a3e fix(fs.dev): Some linter warnings 2021-12-31 13:52:27 +01:00
Joost De Cock
2b021e4223 feat(fs.dev): Implemented search 2021-12-31 10:15:51 +01:00
Joost De Cock
8f165dbe6d feat(fs.dev): Initial search implementation 2021-12-31 08:27:13 +01:00
Joost De Cock
09c2b89aed fix(fs.dev): Force data-theme update with key prop
This is a replacement for the hack I implemented in
bb901c4d8a

It accomplishes the same effect, but with just setting the key prop.
Sadly, it does not work with just setting the key prop to the theme
but forcing the key prop to be re-set by including the date does the
trick.

To be clear: This is still a hack and I'd love to avoid it (or just
understand the right way to handle this) but for now it will do.
2021-12-31 06:46:13 +01:00
Joost De Cock
90e361d4ae fix(fs.dev): Chevron size 2021-12-30 19:16:55 +01:00
Joost De Cock
1ddba2b3b2 fix(fs.dev): Remove debug output 2021-12-30 18:54:42 +01:00
Joost De Cock
4433720075 fix(fs.dev): Theme picker mobile theming 2021-12-30 18:53:56 +01:00
Joost De Cock
71675062b8 feat(fs.dev): Don't darken nagivation on mobile 2021-12-30 18:42:49 +01:00
Joost De Cock
dc24287d12 wip(fs.dev): Better padding 2021-12-30 18:17:10 +01:00
Joost De Cock
c065e6ec23 feat(fs.dev): Hide navbar when scrolling 2021-12-30 17:56:04 +01:00
Joost De Cock
43a89a85ad feat(fs.dev): moved theme picker to header 2021-12-30 17:55:46 +01:00
Joost De Cock
bb901c4d8a fix(fs.dev): (hackish) workaround for theme prop update issue
This is a workaround for the following problem that I can't seem
to understand.

This JSX code:

<p data-theme={props.app.theme}>{props.app.theme}</p>

Is rendered as:

<p data-theme="light">dark</p>

This happens only upon initial page load because on the server
side we don't know the user's preferred theme. So we start with
the default (light).

Then, as the app bootstraps in the browser, it updated the content
of the P tag with the new theme (dark).
However, for reasons that I really don't understand, it does not
update the `data-theme` attribute.

So this works around that be forcing a different component for each
theme that has the data-theme hardcoded. By force-rendering a different
component, we can be certain React has no choice be to re-render the
entire tag.

If anybody could explain to me why this happen, I'd gladly buy you
a coffee or something.
2021-12-30 16:52:28 +01:00
Joost De Cock
1bc0b4985c wip(fs.dev): Troubleshooting SSR themeing issues 2021-12-30 14:23:02 +01:00
Joost De Cock
e1ca53f52c fix(fs.dev): Make sidebar dark as suggested by @hellgy 2021-12-29 18:58:20 +01:00
Joost De Cock
b59c5036ed feat(fs.dev): Added OG intro for description 2021-12-28 20:01:59 +01:00
Joost De Cock
d71a8246ac feat(fs.dev): Layout changes after initial feedback 2021-12-28 17:09:45 +01:00
Joost De Cock
1c0b8458e5 fix(fs.shared): Links in navigation 2021-12-28 16:29:06 +01:00
Joost De Cock
453a26b868 fix(fs.shared): Remove debug statement 2021-12-28 16:23:52 +01:00
Joost De Cock
1369241c95 feat(fs.shared): Updated mdx components 2021-12-28 16:12:09 +01:00
Joost De Cock
14a56e4617 feat(fs.shared): Allow passing className to Popout 2021-12-28 16:11:46 +01:00
Joost De Cock
c0af5c37d3 feat(fs.shared): Added comment popout 2021-12-28 12:24:24 +01:00
Joost De Cock
cbc9571b8d fix(fs.shared): code whitespace 2021-12-28 12:24:06 +01:00
Joost De Cock
5156fb6ee7 fix(fs.shared): Whitespace wrap in code blocks 2021-12-28 09:05:27 +01:00
Joost De Cock
9ef46c502a chore(fs.dev): Prebuild 2021-12-27 17:33:31 +01:00
Joost De Cock
c28a5a84a6 fix(fs.shared): Full-width fix 2021-12-27 15:16:43 +01:00
Joost De Cock
0d4cf95f70 feat(fs.shared): Use entities for right left arrows 2021-12-27 14:59:32 +01:00
Joost De Cock
8b665fa881 fix(fs.dev): Updated viewBox for logo 2021-12-27 14:42:01 +01:00
Joost De Cock
d0864e00c9 feat(fs.dev): Ported icons to one file per icon 2021-12-27 14:30:10 +01:00
Joost De Cock
788846c677 chore(fs.dev): Better popouts on mobile 2021-12-27 12:10:26 +01:00