New reducers for event slice that allow increasing of car distances, awarding fastest laps, and changing the statuses of cars.
Updating more types to enums, which are just better in most cases as far as I can tell.
Fixed the bottom rounding functionality between running and retired cars in a reliable way.
Relying more on car.position in the Timing Tower, as it should be.
Timing Board is the combination of all elements on the left side of the screen, including the Status Indicator component (not written yet) that is visible whenever there are cars on track.
There ain't no way in hell I'm going to be able to convincingly animate the AngledFlag without spending maybe an entire week on it.
I would honestly want to re-do the entire AngledFlag component from scratch before trying to animate it. The combination of rules and styles and all that is just too confusing to attempt right now. So, a basic slide- and fade-in I think is decent enough work.
It's not a perfect emulation (it fades out rather than runs out with a tail) but I'm very happy with it.
Also updated the wipe animation to take advantage of map().
Made TeamName component more customizable with its timing. Now all animations in Chyron are configurable from outside of the styled-component definition.
New Debug option for ChyronContainer so that this animation modifier can never accidentally be active in the main broadcast view.
Added DarkBG option to Workspace PreviewWindow.
Fixed issue with blindsColorFadeDelay not being correct.
Calibrating the timing of animations and transitions better.
Added the subtle TeamColorBar squeeze look with outline and a wide clip-path adjustment.
Massive change to the way that Chyrons are built and deployed.
Still need to figure out what's wrong with the portrait and the Venetian blinds causing issues.
Still need to make the team name flicker.
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.
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.
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.
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.
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).
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.
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.
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.