Commit 5da48f7
authored
feat: a few ui changes (#772)
### TL;DR
Added torch glow effect to the authentication screen and enhanced the TorchGlow component to support an "always show" mode.
### What changed?
- Added an `alwaysShow` prop to the `TorchGlow` component with a default value of `false`
- Modified the visibility logic in `TorchGlow` to respect the new `alwaysShow` prop
- Integrated the `TorchGlow` component into the `AuthScreen` with `alwaysShow={true}`
- Added a ref to the cave background in `AuthScreen` to properly position the glow effect
- Fixed the width of the auth form container to be exactly 320px instead of max-width
### How to test?
1. Open the authentication screen
2. Verify that the torch glow effect appears when moving the cursor over the cave background
3. Confirm the effect works regardless of dark/light mode or cursor glow settings
4. Check that the auth form has a fixed width of 320px
### Why make this change?
The torch glow effect enhances the visual appeal of the cave-themed authentication screen, creating a more immersive and engaging user experience. The `alwaysShow` option allows the effect to be used in specific contexts regardless of user preferences, while still respecting those preferences elsewhere in the application.1 parent 7dd14df commit 5da48f7
File tree
2 files changed
+18
-6
lines changed- apps/twig/src/renderer
- components
- features/auth/components
2 files changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | | - | |
47 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
92 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
93 | 99 | | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| |||
112 | 119 | | |
113 | 120 | | |
114 | 121 | | |
115 | | - | |
| 122 | + | |
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
| |||
0 commit comments