Wykres commitów

991 Commity (ddd82abc9e419b84ad3a31d7c50e931ee5fd4755)

Autor SHA1 Wiadomość Data
Nina Paley 1f978f7073
Add files via upload 2021-04-03 07:08:39 -05:00
Nina Paley 66235e6aca
Add files via upload 2021-04-03 07:00:08 -05:00
Nina Paley b81a1f3c35
Add files via upload 2021-04-03 06:50:57 -05:00
Nina Paley 9d6350c440
Add files via upload 2021-04-03 06:43:12 -05:00
Nina Paley 0cf4be39a0
Add files via upload 2021-04-03 06:38:27 -05:00
Nina Paley f0b6f641b3
Add files via upload 2021-04-02 22:41:50 -05:00
Nina Paley 569e97be94
Delete atom.svg 2021-04-02 22:41:14 -05:00
Nina Paley 7a22548b30
Delete snake.svg 2021-04-02 22:41:01 -05:00
Nina Paley 52b26f0b1a
Add files via upload 2021-04-02 22:37:15 -05:00
Atul Varma a13f989ab3 Use history.pushState() for internal links. 2021-04-02 21:17:44 -04:00
Atul Varma b28a0114b9 Fix typo in README. 2021-04-02 19:10:44 -04:00
Atul Varma 8be5792838 Make mandala the default page. 2021-04-02 19:02:40 -04:00
Atul Varma 1cbe2b6d22
Improve layout (#74)
This improves the layout of all our pages to look more like the mandala page.

Additionally, some form widgets now have better layout, and the header takes up less vertical space.

At an implementation level, the component hierarchy of pages has been inverted to make this kind of layout easier.  Now fully laid-out pages are contained within `<Page>` components that are at the top of the component hierarchy, and which are defined by each specific page (mandala, creature, vocabulary, etc).

I had to do a few architectural things to avoid circular imports, though; most notably, this involved the creation of a new React context called a `PageContext`.

It uses CSS grid, which should be pretty well-supported amongst recent browsers.
2021-04-02 19:00:29 -04:00
Atul Varma 296da4fc9b Fix build by deleting atom.svg. 2021-04-02 18:56:02 -04:00
Nina Paley 098d8c0f75
Add files via upload 2021-04-02 16:36:41 -05:00
Nina Paley ba82729372
Add files via upload
introduced pitchfork
2021-04-02 16:35:41 -05:00
Nina Paley e971fdacc4
Add files via upload 2021-04-02 16:03:17 -05:00
Nina Paley 48bb8a4234
Add files via upload 2021-04-02 15:57:46 -05:00
Nina Paley fb2b434298
Add files via upload 2021-04-02 15:53:47 -05:00
Nina Paley 8e681d8567
Add files via upload
introduced circle_spiral
2021-04-02 15:50:31 -05:00
Nina Paley 73909590fe
Add files via upload
introduced atom
2021-04-02 15:38:02 -05:00
Atul Varma e48b5f9bae
Factor out a SvgCompositionContext. (#72)
This fixes #67 by making the background color selection/randomization code more DRY via the addition of a new `SvgCompositionContext` and a `CompositionContextWidget`.

It also documents the `SvgSymbolContext` type, and moves the "randomize colors" button closer to the actual colors.
2021-04-02 16:33:07 -04:00
Atul Varma 7c05f78fd9 Only allow 20 max symbols in mandala. Fixes #69. 2021-04-02 15:37:58 -04:00
Atul Varma 2c53e5caab
Add a 'randomize colors' button to mandala and creature pages. (#68)
The random colors are currently terrible!  Maneesh will help us make them better. :)

Also, there is some annoying code duplication going on here between the creature and mandala pages, but I really wanted to add the button to both and also want to eat dinner soon, so I am filing #67 and saving the refactoring for later.
2021-03-30 20:59:45 -04:00
Atul Varma 5e74ce34ea
In mandala, add checkbox to invert every other symbol. (#66)
Fixes #64.
2021-03-29 15:23:37 -04:00
Atul Varma 63e9101d42
Make mandala UI layout a bit less terrible (#65)
The key phrase here is **less terrible**, as opposed to **good**.

Right now if the mandala gets too big for the page, it will just overflow and the remainder won't be visible (not even via scrolling).  This is intentional, though, as per @ninapaley's suggestion:

> I'm hoping you can change the way the image keeps resizing its canvas, and keeps justifying left.
> Maybe have an oversize canvas with the ring pinned to the center, and all the adjustment sliders
> on the right? Then they won't disappear if the canvas is too big. Also! I have an idea for an
> animated cycle that would require the symbols to eventually outgrow the canvas area and disappear.

I'm not super happy with this CSS, it doesn't feel terribly maintainable.  Ah well, maybe we can improve it later.
2021-03-29 13:03:54 -04:00
Atul Varma f6c95f1ffb Don't fill if showing specs on mandala. 2021-03-29 08:23:53 -04:00
Atul Varma 9aa0c6118f Add a search field in vocabulary page. 2021-03-29 07:58:50 -04:00
Atul Varma a917f40da9 Move page list to header for easier navigation. 2021-03-29 07:48:56 -04:00
Atul Varma 3090d9fd89
Add an 'Export PNG' button (#63)
This fixes #62.
2021-03-29 07:22:09 -04:00
Atul Varma 85533fa111 Use an eye w/ radius 300 for default mandala. 2021-03-29 06:54:36 -04:00
Atul Varma a70b4dfab3 Add a 'place behind first circle' checkbox. 2021-03-28 16:49:38 -04:00
Atul Varma d45cb3fb5c Add docs to AttachmentTransform. 2021-03-28 16:32:20 -04:00
Atul Varma b70ec50e3a Add symbol scaling/rotation options. 2021-03-28 16:22:36 -04:00
Atul Varma 05c44eeb51 Make scaling and rotation adjustable on both circles. 2021-03-28 09:14:54 -04:00
Atul Varma a5c4bd737b Put first mandala symbol at front of z-order. 2021-03-28 08:50:04 -04:00
Atul Varma 50eeb9a25b Always have a symbol pointing up in mandala. Allow negative radius. 2021-03-28 08:48:36 -04:00
Atul Varma d742f4156a Add an optional second mandala circle (#24). 2021-03-28 08:27:57 -04:00
Atul Varma c76bcc2d5a Factor out checkbox.tsx. 2021-03-28 07:38:32 -04:00
Atul Varma 131c1f31cb
Orient mandala symbols around their anchor point. (#60)
This orients the mandala symbols around their anchor point, rather than the center of their bounding box (#24).
2021-03-28 07:24:16 -04:00
Atul Varma 6fa6e0ba8a Simplify getDownloadFilename(). 2021-03-28 06:48:29 -04:00
Atul Varma 3f366c112a Rename SvgTransforms to SvgTransform, allow it to take a single transform. 2021-03-28 06:39:06 -04:00
Nina Paley 1a5acd9e46
Delete shield.svg
I'm in a deleting mood.
2021-03-27 17:27:43 -05:00
Nina Paley 1e69d9e68a
Add files via upload 2021-03-27 17:16:07 -05:00
Nina Paley 392209e9cc
Delete M_logo.svg
Removing for now.
2021-03-27 17:00:07 -05:00
Nina Paley d5df0e4125
Delete leg_eagle.svg
noping for now. May return later.
2021-03-27 16:50:29 -05:00
Nina Paley de168a6eeb
Delete man_bottom.svg
Nixing for now. Will return once we have mated halves supported.
2021-03-27 16:48:38 -05:00
Nina Paley 2a6c00a238
Add files via upload 2021-03-27 16:45:42 -05:00
Atul Varma d73116509c
Move SVG vocabulary from JSON to TS. (#59)
Ugh, we need to write out a TypeScript file instead of importing the JSON directly because otherwise the TS compiler will spend an inordinate amount of time doing type inference, which massively slows down type-checking (especially in IDEs and such).

The TS file actually uses `JSON.parse` on a stringified version of the JSON instead of just inlining the JSON itself because [apparently it's much faster][1].

[1]: https://www.bram.us/2019/11/25/faster-javascript-apps-with-json-parse/
2021-03-27 16:00:20 -04:00
Atul Varma 3095e5b16a Add randomize button to mandala page. 2021-03-27 15:19:36 -04:00