|
3 | 3 |
|
4 | 4 | import { IButtonStyles, IStackTokens, mergeStyles } from '@fluentui/react'; |
5 | 5 |
|
| 6 | +/** |
| 7 | + * Style properties for the End Call component. |
| 8 | + * These styles are used to layout the end call screen components. |
| 9 | + */ |
6 | 10 | export const mainStackTokens: IStackTokens = { |
7 | 11 | childrenGap: '1rem' |
8 | 12 | }; |
| 13 | +/** |
| 14 | + * Styles for the end call screen buttons stack. |
| 15 | + * These styles ensure that the buttons are spaced correctly. |
| 16 | + */ |
9 | 17 | export const buttonsStackTokens: IStackTokens = { |
10 | 18 | childrenGap: '0.75rem' |
11 | 19 | }; |
| 20 | +/** |
| 21 | + * Styles for the end call screen buttons stack. |
| 22 | + * These styles ensure that the buttons are spaced correctly. |
| 23 | + */ |
12 | 24 | export const upperStackTokens: IStackTokens = { |
13 | 25 | childrenGap: '1.5rem' |
14 | 26 | }; |
| 27 | +/** |
| 28 | + * Styles for the end call screen bottom stack. |
| 29 | + * These styles ensure that the bottom stack is spaced correctly. |
| 30 | + */ |
15 | 31 | export const bottomStackTokens: IStackTokens = { |
16 | 32 | childrenGap: '1.4375rem' |
17 | 33 | }; |
| 34 | +/** |
| 35 | + * Styles for the end call screen container. |
| 36 | + * These styles ensure that the container takes up the full height and width of the screen. |
| 37 | + */ |
18 | 38 | export const endCallContainerStyle = mergeStyles({ |
19 | 39 | height: '100%', |
20 | 40 | width: '100% ', |
21 | 41 | padding: '0.5rem', //half childrenGap from Stack |
22 | 42 | minWidth: '21.625rem', // max of min-width from stack items + padding * 2 = 20.625 + 0.5 * 2 |
23 | 43 | minHeight: 'auto' |
24 | 44 | }); |
| 45 | +/** |
| 46 | + * Styles for the end call screen header. |
| 47 | + * These styles ensure that the header takes up the full width of the screen. |
| 48 | + */ |
25 | 49 | export const endCallTitleStyle = mergeStyles({ |
26 | 50 | fontSize: '1.375rem', |
27 | 51 | fontWeight: 600, |
28 | 52 | width: '20rem' |
29 | 53 | }); |
| 54 | +/** |
| 55 | + * Styles for the end call screen button. |
| 56 | + * These styles ensure that the button text is styled correctly. |
| 57 | + */ |
30 | 58 | export const buttonStyle = mergeStyles({ |
31 | 59 | fontWeight: 600, |
32 | 60 | height: '2.5rem', |
33 | 61 | width: '9.875rem', |
34 | 62 | fontSize: '0.875rem', // 14px |
35 | 63 | padding: 0 |
36 | 64 | }); |
| 65 | +/** |
| 66 | + * Styles for the end call screen button with icon. |
| 67 | + * These styles ensure that the button text container is displayed correctly. |
| 68 | + */ |
37 | 69 | export const buttonWithIconStyles: IButtonStyles = { |
38 | 70 | textContainer: { |
39 | 71 | display: 'contents' |
40 | 72 | } |
41 | 73 | }; |
| 74 | +/** |
| 75 | + * Styles for the end call screen button icon. |
| 76 | + * These styles ensure that the icon is displayed correctly. |
| 77 | + */ |
42 | 78 | export const videoCameraIconStyle = mergeStyles({ |
43 | 79 | marginRight: '0.375rem', |
44 | 80 | fontSize: '1.375rem' |
45 | 81 | }); |
| 82 | +/** |
| 83 | + * Styles for the end call screen footer. |
| 84 | + * These styles ensure that the footer text is styled correctly. |
| 85 | + */ |
46 | 86 | export const bottomStackFooterStyle = mergeStyles({ |
47 | 87 | fontSize: '0.875 rem' |
48 | 88 | }); |
0 commit comments