Skip to content

Commit 2518596

Browse files
style: implement Floating Sheet design and perform total cleanup of legacy paddings
1 parent 9918a28 commit 2518596

8 files changed

Lines changed: 11 additions & 10 deletions

File tree

web/src/components/ui/BottomSheet/BottomSheet.module.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
display: flex;
1313
justify-content: center;
1414
align-items: flex-end;
15+
padding: 12px;
1516
}
1617

1718
.backdropVisible {
@@ -23,9 +24,9 @@
2324
background: #ffffff;
2425
width: 100%;
2526
max-width: 480px;
26-
border-top-left-radius: 20px;
27-
border-top-right-radius: 20px;
28-
padding: 16px 20px calc(16px + var(--nav-bottom-buffer)) 20px;
27+
border-radius: 24px;
28+
margin-bottom: var(--nav-bottom-buffer);
29+
padding: 16px 20px 24px 20px;
2930
box-sizing: border-box;
3031
transform: translateY(100%);
3132
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);

web/src/pages/Cabinet/components/AboutSheet.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.container {
22
text-align: center;
3-
padding: 32px 16px 120px;
3+
padding: 32px 16px 24px;
44
}
55

66
.logoBoxWrap {

web/src/pages/Cabinet/components/AuthPromptSheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface AuthPromptSheetProps {
1111
export const AuthPromptSheet: React.FC<AuthPromptSheetProps> = ({ isOpen, onClose, onLogin }) => {
1212
return (
1313
<BottomSheet isOpen={isOpen} onClose={onClose} title="Потрібна реєстрація">
14-
<div style={{ textAlign: 'center', padding: '8px 16px 100px' }}>
14+
<div style={{ textAlign: 'center', padding: '8px 16px 32px' }}>
1515

1616
{/* Branded Identity - Glass Hero Icon */}
1717
<div style={{ marginBottom: 16, display: 'flex', justifyContent: 'center' }}>

web/src/pages/Cabinet/components/HourPickerSheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const HourPickerSheet: React.FC<HourPickerSheetProps> = ({
2121

2222
return (
2323
<BottomSheet isOpen={isOpen} onClose={onClose} title={title}>
24-
<div style={{ padding: '16px 16px 120px' }}>
24+
<div style={{ padding: '16px 16px 16px' }}>
2525
<div className={styles.grid}>
2626
{Array.from({ length: 24 }).map((_, hour) => (
2727
<button

web/src/pages/Cabinet/components/NotificationEditorSheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const NotificationEditorSheet: React.FC<NotificationEditorSheetProps> = (
6868
return (
6969
<>
7070
<BottomSheet isOpen={isOpen} onClose={onClose} title="Налаштування пуш">
71-
<div style={{ padding: '0 16px 120px' }}>
71+
<div style={{ padding: '0 16px 16px' }}>
7272
<div className={styles.formGroup}>
7373
<div className={styles.label}>Як назвемо локацію?</div>
7474
<input

web/src/pages/Cabinet/components/SignOutSheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const SignOutSheet: React.FC<SignOutSheetProps> = ({ isOpen, onClose, onC
1717

1818
return (
1919
<BottomSheet isOpen={isOpen} onClose={onClose} title="Вийти з акаунту?">
20-
<div style={{ padding: '0 0 24px' }}>
20+
<div>
2121

2222
<p style={{ fontSize: '15px', color: '#71717a', textAlign: 'center', margin: '0 0 24px', lineHeight: 1.5 }}>
2323
Ви виходите з акаунту{' '}

web/src/pages/Cabinet/components/SubGroupSheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const SubGroupSheet: React.FC<SubGroupSheetProps> = ({
1717
}) => {
1818
return (
1919
<BottomSheet isOpen={isOpen} onClose={onClose} title="Оберіть підчергу">
20-
<div style={{ padding: '4px 16px 80px' }}>
20+
<div style={{ padding: '4px 16px 16px' }}>
2121
<SubgroupGrid
2222
selectedGroup={selectedGroup}
2323
onSelect={(g) => {

web/src/styles/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
--nav-active-pill: rgba(238, 114, 33, 0.1);
1414
--nav-accent: #EE7221;
1515
--nav-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
16-
--nav-bottom-buffer: 90px;
16+
--nav-bottom-buffer: 96px;
1717
}
1818

1919
/* Floating Navigation Bar V4 */

0 commit comments

Comments
 (0)