Commit Graph
117 Commits
Author SHA1 Message Date
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 73bba2cfb5 Merge pull request #30 from TiE23/ISSUE-021
Issue 021
2022-01-19 17:39:28 -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 b7ab3dbcc1 Merge pull request #29 from TiE23/ISSUE-028
ISSUE-028 - Improved the spacing of Toggle component. Slight reorgani…
2022-01-18 11:50:59 -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 d575e1c15c Merge pull request #26 from TiE23/ISSUE-020
Issue 020
2022-01-17 13:28:08 -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
Kyle Geib 35ca424dd6 ISSUE-020 - Plain, static SlotSelector component defined. Not too fancy looking.
To save space and reduce redundant data I created a utility function called findPrefixCount() and wrote a suite of tests for it.
2022-01-14 17:16:27 -05:00
Kyle Geib 6a8e5f28b2 Merge branch 'ISSUE-025' into ISSUE-020 2022-01-14 15:17:46 -05:00
Kyle Geib df868f1126 ISSUE-025 - Partial failure. Realized that maybe the only way to get the dimensions of the loaded images is to measure them and include them with the file name definitions. To load an image at the center of the element would require writing information at the same time we read it. It's not a race condition; it's more like the chicken and the egg.
I'm sure, if I really wanted to, I could find a two step process of loading at 0 opacity, finding the dimensions, and then moving it to the center and revealing it. But I don't have the desire.

Still. I went ahead and added workspace properties to the central state and read from them when it makes sense.
2022-01-14 15:17:23 -05:00
Kyle Geib 1ca2137a5b ISSUE-020 - Mocked up new slot selector and (since it'll happen later) opacity controls. 2022-01-14 14:49:19 -05:00
Kyle Geib 82c0d65187 Merge pull request #24 from TiE23/ISSUE-022
ISSUE-022 - Well. That just works. Awesome.
2022-01-14 14:14:51 -05:00
Kyle Geib 399b904f07 ISSUE-022 - Well. That just works. Awesome. 2022-01-14 14:14:13 -05:00
Kyle Geib fb48517bac Merge pull request #23 from TiE23/ISSUE-017
Issue 017
2022-01-14 14:04:36 -05:00
Kyle Geib f51df58d17 ISSUE-017 - Implemented image overlay solution that I'm happy with.
Shout-out to Blair Wadman for revealing a method to display an image at 1:1 pixel scale and having the div that houses it automatically match that size without any fuss. (Here: https://befused.com/css/flexbox-prevent-image-shrinking/).
2022-01-14 14:03:56 -05:00
Kyle Geib 8780d2a9db Merge branch 'ISSUE-009' into ISSUE-017 2022-01-13 16:21:56 -05:00
Kyle Geib 7999f15c20 ISSUE-009 - Alternative useDimensions added.
Turns out... they're not as reliable. In testing I had the menu's height regularly fail to provide its height data.
2022-01-13 16:21:23 -05:00
Kyle Geib aba5cc20be ISSUE-017 - Implemented drag bounds that consider the dimensions of dragged element.
This is bugged as the resize observer I'm using doesn't update itself when I reveal the OverlayItem from hiding.
2022-01-13 15:00:21 -05:00
Kyle Geib 861d702a27 ISSUE-017 - Overlay state is streamlined.
Total change to workspaces. Now an object instead of a list.
Utilizing workspace overlays list - prototype currently colors the mock item.
Reset overlay on workspace change.
Improved combined dragging/transition element behavior.
2022-01-13 14:16:09 -05:00
Kyle Geib a6a5eb7751 ISSUE-017 - Figured out how to allow for Transition and Dragging on the same element.
The secret? Don't! Use another throw-away div and put it around the draggable div.
Also adopted animated.div into the Styled-Component. Really cool how it just works.
2022-01-12 14:52:38 -05:00
Kyle Geib 9541306894 ISSUE-017 - Basic drag functionality added.
I cannot combine it with transition handling any top/left transitions.
2022-01-12 14:43:04 -05:00
Kyle Geib 1ba5e99532 ISSUE-017 - Basic animated mounting added. 2022-01-12 13:07:33 -05:00
Kyle Geib 61b60b9819 ISSUE-017 - Improvements to a number of things.
* Moved FullScreenContainer in WorkspacesRoute to make scrolling much better. Seriously, 100% works better.
* Simplified dimensions state actions to a shared one.
* Abandoned the noisy and useless "AnimatedBG" type.
* Added workspace dimensions state (I'll need this later to prevent off-screen dragging).
* Placed OverlayDisplay component in PreviewWindow, where it makes more sense. I'll still allow it to roam around outside of it, though.
* Renamed "menu" dimensions to "mainMenu".
* Improved initNewOverlayItem action to support setting visible.
* Correct handling of showing the OverlayItemContainer.
* Simplified the initial position of a new OverlayItem to a simple initial value instead of setting it in the middle of provided dimensions.
* Made PreviewWindow `position: relative` to allow absolute positioning of OverlayItem from it.
* Added importHelpers to tsconfig because VSCode was complaining about it.
2022-01-11 19:12:21 -05:00
Kyle Geib 506491eed9 ISSUE-017 - Initial work on the Overlay Tool.
Have basic state management in place and a number of simple prototypes in place to practice floating a div above the interface.
2022-01-11 17:12:05 -05:00
Kyle Geib 110d00d7bb Merge pull request #19 from TiE23/ISSUE-005
Issue 005 - Add Workspaces
2022-01-10 18:14:31 -05:00
Kyle Geib dd4df61fec ISSUE-005 - Added indicator "I" and "O", emulating an accessibility option found in iOS.
Added a subtle background color transition.
Gave up on the idea of giving the toggle circle a shadow (not worth the hassle). But if I did decide to do that, I'd be able to animate the toggle circle fairly easily, I think.
2022-01-10 18:11:54 -05:00
Kyle Geib 3151c58d9d ISSUE-005 - Emulating an iOS toggle switch and hooked it all up. Good practice.
Think there is some improvements I can make, though. The toggle circle on iOS has the drop shadow - not the body (with an inset shadow). But because I'm using absolute positioning the shadow overflows outside the the toggle body. So. I'll need to switch to using some other positioning rule
2022-01-10 17:28:34 -05:00
Kyle Geib 7c2654ba51 ISSUE-005 - Added a scrolling effect to the PreviewWindow. Added scroll functionality to overflow-y for the WorkspaceList box. 2022-01-07 19:00:16 -05:00
Kyle Geib ab4c8eefa6 ISSUE-005 - Implemented a PreviewWindow component. Improvements to the way that the workspaces are generated. Using mock components. 2022-01-07 18:03:27 -05:00
Kyle Geib 5dcc3f3940 ISSUE-005 - Further work on Workspaces. Re-using MenuItem component and figuring out a new method for hover-over highlighting using SASS & selection. 2022-01-07 12:47:12 -05:00
Kyle Geib 02132bdbe2 ISSUE-005 - Initial work commit. Have some basic routing done and some mocked-up design of how the pay may look.
Made improvements to the LayoutGrid component, supporting richer definition of grid columns and rows.
2022-01-06 18:40:59 -05:00
Kyle Geib 262aca9d73 Merge pull request #16 from TiE23/ISSUE-011
Issue 011
2022-01-06 14:11:17 -05:00
Kyle Geib f3e4ac318c ISSUE-011 - Hooked up Redux. Switched to using embedded route. Using central store to keep track of menu height information. Refactored fullscreen calculations. 2022-01-06 14:08:43 -05:00
Kyle Geib 3add2f3237 ISSUE-011 - Initial Redux work.
Installed reduxjs/toolkit.
Added first slice and the basic store for the project.
2022-01-05 18:25:32 -05:00
Kyle Geib 9dd279520a Merge pull request #15 from TiE23/ISSUE-013
ISSUE-013 - Refactored the method that isActive and isHovered work fo…
2022-01-05 15:19:30 -05:00
Kyle Geib 977e433dd9 ISSUE-013 - Refactored the method that isActive and isHovered work for the MainMenu nav buttons. 2022-01-05 15:17:38 -05:00
Kyle Geib e722ac9d7d Adhoc - Added index.ts for fonts.ts. Mostly because I like it this way. 2022-01-04 16:37:44 -05:00
Kyle Geib 12c05ce865 Merge pull request #14 from TiE23/ISSUE-010
ISSUE-010 - Added TTF and Woff2 format fonts for Formula 1's typeface…
2022-01-04 16:34:28 -05:00