Commit Graph
85 Commits
Author SHA1 Message Date
Kyle Geib fd18703d1a ISSUE-045 - Chyron Body - Taking a moment to rename some reducers to be more consistant (verb in front). 2022-02-09 13:55:52 -05:00
Kyle Geib 16c29df42f ISSUE-045 - Venetian Blinds - Improvements to Venetian Blinds prototype controls.
Now you have 10 different options (5 for position flag and 5 for driver portrait) to play with, as well as a slot selector to choose different starting corners.
I have to admit that I didn't want to deal with type juggling with DriverId so I do a pretty hacky job. This is just for prototyping purposes so it really shouldn't be much of a focus for me, right?
Added an overall delay prop for VenetianBlindsTransition so that I don't need to deal with special timing issues for the DriverChyron animation in the future.
2022-02-08 15:14:04 -05:00
Kyle Geib 9518f934ae ISSUE-045 - Venetian Blinds - Moved visibility state outside of the Transition component and into the workspace. 2022-02-08 12:29:37 -05:00
Kyle Geib b1b3b62d3a ISSUE-045 - Venetian Blinds - Added blinking animation for the position number.
Activated with a blink duration. I had to consider a manual delay before starting. The animation delay didn't really work as the number would be visible until the animation started. I'm sure there's a solution but I'm a little lazy to figure it out at the moment.
Otherwise, for future reference: iirc the delay would be 250ms and the duration would be 400ms.
2022-02-08 12:23:32 -05:00
Kyle Geib 177272df6f ISSUE-045 - Venetian Blinds - Calibrated portrait example to be more accurate to real example.
Added opacity props for the filter to allow for an opacity rule on the entire filter - as is apparent with the real position flag example.
2022-02-08 12:19:54 -05:00
Kyle Geib 78073b1eb2 ISSUE-045 - Venetian Blinds - Wipe, blinds closing, and blinds color all working. 2022-02-08 11:27:27 -05:00
Kyle Geib 3ce590d794 ISSUE-045 - Venetian Blinds - Improvements to prototype state management by using partial state updates, which are pretty useful.
More props for <VenentianBlindsTransition>.
2022-02-07 16:30:22 -05:00
Kyle Geib 14e4c0569d ISSUE-045 - Venetian Blinds - Figured out some trig to get this to work. The angle of the wipe is now customizable and no longer limited to 45°. 2022-02-07 16:02:15 -05:00
Kyle Geib c07d364584 ISSUE-045 - Venetian Blinds - After some trial and error I've got a performant and sensible wipe solution using a clip-path mask.
Figuring this out of great because these kinds of clip paths are used in other places as well so this is good practice to start with.
2022-02-07 12:33:42 -05:00
Kyle Geib 38aeedea65 ISSUE-045 - Venetian Blinds - Working on the basic concept of the blinds filter.
Created a new workspace to test this all out in.
Offering two differing test subjects: A position flag and a driver portrait. This is useful because the images need to be treated differently compared to simple divs.
Figured out a way of tinting both divs and images: Severely offset internal outline styling with semi-opaque colors.
Moved DriverPortrait into its own component. Makes sense as portraits appear in various places. Plan to offer prop between front-facing and 3/4 facing photos (I have a collection of both).
Created a new "Position" type that can be used, with a special function, to place elements through a common prop.
2022-02-04 15:24:55 -05:00
Kyle Geib e747a7d7c3 ISSUE-045 - Venetian Blinds - Starting work on the "venetian blinds" transition effect.
I'll be starting with re-creating this effect on the PositionFlag component. That involves first separating out the PositionFlag into its own common component (it's used on the timing board as well, so it makes sense).
Adding new overlays for prototyping work.
2022-02-04 10:02:23 -05:00
Kyle Geib 5e86b92ca5 ISSUE-045 - Busy-work, relocating and renaming AngledFlagWorkspace (Workspace, not WorkSpace). 2022-02-04 09:42:22 -05:00
Kyle Geib 4c61a24c21 ISSUE-033 - Created a new component, <IndexHeading> that is a lightly stylized new header element for basic indexes.
I also adjusted the 404 page to now include the menu for the sake of usability.
2022-02-03 12:26:23 -05:00
Kyle Geib c6411950f3 ISSUE-047 - Exported animated versions of a pair of styled-components of mine.
Nothing special. Just something I wanted to change now.
2022-02-03 11:28:14 -05:00
Kyle Geib 8d8eaf29cf ISSUE-043 - Created a decent and simple solution for spacing pairs of medium chyrons just using a flexbox div.
Also took the time to crop some overlay images.
2022-02-03 11:20:19 -05:00
Kyle Geib bf121aa032 ISSUE-018 - Added pixel size indicator for overlay images.
Added new global rule for touch-action so that I don't need to keep setting it up for elements that utilize use-gesture.
2022-02-02 17:27:54 -05:00
Kyle Geib 8144622407 ISSUE-041 - Portraits now working!
Quite happy with the results. Was far less fiddly than I was expecting.
One interesting thing I had to do was introduce a new BaseContainer div component so that I could let the portraits overflow the BaseBackground component (by being put in a parent component with no overflow rules).
2022-02-02 15:24:58 -05:00
Kyle Geib 72b6fc60ef ISSUE-041 - Added front-facing driver portraits
Covered all 2021 drivers. I mocked up portraits for Albon and Zhou in 2022. I also have 2022 Bottas (Alfa) and Russell (Merc) waiting elsewhere.
Added Mazepin portrait overlay image as well to work from.
2022-02-02 15:22:16 -05:00
Kyle Geib 8eeae7714f Adhoc - Fix case for redBull.svg. 2022-02-01 21:25:08 -05:00
Kyle Geib b39d005e23 ISSUE-035 - Styled the Team flags individually.
Went through a lot of trouble to style the team flags to be wider than the country flags. This called for a troubling amount of ternary statements in the angled flag components.
I'm content with the results.
2022-02-01 18:24:48 -05:00
Kyle Geib bd1892ab17 ISSUE-035 - Took some work but have proper type checking for AngledFlag props and have updated everything necessary.
Styling is still to come. Only have Ferrari working.
I've discovered that the team flags are wider than the country flags. So I'll be tackling that necessary change in the next commit before dealing with styling.
2022-02-01 12:57:40 -05:00
Kyle Geib 57647f6488 ISSUE-035 - Added SVG files for each team, minified to save space. 2022-02-01 11:50:49 -05:00
Kyle Geib 064d684fa8 ISSUE-035 - Added team flag overlays.
Added new workspace for team flags and adjusted custom workspace and tools to allow for work.
2022-01-31 19:03:23 -05:00
Kyle Geib 0625361a18 ISSUE-032 - Have Chyron prototyping controls configured and hooked up.
Support for double driver chyrons.
Serious refactoring of the BroadcastGraphics states.
Simplification and improvements to how the chyron states work (I was using interfaces in a way that was incompatible with reality and have fixed it).
2022-01-31 18:24:25 -05:00
Kyle Geib d5b653da9d ISSUE-032 - Making some organizational changes to how the Chyron director controls are built. Have more work to perform but making a checkpoint commit to keep track of my work so far. 2022-01-31 12:44:12 -05:00
Kyle Geib 5e7940a151 ISSUE-032 - Progress checkpoint.
Have a lot of the scaffolding in place. Next step is to make the Chyron controls actually work.
Dramatic re-thinking of the chyron state definitions.
Lots of goofy type following tricks in broadcastGraphics.ts.
2022-01-28 17:53:50 -05:00
Kyle Geib 536d81fb61 ISSUE-038 - Switched SlotSelector from using strings for onChange() to simply returning the selected index.
As well as just being a little bit better this was necessary to support specifically typed values. We were always going to be selecting between strictly strings. This should allow us to be more flexible.
Also, to avoid a minor bug with switching the Overlay tool with it being invisible SlotSelector now supports being disabled.
2022-01-28 14:36:50 -05:00
Kyle Geib d9b6f6fbfa ISSUE-039 - Simplified MEX and ESP flags, saving 130 and 50kb, respectively.
Also removed the non-angled flags as, well, I don't currently have a use for them and might never.
2022-01-28 10:58:48 -05:00
Kyle Geib ae4a7e7818 ISSUE-032 - Adjusted my ReactRouter solution to drop the need for an interim path element. I am also now using WorkspacesRoute for more things, which I think is appropriate. 2022-01-28 10:12:12 -05:00
Kyle Geib f9f7b739ee ISSUE-032 - Found a fix to the Hooks rendering error by using ReactRouter. 2022-01-28 09:16:50 -05:00
Kyle Geib e676c7a95a ISSUE-032 - Progress checkpoint. Have a working "selectedCars" modifying component named GridSelection.
Have a work-in-progress AngledFlag prototype controller that relying on a central state property in the Workspaces portion of the store. It's a bit hacky. But it made me realize that my desire to do silly things with extending interfaces won't work that way I'm going to need to rely on them in the future. I cannot demand more specific data from a state that uses a less specific interface. Rookie mistake.
I am also at the mercy of a design flaw when it comes to using React Hooks: The way I organize Workspaces makes React very angry. When I switch between workspaces that rely on hooks to render correctly the whole thing explodes.

I believe I need to use components directly to correctly unmount - instead of the very hacky switch statement I have in the form of fetchBroadcastGraphic().

I might need to try seeing if ReactRouter can provide my solution.
2022-01-27 17:47:49 -05:00
Kyle Geib 5d009a3d70 ISSUE-032 - Defined a great number of new state types for use with the race event's state, the broadcast director's controls, and the broadcast graphics states.
Taking a second to make a commit to save my progress so far.
2022-01-27 13:39:52 -05:00
Kyle Geib b6cac82042 ISSUE-031 - Almost forgot (I closed issue and merged the branch too early): Here's the important improvement that switches to using a clipped image div for the AngledFlag. There is now a carefully sized "bottom" flag that gives us a simulated parallax look. There is a simple xOffset that should allow us to animate two flags sliding over each other in the future.
Updated the use of "National" to "Country" and renamed some directories.
Added a second larger AngledFlag to the Workspace (because changes that affect the larger size might be hidden by a smaller flag).
2022-01-25 19:43:32 -05:00
Kyle Geib 1dc8e8bc15 ISSUE-031 - Improvements to the look of National Flag. Adjusted the sizing and spacing to better support larger chyron heights. 2022-01-25 13:32:31 -05:00
Kyle Geib 562667bdd7 ISSUE-031 - Finished creating DriverNumber styles.
Added missing flag for Poland (both original and 2:1 "angled" style).
Added correct 2:1 flags for Mexico and Monaco.
More overlay images (to help with driver number coloring).
2022-01-24 17:51:35 -05:00
Kyle Geib 4a9c124832 ISSUE-031 - Big update. AngledFlag component is born!
It's not 100% complete - I still need to add the second, slightly offset sub flag that goes beneath the main flag, creating a sort of refractive-glass/parallax effect.

Needed to add a new workspace. Thankfully it's pretty easy to add a new workspace. So, kinda nice.

Did a lot of work making 2:1 versions of each flag in vector. Was a bit of a pain in the ass.

Renamed a prop for ProgressSlider, "onBarColor" because prefixing a prop with "on" is special for React and it gets upset and spits out an error.
2022-01-24 16:15:43 -05:00
Kyle Geib 55e07a444e ISSUE-031 - Little fix to prevent locking overlay images to the bleedover areas when loading images that are larger than the previous image. 2022-01-21 18:39:20 -05:00
Kyle Geib dd7f49108a ISSUE-031 - Added new overlay images with some variations.
Added a great new feature: an active outline styling rule. When dragging the overlay image around there's now a red outline to help match edges that are otherwise black-on-black; making them very difficult to align.
2022-01-21 18:38:03 -05:00
Kyle Geib a7ca0aecb0 ISSUE-031 - Refactor improvements to ChyronDriver component. Relying less on absolute positioning and hard-coded values.
I realized that there are some variations of the driver chyron. Such as the one without a position flag.
2022-01-21 18:21:08 -05:00
Kyle Geib db14bf902f ISSUE-031 - Progress checkpoint.
A lot of work going on here.
* Moved WorkspaceControls component to a new sub directory
* Renamed overlay images
* Started a static ChyronDriverBasic component (using Hamilton as an example)
* Created a fancy DriverNumber rendering system
* Defined DriverNumber style for Mercedes and no one else yet
* A bunch of new states for the grid: cars, drivers, teams, etc
* Defined a bunch of data for the drivers and teams
* Created another string utility function to generate repeat strings; unit tests included
2022-01-21 14:14:45 -05:00
Kyle Geib 1c38137480 Adhoc - Cleanup.
Removed a console.log() I left behind. Whoops.
2022-01-20 13:25:23 -05:00
Kyle Geib 65a9f523d4 ISSUE-021 - Added color customization props. Nice disabled look.
Okay. I'm content with what I've made. It's not really up to the level of "oh man, package this up as a library and put it out on NPM!" but it works OK for my specific situation.
2022-01-19 17:37:05 -05:00
Kyle Geib d4f8e9bffe ISSUE-021 - Percentage indicator has been added. Slider can now be disabled.
I ran into too many issues with the percentage value being buggy when the overlay wasn't visible.
I'm still running into issues where useMeasure isn't populating fast enough and the left prop isn't being set correctly.
2022-01-19 16:55:16 -05:00
Kyle Geib daae51e06d ISSUE-021 - Simplified the ProgressSlider, dropping the container component and instead letting the entire progress bar be dragged. 2022-01-18 16:49:45 -05:00
Kyle Geib 8170ba3f86 ISSUE-021 - Discovered the animated() wrapper solution to using Styled-Components that solves some problems.
Currently working on making the draggable activation area larger.
2022-01-18 15:42:43 -05:00
Kyle Geib 9925eae4cc ISSUE-021 - Another progress commit. Have issues with combining spring animated components and Styled-Components. 2022-01-18 15:18:39 -05:00
Kyle Geib 97c5752102 ISSUE-021 - Progress commit. Have a rough version of ProgressSlider component done. Still needs some work. 2022-01-18 14:53:52 -05:00
Kyle Geib 83dec9d782 ISSUE-028 - Improved the spacing of Toggle component. Slight reorganization to the OverlayControl component. 2022-01-18 11:50:02 -05:00
Kyle Geib 3fce5d05b9 ISSUE-020 - Transitions in place and working.
Also fixed an issue with eslinter that was reporting some incorrect unused var warnings. Removed some ignore rules with it being fixed.
2022-01-17 13:26:38 -05:00
Kyle Geib 9b3ae2dae2 ISSUE-020 - Making a checkpoint in my work. SlotSelector written a little better. Animation work coming next. 2022-01-14 17:39:48 -05:00